@@ -110,10 +110,21 @@
110110 may need to restart Cmd/Powershell windows before using it."
111111 />
112112
113+ <CustomAction Id="CustomWixSetPerUserFolder" Property="APPLICATIONFOLDER" Value="[LocalAppDataFolder][ApplicationFolderName]" Execute="immediate" />
114+
115+ <InstallExecuteSequence>
116+ <Custom Action="CustomWixSetPerUserFolder" After="WixSetPerUserFolder">
117+ ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))
118+ </Custom>
119+ </InstallExecuteSequence>
120+
113121 <InstallUISequence>
114122 <Custom Action="SetExitDialogOptText" Before="ExecuteAction">
115123 NOT Installed
116124 </Custom>
125+ <Custom Action="CustomWixSetPerUserFolder" After="WixSetPerUserFolder">
126+ ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))
127+ </Custom>
117128 </InstallUISequence>
118129
119130 <CustomActionRef Id="WixBroadcastSettingChange" />