diff options
author | Fyodor Sheremetyev <sheremetyev@gmail.com> | 2013-03-15 16:37:08 +0000 |
---|---|---|
committer | Fyodor Sheremetyev <sheremetyev@gmail.com> | 2013-03-15 16:37:08 +0000 |
commit | 6269ba03b056ad933110c1a081daab96db18997b (patch) | |
tree | 428b0a95d5a328da919add31b180013259a71134 | |
parent | 5b3ad3306687977797ffb789a69a781e5fd2a960 (diff) | |
download | pandoc-6269ba03b056ad933110c1a081daab96db18997b.tar.gz |
WiX: Install to %APPLOCALDATA%\Pandoc in per-user setup.
The “Advanced” template installs to %APPLOCALDATA%\Apps\Pandoc by default.
-rw-r--r-- | windows/pandoc.wxs | 8 |
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">
|