summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
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">