summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorFyodor Sheremetyev <sheremetyev@gmail.com>2013-03-15 16:37:08 +0000
committerFyodor Sheremetyev <sheremetyev@gmail.com>2013-03-15 16:37:08 +0000
commit6269ba03b056ad933110c1a081daab96db18997b (patch)
tree428b0a95d5a328da919add31b180013259a71134 /windows
parent5b3ad3306687977797ffb789a69a781e5fd2a960 (diff)
WiX: Install to %APPLOCALDATA%\Pandoc in per-user setup.
The “Advanced” template installs to %APPLOCALDATA%\Apps\Pandoc by default.
Diffstat (limited to 'windows')
-rw-r--r--windows/pandoc.wxs8
1 files changed, 8 insertions, 0 deletions
diff --git a/windows/pandoc.wxs b/windows/pandoc.wxs
index a784f1d48..cee663962 100644
--- a/windows/pandoc.wxs
+++ b/windows/pandoc.wxs
@@ -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">