From 146c7a78e551af2f59c95215833f39be5b6c8a67 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 4 Jun 2016 11:34:41 -0700 Subject: Improved Windows installer (nkalvi, #2708, #2389). * Scope selection in the first screen. Since I couldn't detect if the user is 'real' admin user, default is still per user. * Scope is limited to per machine on servers. Though not perfect (couldn't detect `DisableMSI` policy), it should handle #2389 better. * For per machine, location can be changed by selecting Advanced. Localization: modified templates from WiX toolkit support localization very well. A short sample localization file for en-us is used. * Dialog elements are moved to their own files. --- windows/pandoc.wxs | 134 ++++++++++++++++++++--------------------------------- 1 file changed, 51 insertions(+), 83 deletions(-) (limited to 'windows/pandoc.wxs') diff --git a/windows/pandoc.wxs b/windows/pandoc.wxs index d19ed81e1..878800149 100644 --- a/windows/pandoc.wxs +++ b/windows/pandoc.wxs @@ -1,18 +1,16 @@ - - + - + - - @@ -21,7 +19,6 @@ Minimum='0.0.0.0' IncludeMinimum='yes' Maximum="99.0.0.0" IncludeMaximum="no" /> - @@ -126,92 +123,63 @@ + + + + + + + + + + + + + + + + - - - - - - - - ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged))) - - + Property="WIXUI_EXITDIALOGOPTIONALTEXT" + Value="!(loc.ExitDialogText)" /> + + + + + MsiNTProductType > 1 + + + MsiNTProductType = 1 + + + MsiNTProductType > 1 + + + MsiNTProductType = 1 + + + MsiNTProductType = 1 + + + MsiNTProductType > 1 + + + + + NOT Installed - - ACTION="INSTALL" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged))) - - - - - - - - - - - - - - - - - WixAppFolder = "WixPerUserFolder" - - WixAppFolder = "WixPerMachineFolder" - - WixAppFolder = "WixPerUserFolder" - - WixAppFolder = "WixPerMachineFolder" AND ALLUSERS = 1 - WixAppFolder = "WixPerUserFolder" AND ALLUSERS = 2 - WixAppFolder = "WixPerUserFolder" - - - - WIXUI_DONTVALIDATEPATH OR - WIXUI_INSTALLDIR_VALID="1" - - - - WixAppFolder = "WixPerUserFolder" - - - WixAppFolder = "WixPerMachineFolder" - - - + + + - + + -- cgit v1.2.3