Skip to content

Commit

Permalink
Re-added ability for vendor to choose not to show the end-user licens…
Browse files Browse the repository at this point in the history
…e agreement
  • Loading branch information
jmjaffe37 committed Apr 30, 2024
1 parent ab6da46 commit 434a247
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
9 changes: 7 additions & 2 deletions wix/Includes/OpenJDK.Variables.wxi.template
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@
<?define license="license-OpenJ9.en-us.rtf" ?>
<?define license_shown="1" ?>
<?elseif $(var.JVM)="hotspot" ?>
<?define license="license-GPLv2+CE.en-us.rtf" ?>
<?define license_shown="0" ?>
<?if "{vendor}"="Microsoft"?>
<?define license="license-GPLv2+CE.en-us.rtf" ?>
<?define license_shown="1" ?> <!-- Show license agreement dialog -->
<?else?>
<?define license="license-GPLv2+CE.en-us.rtf" ?>
<?define license_shown="0" ?> <!-- Showing GPLv2 License is optional. Do not show it here -->
<?endif?>
<?else?>
<?define license="no licence defined for $(var.JVM)" ?>
<?define license_shown="1" ?>
Expand Down
17 changes: 11 additions & 6 deletions wix/Main.wxs.template
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,18 @@

<UI>
<ui:WixUI Id="WixUI_FeatureTree" />
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg"
Order="3" />
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog"
Value="CustomInstallScopeDlg" Order="3" />
<?if $(var.license_shown)=1 ?>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg"
Order="3" />
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog"
Value="CustomInstallScopeDlg" Order="3" />
<Publish Dialog="CustomInstallScopeDlg" Control="Back" Event="NewDialog"
Value="LicenseAgreementDlg" />
<?else?>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="CustomInstallScopeDlg"
Order="3" />
<?endif?>

<Publish Dialog="CustomInstallScopeDlg" Control="Back" Event="NewDialog"
Value="LicenseAgreementDlg" />
<Publish Dialog="CustomInstallScopeDlg" Control="Next" Event="DoAction"
Value="CustomSetPerMachineFolder" Condition='WixAppFolder="WixPerMachineFolder"' Order="1" />
<Publish Dialog="CustomInstallScopeDlg" Control="Next" Event="DoAction"
Expand Down

0 comments on commit 434a247

Please sign in to comment.