2016-05-24 23:23:38 +02:00
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
2016-11-15 18:17:15 +01:00
<!-- MSI installs on Win7 and above -->
<?define MinOSVersionSupported = "VersionNT >= 601" ?>
2016-05-24 23:23:38 +02:00
<!-- The URL for add/remove programs -->
<!-- TBD:Point to the actual release -->
<?define InfoURL="https://github.com/PowerShell/PowerShell" ?>
<?define ProductName = "$(env.ProductName)" ?>
2018-01-18 00:34:03 +01:00
<?define ProductCode = "$(env.ProductCode)" ?>
2018-04-02 19:47:29 +02:00
<?define ProductSimpleVersionWithNameAndOptionalArchitecture = "$(var.ProductName) $(env.SimpleProductVersion) ($(sys.BUILDARCH))"?>
2018-01-08 21:32:38 +01:00
<!-- UpgradeCode GUID MUST REMAIN SAME THROUGHOUT ALL VERSIONS, otherwise, updates won't occur. -->
<?if $(sys.BUILDARCH)=x64?>
2018-03-05 19:27:47 +01:00
<?define UpgradeCode = "$(env.UpgradeCodeX64)" ?>
2018-04-02 19:47:29 +02:00
<?define ExplorerContextMenuDialogText = "&$(var.ProductName) $(env.SimpleProductVersion)"?>
2018-01-08 21:32:38 +01:00
<?else?>
2018-03-05 19:27:47 +01:00
<?define UpgradeCode = "$(env.UpgradeCodeX86)" ?>
2018-04-02 19:47:29 +02:00
<?define ExplorerContextMenuDialogText = "&$(var.ProductName) $(env.SimpleProductVersion) ($(sys.BUILDARCH))"?>
2018-01-08 21:32:38 +01:00
<?endif?>
2018-03-06 19:13:26 +01:00
<?define ProductDirectoryName = "$(env.ProductDirectoryName)" ?>
2016-05-24 23:23:38 +02:00
<?define ProductVersion = "$(env.ProductVersion)" ?>
2018-04-02 19:47:29 +02:00
<?define SimpleProductVersion = "$(env.SimpleProductVersion)" ?>
2017-03-29 22:36:44 +02:00
<?define ProductSemanticVersion = "$(env.ProductSemanticVersion)" ?>
2016-11-16 19:32:21 +01:00
<?define ProductProgFilesDir = "$(env.ProductProgFilesDir)" ?>
2018-07-25 22:32:10 +02:00
<?define PwshPath = "$(env.PwshPath)" ?>
2018-01-05 18:53:19 +01:00
<!-- Explorer context submenu entries. The ampersand denotes the keyboard shortcut. -->
2018-01-10 05:17:06 +01:00
<?define ExplorerContextSubMenuDialogText = "Open &here"?>
<?define ExplorerContextSubMenuElevatedDialogText = "Open here as &Administrator"?>
2018-01-18 00:34:03 +01:00
<!-- The ProductCode is Product Id and needs to be unique for every PowerShell version to allow SxS install: http://wixtoolset.org/documentation/manual/v3/xsd/wix/product.html -->
2018-03-20 18:49:01 +01:00
<Product
Id="$(var.ProductCode)"
2018-04-02 19:47:29 +02:00
Name="PowerShell $(var.SimpleProductVersion)-$(sys.BUILDARCH)"
2018-03-20 18:49:01 +01:00
Language="1033"
Version="$(var.ProductVersion)"
Manufacturer="Microsoft Corporation"
UpgradeCode="$(var.UpgradeCode)">
2016-05-24 23:23:38 +02:00
<!-- Properties About The Package -->
2018-01-08 21:32:38 +01:00
<Package Id="*" Keywords="Installer" Platform="$(sys.BUILDARCH)" InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Description="PowerShell package" Comments="PowerShell for every system" />
2016-06-27 20:39:49 +02:00
<!-- Add PowerShell icon for executable -->
2018-06-19 00:54:11 +02:00
<Icon Id="PowerShellExe.ico" SourceFile="$(env.IconPath)" />
2016-06-27 20:39:49 +02:00
<!-- Add PowerShell icon in Add/Remove Programs -->
<Property Id="ARPPRODUCTICON" Value="PowerShellExe.ico" />
2016-05-24 23:23:38 +02:00
<!-- Set properties for add/remove programs -->
<Property Id="ARPHELPLINK" Value="$(var.InfoURL)" />
2017-10-03 19:35:32 +02:00
<!-- custom images -->
<WixVariable Id="WixUIBannerBmp" Value="assets\WixUIBannerBmp.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="assets\WixUIDialogBmp.bmp" />
<WixVariable Id="WixUIExclamationIco" Value="assets\WixUIInfoIco.bmp" />
<WixVariable Id="WixUIInfoIco" Value="assets\WixUIInfoIco.bmp" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Open $(env.ProductName)" />
<!-- Default value of Checkbox of starting PowerShell after installation -->
2018-03-06 19:13:26 +01:00
<Property Id="WixShellExecTarget" Value="[$(var.ProductDirectoryName)]pwsh.exe"/>
2017-10-03 19:35:32 +02:00
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
2018-02-22 15:07:10 +01:00
<SetProperty Id="RegisterManifest"
Before="RegisterManifest"
Sequence="execute"
2018-03-06 19:13:26 +01:00
Value=""[$(var.ProductDirectoryName)]pwsh.exe" -NoProfile -ExecutionPolicy Bypass -File "[$(var.ProductDirectoryName)]RegisterManifest.ps1"" />
2018-02-22 15:07:10 +01:00
<CustomAction Id="RegisterManifest"
BinaryKey="WixCA"
DllEntry="CAQuietExec"
Execute="deferred"
Return="ignore"
Impersonate="no" />
<SetProperty Id="EnablePSRemoting"
Before="EnablePSRemoting"
Sequence="execute"
2018-03-06 19:13:26 +01:00
Value=""[$(var.ProductDirectoryName)]pwsh.exe" -NoProfile -ExecutionPolicy Bypass -Command "Enable-PSRemoting"" />
2018-02-22 15:07:10 +01:00
<CustomAction Id="EnablePSRemoting"
BinaryKey="WixCA"
DllEntry="CAQuietExec"
Execute="deferred"
Return="ignore"
Impersonate="no" />
<InstallExecuteSequence>
<Custom Action="RegisterManifest" After="InstallFiles">
<![CDATA[NOT Installed AND (REGISTER_MANIFEST=1)]]>
</Custom>
<Custom Action="EnablePSRemoting" After="InstallFiles">
<![CDATA[NOT Installed AND (ENABLE_PSREMOTING=1)]]>
</Custom>
</InstallExecuteSequence>
2017-10-03 19:35:32 +02:00
<UI>
<Dialog Id="MyExitDialog" Width="370" Height="270" Title="!(loc.ExitDialog_Title)">
2018-01-06 08:53:45 +01:00
<Control Id="LaunchCheckBox" Type="CheckBox" X="10" Y="243" Width="170" Height="17" Property="LAUNCHAPPONEXIT" Hidden="yes" CheckBoxValue="1" Text="Launch $(env.ProductName)">
<Condition Action="show">NOT Installed</Condition>
</Control>
2017-10-03 19:35:32 +02:00
<Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUIFinish)" />
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUICancel)" />
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.ExitDialogBitmap)" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="20" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogDescription)" />
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogTitle)" />
<!-- Checkbox to allow starting PowerShell after the installation (in UI mode only) -->
</Dialog>
<InstallUISequence>
<Show Dialog="MyExitDialog" OnExit="success" />
</InstallUISequence>
<AdminUISequence>
<Show Dialog="MyExitDialog" OnExit="success" />
</AdminUISequence>
<Publish Dialog="MyExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
</UI>
<UI>
2018-02-22 15:07:10 +01:00
<Publish Dialog="MyExitDialog" Control="Finish" Order="1" Event="DoAction" Value="LaunchApplication">LAUNCHAPPONEXIT=1</Publish>
2017-10-03 19:35:32 +02:00
</UI>
2016-05-24 23:23:38 +02:00
<!-- Prerequisites -->
2017-10-11 01:40:07 +02:00
<Condition Message="Supported only on Windows 7 and above">
2017-10-03 19:35:32 +02:00
<![CDATA[ Installed OR $(var.MinOSVersionSupported) ]]>
</Condition>
2016-05-24 23:23:38 +02:00
<!-- Information About When Older Versions Are Trying To Be Installed-->
2017-07-17 20:12:36 +02:00
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of $(env.ProductName) is already installed." />
2016-05-24 23:23:38 +02:00
<!-- Embed Cabinet Files in Product-->
<MediaTemplate EmbedCab="yes" />
2017-10-03 19:35:32 +02:00
<!-- In Your Wix Setup Project, Add A Reference To WixUIExtension.dll -->
2018-01-05 18:53:19 +01:00
<UIRef Id="CustomWixUI_InstallDir" />
2016-05-24 23:23:38 +02:00
<!-- Features are mandatory. Need At Least One. -->
2016-06-27 20:39:49 +02:00
<Feature Id="ProductFeature" Title="PowerShell" Level="1">
2018-03-06 19:13:26 +01:00
<ComponentGroupRef Id="$(var.ProductDirectoryName)"/>
2016-05-24 23:23:38 +02:00
<ComponentRef Id="ProductVersionFolder"/>
<ComponentRef Id="ApplicationProgramsMenuShortcut"/>
2017-10-18 02:25:11 +02:00
<ComponentRef Id="RegistryEntries"/>
<ComponentRef Id="SetPath"/>
2018-01-05 18:53:19 +01:00
<ComponentRef Id="ExplorerContextMenu"/>
2016-05-24 23:23:38 +02:00
</Feature>
2017-10-11 01:40:07 +02:00
<!-- We need to show EULA, and provide option to customize download location -->
2016-06-28 01:04:57 +02:00
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
2017-09-15 03:42:36 +02:00
<!-- Prerequisite check for Windows Universal C runtime -->
<Property Id="UNIVERSAL_C_RUNTIME_INSTALLED" Secure="yes">
<DirectorySearch Id="WindowsDirectory" Path="[WindowsFolder]">
<DirectorySearch Id="System32" Path="System32">
<FileSearch Id="ucrtbase" Name="ucrtbase.dll"/>
</DirectorySearch>
2017-08-18 21:47:43 +02:00
</DirectorySearch>
2017-10-03 19:35:32 +02:00
</Property>
2017-10-11 01:40:07 +02:00
<Condition Message="$(env.ProductName) requires the Universal C Runtime to be installed to enable remoting over WinRM. You can find a download link to it here: https://aka.ms/pscore6-prereq">
2017-09-15 03:42:36 +02:00
<![CDATA[Installed OR UNIVERSAL_C_RUNTIME_INSTALLED]]>
</Condition>
2017-10-11 01:40:07 +02:00
<!-- Prerequisite check for Windows Management Framework -->
<Property Id="PWRSHPLUGIN_VERSION" Secure="yes">
2017-09-15 03:42:36 +02:00
<DirectorySearchRef Id="System32" Parent="WindowsDirectory" Path="System32">
2017-10-11 01:40:07 +02:00
<FileSearch Id="pwrshplugin" Name="pwrshplugin.dll" MinVersion="6.3.9600.16383"/>
2017-09-15 03:42:36 +02:00
</DirectorySearchRef>
2017-10-03 19:35:32 +02:00
</Property>
2017-10-11 01:40:07 +02:00
<Condition Message="$(env.ProductName) requires the Windows Management Framework 4.0 or newer to be installed to enable remoting over WinRM. You can find download links here: https://aka.ms/pscore6-prereq">
<![CDATA[Installed OR PWRSHPLUGIN_VERSION ]]>
2017-08-18 21:47:43 +02:00
</Condition>
2016-05-24 23:23:38 +02:00
<Directory Id="TARGETDIR" Name="SourceDir">
2016-11-16 19:32:21 +01:00
<Directory Id="$(var.ProductProgFilesDir)">
2016-06-27 20:39:49 +02:00
<Directory Id="INSTALLFOLDER" Name="PowerShell">
2018-04-02 19:47:29 +02:00
<Directory Id="$(var.ProductDirectoryName)" Name="$(var.SimpleProductVersion)">
2016-05-24 23:23:38 +02:00
<Component Id="ProductVersionFolder" Guid="{e1a7f05e-0cd6-4227-80a8-e4fb311f045c}">
<CreateFolder/>
</Component>
2017-10-18 02:25:11 +02:00
<Component Id="RegistryEntries" Guid="{402e52f7-baf8-489d-af21-f756a6ca3530}">
2018-02-05 19:02:58 +01:00
<!-- create key for easy detection of a particular version of a powershell core package
The upgrade code is used in the key because it will change when we allow SxS -->
<RegistryKey Root="HKLM" Key="Software\Microsoft\PowerShellCore\InstalledVersions\$(var.UpgradeCode)" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
2018-02-21 19:28:12 +01:00
<RegistryValue Type="string" Value="$(var.ProductSemanticVersion)" Name="SemanticVersion"/>
2018-02-05 19:02:58 +01:00
</RegistryKey>
<!-- register ourselves in application registry so can be started using just Win+R `pwsh.exe` -->
2018-01-17 04:09:12 +01:00
<RegistryKey Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\pwsh.exe" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
2018-03-06 19:13:26 +01:00
<RegistryValue Type="string" Value="[$(var.ProductDirectoryName)]pwsh.exe"/>
2017-10-18 02:25:11 +02:00
</RegistryKey>
</Component>
2018-01-05 18:53:19 +01:00
<!-- add ourselves to %PATH% so pwsh.exe can be started from Windows PowerShell or cmd.exe -->
2018-02-27 00:45:15 +01:00
<Component Id="SetPath" Guid="{9dbb7763-7baf-48e7-b025-3bdedcb0632f}" KeyPath="yes">
2018-04-02 19:47:29 +02:00
<Condition>ADD_PATH=1</Condition>
2018-07-25 22:32:10 +02:00
<Environment Id="PATH" Action="set" Name="PATH" Part="last" Permanent="no" System="yes" Value="[$(var.ProductDirectoryName)]$(var.PwshPath)"/>
2017-10-18 02:25:11 +02:00
</Component>
2018-01-05 18:53:19 +01:00
<!-- Explorer context menu with 2 submenus to open PowerShell normally or as an Administator.
See https://blogs.msdn.microsoft.com/andrew_richards/2017/03/01/enhancing-the-open-command-prompt-here-shift-right-click-context-menu-experience/ for details -->
2018-03-05 19:28:56 +01:00
<Component Id="ExplorerContextMenu" Guid="{df82e941-fced-4de9-aef8-c81a2946dd68}" KeyPath="yes">
2018-01-05 18:53:19 +01:00
<Condition>ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL</Condition>
<!-- When clicking on background in Explorer -->
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Directory\Background\shell\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)">
2018-01-10 05:17:06 +01:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextMenuDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-04-02 19:47:29 +02:00
<RegistryValue Type="string" Name="ExtendedSubCommandsKey" Value="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)"/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
<!-- When clicking on Drive in Explorer -->
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Drive\shell\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)">
2018-01-10 05:17:06 +01:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextMenuDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-04-02 19:47:29 +02:00
<RegistryValue Type="string" Name="ExtendedSubCommandsKey" Value="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)"/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
<!-- When clicking on Desktop background in Explorer -->
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="DesktopBackground\shell\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)">
2018-01-10 05:17:06 +01:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextMenuDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-04-02 19:47:29 +02:00
<RegistryValue Type="string" Name="ExtendedSubCommandsKey" Value="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)"/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
<!-- When clicking on folder in Explorer -->
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Directory\shell\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)">
2018-05-02 23:43:25 +02:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextMenuDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-05-02 23:43:25 +02:00
<RegistryValue Type="string" Name="ExtendedSubCommandsKey" Value="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)"/>
</RegistryKey>
<!-- When being in a Library folder in Explorer -->
<RegistryKey Root="HKCR" Key="LibraryFolder\background\shell\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)">
2018-01-10 05:17:06 +01:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextMenuDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-04-02 19:47:29 +02:00
<RegistryValue Type="string" Name="ExtendedSubCommandsKey" Value="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)"/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
<!-- Sub menus to open PowerShell at the current location either as a normal shell or as Administrator -->
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)\shell\open">
2018-01-10 05:17:06 +01:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextSubMenuDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)\shell\open\command">
2018-04-25 02:03:14 +02:00
<RegistryValue Type="string" Value="[$(var.ProductDirectoryName)]pwsh.exe -NoExit -WorkingDirectory "%V" "/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)\shell\runas">
2018-01-10 05:17:06 +01:00
<RegistryValue Type="string" Name="MUIVerb" Value="$(var.ExplorerContextSubMenuElevatedDialogText)"/>
2018-06-19 00:54:11 +02:00
<RegistryValue Type="string" Name="Icon" Value="[$(var.ProductDirectoryName)]$(env.IconPath)"/>
2018-01-05 18:53:19 +01:00
<RegistryValue Type="string" Value="" Name="HasLUAShield"/>
</RegistryKey>
2018-04-02 19:47:29 +02:00
<RegistryKey Root="HKCR" Key="Directory\ContextMenus\$(var.ProductName)$(var.SimpleProductVersion)$(sys.BUILDARCH)\shell\runas\command">
2018-04-25 02:03:14 +02:00
<RegistryValue Type="string" Value="[$(var.ProductDirectoryName)]pwsh.exe -NoExit -WorkingDirectory "%V" "/>
2018-01-05 18:53:19 +01:00
</RegistryKey>
</Component>
2016-05-24 23:23:38 +02:00
</Directory>
2017-10-03 19:35:32 +02:00
</Directory>
2016-05-24 23:23:38 +02:00
</Directory>
<Directory Id="ProgramMenuFolder">
2018-01-26 05:14:55 +01:00
<Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)">
2016-05-24 23:23:38 +02:00
<Component Id="ApplicationProgramsMenuShortcut" Guid="{A77507A7-F970-4618-AC30-20AFE36EE2EB}">
2018-02-27 00:45:15 +01:00
<Shortcut Id="PowerShell_ProgramsMenuShortcut"
2018-04-02 19:47:29 +02:00
Name="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
Description="$(var.ProductSimpleVersionWithNameAndOptionalArchitecture)"
2018-06-20 03:33:01 +02:00
Target="[$(var.ProductDirectoryName)]pwsh.exe"
Arguments="-WorkingDirectory ~"
2018-02-27 00:45:15 +01:00
Icon = "PowerShellExe.ico" />
2016-05-24 23:23:38 +02:00
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
2018-02-27 00:45:15 +01:00
<!-- HKMU is HKLM when installing perMachine and HKCU when installing perUser-->
2018-04-02 19:47:29 +02:00
<RegistryValue Root="HKMU" Key="Software\Microsoft\PowerShellCore\ProgramsMenuShortcut\$(var.SimpleProductVersion)" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
2016-05-24 23:23:38 +02:00
</Component>
</Directory>
</Directory>
</Directory>
</Product>
2018-01-05 18:53:19 +01:00
<!-- Explorer Context Menu Dialog -->
<Fragment>
<UI>
2018-02-22 15:07:10 +01:00
<Property Id="REGISTER_MANIFEST" Value="1" />
2018-07-25 22:32:10 +02:00
<Property Id="ADD_PATH" Value="1" />
2018-01-05 18:53:19 +01:00
<Dialog Id="ExplorerContextMenuDialog" Width="370" Height="270" Title="!(loc.ExitDialog_Title)">
2018-02-22 15:07:10 +01:00
<!-- If the checkboxes are defined first, then they are first in the tab order and can be ticked and unticked using the spacebar -->
2018-04-02 19:47:29 +02:00
<Control Id="AddToPathCheckBox" Type="CheckBox" X="20" Y="60" Width="290" Height="17" Property="ADD_PATH" CheckBoxValue="0" Text="Add $(var.ProductName) to Path Environment Variable"/>
<Control Id="RegisterManifestCheckBox" Type="CheckBox" X="20" Y="80" Width="290" Height="17" Property="REGISTER_MANIFEST" CheckBoxValue="0" Text="Register Windows Event Logging Manifest"/>
<Control Id="EnablePSRemotingCheckBox" Type="CheckBox" X="20" Y="100" Width="290" Height="17" Property="ENABLE_PSREMOTING" CheckBoxValue="0" Text="Enable $(var.ProductName) remoting"/>
<Control Id="ContextMenuOpenPowerShell" Type="CheckBox" X="20" Y="120" Width="290" Height="17" Property="ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL" CheckBoxValue="0" Text="Add '$(var.ExplorerContextSubMenuDialogText)' context menus to Explorer"/>
2018-01-05 18:53:19 +01:00
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)"/>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Cancel="yes" Default="yes" Text="!(loc.WixUINext)"/>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
</Control>
2018-02-22 15:07:10 +01:00
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}Optional Actions"/>
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="Initialization and Customization"/>
2018-01-05 18:53:19 +01:00
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)"/>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0"/>
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0"/>
</Dialog>
</UI>
</Fragment>
<!-- Customized version of WixUI_InstallDir, which is necessary to add custom dialogs. https://github.com/wixtoolset/wix3/blob/master/src/ext/UIExtension/wixlib/WixUI_InstallDir.wxs -->
<Fragment>
<UI Id="CustomWixUI_InstallDir">
<!--
First-time install dialog sequence:
- WixUI_WelcomeDlg
- WixUI_LicenseAgreementDlg
- WixUI_InstallDirDlg
- ExplorerContextMenuDialog
- WixUI_VerifyReadyDlg
- WixUI_DiskCostDlg
Maintenance dialog sequence:
- WixUI_MaintenanceWelcomeDlg
- WixUI_MaintenanceTypeDlg
- WixUI_InstallDirDlg
- WixUI_VerifyReadyDlg
Patch dialog sequence:
- WixUI_WelcomeDlg
- WixUI_VerifyReadyDlg
-->
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
<Property Id="WixUI_Mode" Value="InstallDir" />
<DialogRef Id="BrowseDlg" />
<DialogRef Id="DiskCostDlg" />
<DialogRef Id="ErrorDlg" />
<DialogRef Id="FatalError" />
<DialogRef Id="FilesInUse" />
<DialogRef Id="MsiRMFilesInUse" />
<DialogRef Id="PrepareDlg" />
<DialogRef Id="ProgressDlg" />
<DialogRef Id="ResumeDlg" />
<DialogRef Id="UserExit" />
<DialogRef Id="ExplorerContextMenuDialog" />
<Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
<Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg">NOT Installed</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
<Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">LicenseAccepted = "1"</Publish>
<Publish Dialog="ExplorerContextMenuDialog" Control="Back" Event="NewDialog" Value="InstallDirDlg">1</Publish>
<Publish Dialog="ExplorerContextMenuDialog" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="ExplorerContextMenuDialog" Order="5">1</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ExplorerContextMenuDialog" Order="1">NOT Installed</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">Installed AND PATCH</Publish>
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
<Property Id="ARPNOMODIFY" Value="1" />
</UI>
<UIRef Id="WixUI_Common" />
</Fragment>
2016-11-15 18:17:15 +01:00
</Wix>