|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <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" /> |
5 | 6 | <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
|
6 | 7 | <Directory Id="TARGETDIR" Name="SourceDir">
|
7 | 8 | <Directory Id="ProgramFilesFolder" Name="PFiles">
|
|
111 | 112 | </Component>
|
112 | 113 |
|
113 | 114 | <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" /> |
117 | 118 | </File>
|
118 | 119 | </Component>
|
119 | 120 |
|
|
287 | 288 | </Directory>
|
288 | 289 | <Directory Id="DesktopFolder" />
|
289 | 290 | <Directory Id="ProgramMenuFolder">
|
290 |
| - <Directory Id="ProgramMenuDir" Name="OpenSCAP"> |
| 291 | + <Directory Id="ProgramMenuDir" Name="scap-workbench" /> |
291 | 292 | <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)" /> |
294 | 296 | </Component>
|
295 | 297 | </Directory>
|
296 | 298 | </Directory>
|
|
391 | 393 | <UIRef Id="WixUI_Minimal" />
|
392 | 394 | <Icon Id="DesktopIcon.exe" SourceFile="scap-workbench\scap-workbench.exe" />
|
393 | 395 | <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" /> |
395 | 401 | </Product>
|
396 | 402 | </Wix>
|
0 commit comments