Skip to content

Commit

Permalink
More virtual/override symbols.
Browse files Browse the repository at this point in the history
And *Sequence/Show works thusly, even with somewhat funky ids.
  • Loading branch information
barnson committed Mar 3, 2024
1 parent 1a1da6f commit 10ddcc2
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ public void CannotBuildWithV3LikeUIRef()

private static void Build(string[] args)
{
var result = WixRunner.Execute(args)
.AssertSuccess();
var result = WixRunner.Execute(args);
result.AssertSuccess();
}

private static void BuildX64(string[] args)
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/Common.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Binary Id="WixUI_Ico_Info" SourceFile="!(wix.WixUIInfoIco=$(var.infoIco))" />
<Binary Id="WixUI_Bmp_New" SourceFile="!(wix.WixUINewIco=$(var.newIco))" />
<Binary Id="WixUI_Bmp_Up" SourceFile="!(wix.WixUIUpIco=$(var.upIco))" />
<WixVariable Id="WixUICostingPopupOptOut" Value="1" Overridable="yes" />
<WixVariable Id="virtual WixUICostingPopupOptOut" Value="1" />

<UI Id="WixUI_Common">
<!-- ui text -->
Expand Down
4 changes: 2 additions & 2 deletions src/ext/UI/wixlib/ExitDialog.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</Dialog>

<InstallUISequence>
<Show Dialog="ExitDialog" OnExit="success" Overridable="yes" />
<Show Dialog="virtual ExitDialog" OnExit="success" />
</InstallUISequence>

<AdminUISequence>
<Show Dialog="ExitDialog" OnExit="success" Overridable="yes" />
<Show Dialog="virtual ExitDialog" OnExit="success" />
</AdminUISequence>
</UI>
</Fragment>
Expand Down
4 changes: 2 additions & 2 deletions src/ext/UI/wixlib/FatalError.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</Dialog>

<InstallUISequence>
<Show Dialog="FatalError" OnExit="error" Overridable="yes" />
<Show Dialog="virtual FatalError" OnExit="error" />
</InstallUISequence>

<AdminUISequence>
<Show Dialog="FatalError" OnExit="error" Overridable="yes" />
<Show Dialog="virtual FatalError" OnExit="error" />
</AdminUISequence>
</UI>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/MaintenanceWelcomeDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</Dialog>

<InstallUISequence>
<Show Dialog="MaintenanceWelcomeDlg" Before="ProgressDlg" Overridable="yes" Condition="Installed AND NOT RESUME AND NOT Preselected AND NOT PATCH" />
<Show Dialog="virtual MaintenanceWelcomeDlg" Before="ProgressDlg" Condition="Installed AND NOT RESUME AND NOT Preselected AND NOT PATCH" />
</InstallUISequence>
</UI>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/PrepareDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</Dialog>

<InstallUISequence>
<Show Dialog="PrepareDlg" Before="AppSearch" Overridable="yes" />
<Show Dialog="virtual PrepareDlg" Before="AppSearch" />
</InstallUISequence>
</UI>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/ProgressDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</Dialog>

<InstallUISequence>
<Show Dialog="ProgressDlg" Before="ExecuteAction" Overridable="yes" />
<Show Dialog="virtual ProgressDlg" Before="ExecuteAction" />
</InstallUISequence>
</UI>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/ResumeDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</Dialog>

<InstallUISequence>
<Show Dialog="ResumeDlg" Before="ProgressDlg" Overridable="yes" Condition="Installed AND (RESUME OR Preselected)" />
<Show Dialog="virtual ResumeDlg" Before="ProgressDlg" Condition="Installed AND (RESUME OR Preselected)" />
</InstallUISequence>
</UI>
</Fragment>
Expand Down
4 changes: 2 additions & 2 deletions src/ext/UI/wixlib/UserExit.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</Dialog>

<InstallUISequence>
<Show Dialog="UserExit" OnExit="cancel" Overridable="yes" />
<Show Dialog="virtual UserExit" OnExit="cancel" />
</InstallUISequence>

<AdminUISequence>
<Show Dialog="UserExit" OnExit="cancel" Overridable="yes" />
<Show Dialog="virtual UserExit" OnExit="cancel" />
</AdminUISequence>
</UI>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/WelcomeDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</Dialog>

<InstallUISequence>
<Show Dialog="WelcomeDlg" Before="ProgressDlg" Overridable="yes" Condition="NOT Installed OR PATCH" />
<Show Dialog="virtual WelcomeDlg" Before="ProgressDlg" Condition="NOT Installed OR PATCH" />
</InstallUISequence>
</UI>
</Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/ext/UI/wixlib/WelcomeEulaDlg.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</UI>

<InstallUISequence>
<Show Dialog="WelcomeEulaDlg" Before="ProgressDlg" Overridable="yes" Condition="NOT Installed" />
<Show Dialog="virtual WelcomeEulaDlg" Before="ProgressDlg" Condition="NOT Installed" />
</InstallUISequence>
</Fragment>
</Wix>
8 changes: 4 additions & 4 deletions src/ext/UI/wixlib/WixUI_Advanced.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ installs, install path, and features.
WiX variables used:
- WixUISupportPerMachine
- WixUISupportPerUser
Todo:
- Clicking Install doesn't work! - APPLICATIONFOLDER isn't set; need to accept another "incoming" property.
- Replace this dialog set UI fragment with the UI extension.
Expand All @@ -33,8 +33,8 @@ Todo:
<?endforeach?>

<Fragment>
<WixVariable Id="WixUISupportPerUser" Value="1" Overridable="yes" />
<WixVariable Id="WixUISupportPerMachine" Value="1" Overridable="yes" />
<WixVariable Id="virtual WixUISupportPerUser" Value="1" />
<WixVariable Id="virtual WixUISupportPerMachine" Value="1" />

<PropertyRef Id="ApplicationFolderName" />

Expand Down Expand Up @@ -119,7 +119,7 @@ Todo:
</UI>

<InstallUISequence>
<Show Dialog="WelcomeDlg" Before="AdvancedWelcomeEulaDlg" Condition="Installed AND PATCH" />
<Show Dialog="override WelcomeDlg" Before="AdvancedWelcomeEulaDlg" Condition="Installed AND PATCH" />
</InstallUISequence>

<Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
Expand Down

0 comments on commit 10ddcc2

Please sign in to comment.