WiX: Install to %APPLOCALDATA%\Pandoc in per-user setup.

The “Advanced” template installs to %APPLOCALDATA%\Apps\Pandoc by default.
This commit is contained in:
Fyodor Sheremetyev 2013-03-15 16:37:08 +00:00
parent 5b3ad33066
commit 6269ba03b0

View file

@ -25,6 +25,14 @@
<Property Id="WixAppFolder" Value="WixPerUserFolder" />
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
<CustomAction Id="WixSetPerUserFolderOverride" Property="APPLICATIONFOLDER" Value="[LocalAppDataFolder][ApplicationFolderName]" Execute="immediate" />
<InstallExecuteSequence>
<Custom Action="WixSetPerUserFolderOverride" After="WixSetPerUserFolder">ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))</Custom>
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="WixSetPerUserFolderOverride" After="WixSetPerUserFolder">ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged)))</Custom>
</InstallUISequence>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">