|
22 | 22 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
23 | 23 | <?foreach WIXUIARCH in X86;X64;A64 ?> |
24 | 24 | <Fragment> |
| 25 | + <WixVariable Id="WixUIAdvancedArch" Value="$(WIXUIARCH)" /> |
| 26 | + |
25 | 27 | <UI Id="WixUI_Advanced_$(WIXUIARCH)"> |
26 | 28 | <Publish Dialog="BrowseDlg" Control="OK" Event="CheckTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1" /> |
27 | 29 |
|
@@ -56,19 +58,22 @@ Todo: |
56 | 58 |
|
57 | 59 | <CustomAction Id="WixSetDefaultPerUserFolder" Property="WixPerUserFolder" Value="[LocalAppDataFolder]Apps\[ApplicationFolderName]" Execute="immediate" /> |
58 | 60 | <CustomAction Id="WixSetDefaultPerMachineFolder" Property="WixPerMachineFolder" Value="[ProgramFilesFolder][ApplicationFolderName]" Execute="immediate" /> |
| 61 | + <CustomAction Id="WixSetDefaultPerMachine64Folder" Property="WixPerMachineFolder" Value="[ProgramFiles64Folder][ApplicationFolderName]" Execute="immediate" /> |
59 | 62 | <CustomAction Id="WixSetPerUserFolder" Property="APPLICATIONFOLDER" Value="[WixPerUserFolder]" Execute="immediate" /> |
60 | 63 | <CustomAction Id="WixSetPerMachineFolder" Property="APPLICATIONFOLDER" Value="[WixPerMachineFolder]" Execute="immediate" /> |
61 | 64 |
|
62 | 65 | <InstallExecuteSequence> |
63 | 66 | <Custom Action="WixSetDefaultPerUserFolder" Before="CostFinalize" /> |
64 | | - <Custom Action="WixSetDefaultPerMachineFolder" After="WixSetDefaultPerUserFolder" /> |
65 | | - <Custom Action="WixSetPerUserFolder" After="WixSetDefaultPerMachineFolder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))" /> |
| 67 | + <Custom Action="WixSetDefaultPerMachineFolder" After="WixSetDefaultPerUserFolder" Condition=""!(wix.WixUIAdvancedArch)"="X86"" /> |
| 68 | + <Custom Action="WixSetDefaultPerMachine64Folder" After="WixSetDefaultPerMachineFolder" Condition=""!(wix.WixUIAdvancedArch)"="X64" OR "!(wix.WixUIAdvancedArch)"="A64"" /> |
| 69 | + <Custom Action="WixSetPerUserFolder" After="WixSetDefaultPerMachine64Folder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))" /> |
66 | 70 | <Custom Action="WixSetPerMachineFolder" After="WixSetPerUserFolder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))" /> |
67 | 71 | </InstallExecuteSequence> |
68 | 72 | <InstallUISequence> |
69 | 73 | <Custom Action="WixSetDefaultPerUserFolder" Before="CostFinalize" /> |
70 | | - <Custom Action="WixSetDefaultPerMachineFolder" After="WixSetDefaultPerUserFolder" /> |
71 | | - <Custom Action="WixSetPerUserFolder" After="WixSetDefaultPerMachineFolder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))" /> |
| 74 | + <Custom Action="WixSetDefaultPerMachineFolder" After="WixSetDefaultPerUserFolder" Condition=""!(wix.WixUIAdvancedArch)"="X86"" /> |
| 75 | + <Custom Action="WixSetDefaultPerMachine64Folder" After="WixSetDefaultPerMachineFolder" Condition=""!(wix.WixUIAdvancedArch)"="X64" OR "!(wix.WixUIAdvancedArch)"="A64"" /> |
| 76 | + <Custom Action="WixSetPerUserFolder" After="WixSetDefaultPerMachine64Folder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))" /> |
72 | 77 | <Custom Action="WixSetPerMachineFolder" After="WixSetPerUserFolder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))" /> |
73 | 78 | </InstallUISequence> |
74 | 79 |
|
|
0 commit comments