|
44 | 44 | <WixVariable Id="WixUIBannerBmp" Value="assets\WixUIBannerBmp.bmp" /> |
45 | 45 | <WixVariable Id="WixUIDialogBmp" Value="assets\WixUIDialogBmp.bmp" /> |
46 | 46 | <WixVariable Id="WixUIExclamationIco" Value="assets\WixUIInfoIco.bmp" /> |
47 | | - <WixVariable Id="WixUIInfoIco" Value="assets\WixUIInfoIco.bmp" /> |
| 47 | + <WixVariable Id="WixUIInfoIco" Value="assets\ps_black_32x32.ico" /> |
48 | 48 | <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Open $(env.ProductName)" /> |
49 | 49 | <!-- Default value of Checkbox of starting PowerShell after installation --> |
50 | 50 | <Property Id="WixShellExecTarget" Value="[$(var.ProductDirectoryName)]pwsh.exe"/> |
|
80 | 80 | </InstallExecuteSequence> |
81 | 81 | <UI> |
82 | 82 | <Dialog Id="MyExitDialog" Width="370" Height="270" Title="!(loc.ExitDialog_Title)"> |
83 | | - <Control Id="LaunchCheckBox" Type="CheckBox" X="10" Y="243" Width="170" Height="17" Property="LAUNCHAPPONEXIT" Hidden="yes" CheckBoxValue="1" Text="Launch $(env.ProductName)"> |
| 83 | + <Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="yes" Text="!(loc.ExitDialogBitmap)" /> |
| 84 | + <Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogTitle)" TabSkip="yes" /> |
| 85 | + <Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="20" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogDescription)" TabSkip="yes" /> |
| 86 | + <!-- divider between check boxes and button row --> |
| 87 | + <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" TabSkip="yes" /> |
| 88 | + <!-- Button row --> |
| 89 | + <!-- Checkbox to allow starting PowerShell after the installation (in UI mode only) --> |
| 90 | + <Control Id="LaunchCheckBox" Type="CheckBox" X="10" Y="243" Width="170" Height="17" Property="LAUNCHAPPONEXIT" Hidden="yes" CheckBoxValue="1" Text="Launch $(env.ProductName)" > |
84 | 91 | <Condition Action="show">NOT Installed</Condition> |
85 | 92 | </Control> |
| 93 | + <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)" /> |
86 | 94 | <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Cancel="yes" Text="!(loc.WixUIFinish)" /> |
87 | 95 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUICancel)" /> |
88 | | - <Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.ExitDialogBitmap)" /> |
89 | | - <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="!(loc.WixUIBack)" /> |
90 | | - <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" /> |
91 | | - <Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="20" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogDescription)" /> |
92 | | - <Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes" Text="!(loc.ExitDialogTitle)" /> |
93 | | - <!-- Checkbox to allow starting PowerShell after the installation (in UI mode only) --> |
94 | 96 | </Dialog> |
95 | 97 | <InstallUISequence> |
96 | 98 | <Show Dialog="MyExitDialog" OnExit="success" /> |
|
246 | 248 | <Property Id="REGISTER_MANIFEST" Value="1" /> |
247 | 249 | <Property Id="ADD_PATH" Value="1" /> |
248 | 250 | <Dialog Id="ExplorerContextMenuDialog" Width="370" Height="270" Title="!(loc.ExitDialog_Title)"> |
| 251 | + <!-- Banner --> |
| 252 | + <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="yes" Text="!(loc.InstallDirDlgBannerBitmap)"/> |
| 253 | + <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}Optional Actions" TabSkip="yes" /> |
| 254 | + <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="Initialization and Customization" TabSkip="yes" /> |
| 255 | + <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" TabSkip="yes" /> |
249 | 256 | <!-- If the checkboxes are defined first, then they are first in the tab order and can be ticked and unticked using the spacebar --> |
250 | 257 | <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"/> |
251 | 258 | <Control Id="RegisterManifestCheckBox" Type="CheckBox" X="20" Y="80" Width="290" Height="17" Property="REGISTER_MANIFEST" CheckBoxValue="0" Text="Register Windows Event Logging Manifest"/> |
252 | 259 | <Control Id="EnablePSRemotingCheckBox" Type="CheckBox" X="20" Y="100" Width="290" Height="17" Property="ENABLE_PSREMOTING" CheckBoxValue="0" Text="Enable $(var.ProductName) remoting"/> |
253 | 260 | <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"/> |
| 261 | + <Control Id="LicenseLink" Type="Hyperlink" X="20" Y="190" Width="214" Height="17"> |
| 262 | + <Text><![CDATA[<a href="https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt">The application is distributed under the MIT license.</a>]]></Text> |
| 263 | + </Control> |
| 264 | + <Control Id="TpnLink" Type="Hyperlink" X="20" Y="210" Width="290" Height="17"> |
| 265 | + <Text><![CDATA[<a href="https://github.com/PowerShell/PowerShell/blob/master/ThirdPartyNotices.txt">Please review the ThirdPartyNotices.txt</a>]]></Text> |
| 266 | + </Control> |
| 267 | + <!-- divider and bottom buttons --> |
| 268 | + <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" TabSkip="yes"/> |
254 | 269 | <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)"/> |
255 | 270 | <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Cancel="yes" Default="yes" Text="!(loc.WixUINext)"/> |
256 | 271 | <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"> |
257 | 272 | <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish> |
258 | 273 | </Control> |
259 | | - |
260 | | - <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes" Text="{\WixUI_Font_Title}Optional Actions"/> |
261 | | - <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes" Text="Initialization and Customization"/> |
262 | | - <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)"/> |
263 | | - <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0"/> |
264 | | - <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0"/> |
265 | 274 | </Dialog> |
266 | 275 | </UI> |
267 | 276 | </Fragment> |
|
272 | 281 | <!-- |
273 | 282 | First-time install dialog sequence: |
274 | 283 | - WixUI_WelcomeDlg |
275 | | - - WixUI_LicenseAgreementDlg |
276 | 284 | - WixUI_InstallDirDlg |
277 | 285 | - ExplorerContextMenuDialog |
278 | 286 | - WixUI_VerifyReadyDlg |
|
310 | 318 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish> |
311 | 319 | <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish> |
312 | 320 |
|
313 | | - <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg">NOT Installed</Publish> |
| 321 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">NOT Installed</Publish> |
314 | 322 | <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish> |
315 | 323 |
|
316 | | - <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> |
317 | | - <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">LicenseAccepted = "1"</Publish> |
318 | | - |
319 | | - <Publish Dialog="ExplorerContextMenuDialog" Control="Back" Event="NewDialog" Value="InstallDirDlg">1</Publish> |
| 324 | + <Publish Dialog="ExplorerContextMenuDialog" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> |
320 | 325 | <Publish Dialog="ExplorerContextMenuDialog" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
321 | 326 |
|
322 | | - <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish> |
| 327 | + <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> |
323 | 328 | <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish> |
324 | 329 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish> |
325 | 330 | <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish> |
|