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/WixUI_Advanced_Custom.wxs | 142 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 windows/WixUI_Advanced_Custom.wxs (limited to 'windows/WixUI_Advanced_Custom.wxs') diff --git a/windows/WixUI_Advanced_Custom.wxs b/windows/WixUI_Advanced_Custom.wxs new file mode 100644 index 000000000..6f85d9961 --- /dev/null +++ b/windows/WixUI_Advanced_Custom.wxs @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged))) + ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged)) + + + + + ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged))) + ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged)) + + + + + + + + + + + + + + + + + + + + + + + + 1 + + 1 + "1"]]> + + + + + + ALLUSERS = 1 + ALLUSERS = 1 + !(wix.WixUISupportPerMachine) AND !(wix.WixUISupportPerUser) + + ALLUSERS = 1 + ALLUSERS = 1 + + NOT (ALLUSERS = 1) + NOT (ALLUSERS = 1) + + + + + + + + + + + + 1 + 1 + NOT WIXUI_DONTVALIDATEPATH + "1"]]> + WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1" + 1 + 1 + + + NOT Installed AND WixAppFolder = "WixPerMachineFolder" + Installed + + 1 + + 1 + 1 + 1 + + Installed AND NOT PATCH + Installed AND PATCH + + Installed AND PATCH + + + + Installed AND PATCH + + + + + + \ No newline at end of file -- cgit v1.2.3