|
11 | 11 | <Package InstallerVersion="500" Compressed="yes" InstallScope="perMachine" Platform="x64"/> |
12 | 12 |
|
13 | 13 | <MajorUpgrade |
14 | | - Schedule="afterInstallInitialize" |
| 14 | + Schedule="afterInstallValidate" |
15 | 15 | AllowDowngrades="no" |
16 | 16 | DowngradeErrorMessage="!(loc.product_downgrade_error_message)"/> |
17 | 17 |
|
|
45 | 45 | <ComponentGroupRef Id="pm_app_web_css" /> |
46 | 46 | <ComponentGroupRef Id="pm_app_web_fonts" /> |
47 | 47 | <ComponentGroupRef Id="pm_app_web_js" /> |
48 | | - <ComponentGroupRef Id="shortcuts" /> |
49 | | - <ComponentGroupRef Id="desktop_shortcut" /> |
50 | 48 | </Feature> |
51 | 49 | <Feature |
52 | 50 | Id="presentmon_provider_install" |
|
89 | 87 | <UIRef Id="WixUI_ErrorProgressText" /> |
90 | 88 |
|
91 | 89 | <WixVariable Id="WixUILicenseRtf" Value="license.rtf" /> |
92 | | - |
93 | | - <!-- |
94 | | - RemoveFolderEx requires that we pull the folder information from the registry. |
95 | | - Obtain the main application folder name |
96 | | - --> |
97 | | - <Property |
98 | | - Id="APPLICATIONFOLDER"> |
99 | | - <RegistrySearch |
100 | | - Id="MainApplicationFolderRegSearch" |
101 | | - Root="HKCU" |
102 | | - Key="Software\Intel\PresentMon" |
103 | | - Name="PresentMonInstallFolder" |
104 | | - Type="raw" /> |
105 | | - </Property> |
106 | | - <!-- |
107 | | - As well as the local app date folder |
108 | | - --> |
109 | | - <Property |
110 | | - Id="LOCALAPPDATAFOLDER"> |
111 | | - <RegistrySearch |
112 | | - Id="LocalAppDataFolderSearch" |
113 | | - Root="HKCU" |
114 | | - Key="Software\Intel\PresentMon" |
115 | | - Name="LocalAppDataPresentMonFolder" |
116 | | - Type="raw" /> |
117 | | - </Property> |
118 | 90 | </Product> |
119 | 91 |
|
120 | 92 | <Fragment> |
|
169 | 141 | </Directory> |
170 | 142 | <Directory |
171 | 143 | Id="ProgramMenuFolder"> |
172 | | - <Directory |
173 | | - Id="shortcuts_folder" |
174 | | - Name="PresentMon"/> |
| 144 | + <Directory Id="PM_ProgramMenuFolder" Name="Intel PresentMon" /> |
175 | 145 | </Directory> |
176 | 146 | <Directory |
177 | 147 | Id="DesktopFolder" |
|
297 | 267 | KeyPath="yes"> |
298 | 268 | </File> |
299 | 269 | </Component> |
| 270 | + <Component Id="pm_app_shortcuts" Guid="7222FDA2-E341-43F8-836E-F62044C62595"> |
| 271 | + <!-- Desktop shortcut (per-user) --> |
| 272 | + <Shortcut Id="sc_presentmon_desktop" |
| 273 | + Directory="DesktopFolder" |
| 274 | + Name="Intel PresentMon" |
| 275 | + Advertise="no" |
| 276 | + Target="[pm_app_folder]PresentMon.exe" |
| 277 | + WorkingDirectory="pm_app_folder" /> |
| 278 | + |
| 279 | + <!-- Start Menu shortcut (per-user, into our subfolder) --> |
| 280 | + <Shortcut Id="sc_presentmon_startmenu" |
| 281 | + Directory="PM_ProgramMenuFolder" |
| 282 | + Name="Intel PresentMon" |
| 283 | + Advertise="no" |
| 284 | + Target="[pm_app_folder]PresentMon.exe" |
| 285 | + WorkingDirectory="pm_app_folder" /> |
| 286 | + |
| 287 | + <!-- HKCU registry value = KeyPath (per-user component) --> |
| 288 | + <RegistryValue Root="HKCU" |
| 289 | + Key="Software\Intel\PresentMon" |
| 290 | + Name="Installed" |
| 291 | + Type="integer" |
| 292 | + Value="1" |
| 293 | + KeyPath="yes" /> |
| 294 | + |
| 295 | + <!-- Tidy the (empty) Start Menu subfolder on uninstall --> |
| 296 | + <RemoveFolder Id="RemovePMProgramMenuFolder" |
| 297 | + Directory="PM_ProgramMenuFolder" |
| 298 | + On="uninstall" /> |
| 299 | + </Component> |
300 | 300 | <Component |
301 | 301 | Id="pm_app_kern_proc_exe" |
302 | 302 | Guid="7E4A9C50-97C5-4BFE-B4D0-0E3B2FA5C3F7"> |
|
587 | 587 | </File> |
588 | 588 | </Component> |
589 | 589 | </ComponentGroup> |
590 | | - <ComponentGroup |
591 | | - Id="shortcuts" |
592 | | - Directory="shortcuts_folder"> |
593 | | - <Component |
594 | | - Id="present_mon_shortcuts" |
595 | | - Guid="3F7502E9-BE4B-47A2-9270-C653816A7112"> |
596 | | - <Shortcut |
597 | | - Id="present_mon_start_menu_shortcut" |
598 | | - Name="Intel PresentMon" |
599 | | - Target="[pm_app_folder]PresentMon.exe" |
600 | | - WorkingDirectory="pm_app_folder"/> |
601 | | - <Shortcut |
602 | | - Id="uninstall_shortcut" |
603 | | - Name="Uninstall Intel PresentMon" |
604 | | - Target="[System64Folder]msiexec.exe" |
605 | | - Arguments="/x [ProductCode]"/> |
606 | | - <RemoveFolder |
607 | | - Id="remove_sample_client_executable_shortcut" |
608 | | - On="uninstall"/> |
609 | | - <RegistryValue |
610 | | - Root="HKCU" |
611 | | - Key="Software\Intel\PresentMon" |
612 | | - Name="installed" |
613 | | - Type="integer" |
614 | | - Value="1" |
615 | | - KeyPath="yes"/> |
616 | | - </Component> |
617 | | - </ComponentGroup> |
618 | | - <ComponentGroup |
619 | | - Id="desktop_shortcut" |
620 | | - Directory="DesktopFolder"> |
621 | | - <Component |
622 | | - Id="present_mon_desktop_shortcut" |
623 | | - Guid="8FD09995-32BF-42D3-B5E2-57F5D2592D67"> |
624 | | - <Shortcut Id="present_mon_desktop_shortcut" |
625 | | - Name="Intel PresentMon" |
626 | | - Description="Launch Intel PresentMon" |
627 | | - Target="[pm_app_folder]PresentMon.exe" |
628 | | - WorkingDirectory="pm_app_folder"> |
629 | | - </Shortcut> |
630 | | - <RegistryValue Root="HKCU" |
631 | | - Key="Software\Intel\PresentMon" |
632 | | - Name="DesktopShortcut" |
633 | | - Type="integer" |
634 | | - Value="1" |
635 | | - KeyPath="yes"> |
636 | | - </RegistryValue> |
637 | | - </Component> |
638 | | - </ComponentGroup> |
639 | 590 | </Fragment> |
640 | 591 | </Wix> |
0 commit comments