Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 368764f

Browse files
authored
Merge pull request #182 from redhatrises/update_wix
Update scap-workbench WiX configuration
2 parents 92e29ff + a4cab28 commit 368764f

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ configure_file("scap-workbench-oscap.policy.in" "${CMAKE_CURRENT_BINARY_DIR}/sca
123123
if (WIN32)
124124
configure_file("win32-resource.rc.in" "${CMAKE_CURRENT_BINARY_DIR}/win32-resource.rc")
125125
configure_file("scap-workbench.wxs.in" "${CMAKE_CURRENT_BINARY_DIR}/scap-workbench.wxs")
126+
configure_file("AppIcon.ico" "${CMAKE_CURRENT_BINARY_DIR}/scap-workbench/AppIcon.ico" COPYONLY)
127+
configure_file("banner.png" "${CMAKE_CURRENT_BINARY_DIR}/banner.png" COPYONLY)
128+
configure_file("dialog.png" "${CMAKE_CURRENT_BINARY_DIR}/dialog.png" COPYONLY)
129+
configure_file("win32-LICENSE.rtf" "${CMAKE_CURRENT_BINARY_DIR}/win32-LICENSE.rtf" COPYONLY)
126130
endif()
127131

128132
include_directories(${SCAP_WORKBENCH_INCLUDE_DIRS})

banner.png

5.83 KB
Loading

dialog.png

14.8 KB
Loading

scap-workbench.wxs.in

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
<Product Id="171211AD-F987-4051-BF5A-30A116CD6784" Name="SCAP Workbench" Language="1033" Version="@SCAP_WORKBENCH_VERSION_MAJOR@.@SCAP_WORKBENCH_VERSION_MINOR@.@[email protected]" Manufacturer="OpenSCAP" UpgradeCode="E3925738-54A3-402B-852D-866BEF6FC98C">
4-
<Package Description="SCAP Workbench" Comments="SCAP Workbench" InstallerVersion="200" Compressed="yes" />
3+
<?define VERSION="@SCAP_WORKBENCH_VERSION_MAJOR@.@SCAP_WORKBENCH_VERSION_MINOR@.@[email protected]" ?>
4+
<Product Id="171211AD-F987-4051-BF5A-30A116CD6784" Name="SCAP Workbench" Language="1033" Version="$(var.VERSION)" Manufacturer="OpenSCAP" UpgradeCode="E3925738-54A3-402B-852D-866BEF6FC98C">
5+
<Package Description="SCAP Workbench" Comments="SCAP Workbench" InstallerVersion="200" Compressed="yes" InstallPrivileges="elevated" InstallScope="perMachine" />
56
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
67
<Directory Id="TARGETDIR" Name="SourceDir">
78
<Directory Id="ProgramFilesFolder" Name="PFiles">
@@ -111,9 +112,9 @@
111112
</Component>
112113

113114
<Component Id="SCAP_WORKBENCH.EXE" DiskId="1" Guid="628FE581-5590-43BF-B8E6-46B3FB4AD6B2">
114-
<File Id="SCAP_WORKBENCH.EXE" Name="scap-workbench.exe" Source="scap-workbench\scap-workbench.exe">
115-
<Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="SCAP Workbench" WorkingDirectory="INSTALLDIR" Advertise="no" Icon="DesktopIcon.exe" IconIndex="0" />
116-
<Shortcut Id="ExeShortcut" Directory="ProgramMenuDir" Name="SCAP Workbench" Advertise="no" Icon="StartMenuIcon.exe" IconIndex="0" />
115+
<File Id="SCAP_WORKBENCH.EXE" Name="scap-workbench.exe" Source="scap-workbench\scap-workbench.exe" Vital="yes" KeyPath="yes">
116+
<Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="SCAP Workbench" WorkingDirectory="INSTALLDIR" Advertise="yes" Icon="DesktopIcon.exe" IconIndex="0" />
117+
<Shortcut Id="ExeShortcut" Directory="ProgramMenuDir" Name="SCAP Workbench" Advertise="yes" Icon="StartMenuIcon.exe" IconIndex="0" />
117118
</File>
118119
</Component>
119120

@@ -287,10 +288,11 @@
287288
</Directory>
288289
<Directory Id="DesktopFolder" />
289290
<Directory Id="ProgramMenuFolder">
290-
<Directory Id="ProgramMenuDir" Name="OpenSCAP">
291+
<Directory Id="ProgramMenuDir" Name="scap-workbench" />
291292
<Component Id="StartMenuShortcuts" Guid="4E5A445A-89F2-4415-A56A-64A604DB7256">
292-
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
293-
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" />
293+
<RemoveFolder Id="RemoveProgramMenuDir" Directory="ProgramMenuDir" On="uninstall" />
294+
<RegistryValue Root="HKMU" Key="Software\[Manufacturer]\[ProductName]" Name="installed" Type="integer" Value="1" />
295+
<RegistryValue Root="HKMU" Key="Software\[Manufacturer]\[ProductName]" Name="version" Type="string" Value="$(var.VERSION)" />
294296
</Component>
295297
</Directory>
296298
</Directory>
@@ -391,6 +393,10 @@
391393
<UIRef Id="WixUI_Minimal" />
392394
<Icon Id="DesktopIcon.exe" SourceFile="scap-workbench\scap-workbench.exe" />
393395
<Icon Id="StartMenuIcon.exe" SourceFile="scap-workbench\scap-workbench.exe" />
394-
<WixVariable Id="WixUILicenseRtf" Value="@CMAKE_SOURCE_DIR@\win32-LICENSE.rtf" />
396+
<Icon Id="AppIcon.ico" SourceFile="scap-workbench\AppIcon.ico" />
397+
<Property Id="ARPPRODUCTICON" Value="AppIcon.ico" />
398+
<WixVariable Id="WixUILicenseRtf" Value="win32-LICENSE.rtf" />
399+
<WixVariable Id="WixUIBannerBmp" Value="banner.bmp" />
400+
<WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" />
395401
</Product>
396402
</Wix>

0 commit comments

Comments
 (0)