Wix Toolset: Skip success dialog in StdBA

183 Views Asked by At

I am using WixStandardBootstrapperApplication in bundle It will install .NET 4.8 and one MSI package, Can find code below,

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
        <bal:WixStandardBootstrapperApplication
            ThemeFile="theme.xml"
            SuppressOptionsUI="yes"
            LicenseUrl=""/>
</BootstrapperApplicationRef>
<Chain DisableRollback="yes">
        <PackageGroupRef Id="NetFx48Web"/>
        <MsiPackage Id="myMBS"
                    SourceFile="$(var.Mbs.Updater.TargetPath)"
                    DisplayInternalUI="yes"/>
</Chain>

Inside that MSI package we have Custom Action to LaunchApplication after InstallFinalize

<InstallExecuteSequence>
            <Custom Action="LaunchApplication" After="InstallFinalize" />
</InstallExecuteSequence>

So we don't need to StdBAs bundle to show Success Dialog, How to skip that I have researched but didint find any workable solution

3

There are 3 best solutions below

4
Sean Hall On BEST ANSWER

The WixInternalUIBootstrapperApplication was added in v4.0-preview.1 for this scenario where the bundle has 0-n prerequisites and one main MSI. If the prereqs don't need to be installed then only the splash screen and MSI UI will be shown. Otherwise, the prereq BA shows its UI while installing the prereqs and then closes before showing the MSI UI.

0
Rajadurai Azhagudurai On

I conclude it is not possible in StdBA

The default UI dialog will come throughout the installation process in StdBA. So skipping the page is not possible yet. Still if needed means then custom BA will help achieve that. I am not tried it yet

Supporting link https://stackoverflow.com/a/43522884/7013033

0
scaler On

More common would be to provide the user an option wether to start the application or not after successful installation of all packages. This could be done by the WixStandardBootstrapperApplication build in property LaunchTarget. Then you could also remove the custom action from the msi installer.

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
        <bal:WixStandardBootstrapperApplication
            ThemeFile="theme.xml"
            SuppressOptionsUI="yes"
            LicenseUrl=""
            LaunchTarget="{YOURAPPLICATIONPATH}"/>
</BootstrapperApplicationRef>
<Chain DisableRollback="yes">
        <PackageGroupRef Id="NetFx48Web"/>
        <MsiPackage Id="myMBS"
                    SourceFile="$(var.Mbs.Updater.TargetPath)"
                    DisplayInternalUI="yes"/>
</Chain>

Documentation https://wixtoolset.org/documentation/manual/v3/xsd/bal/wixstandardbootstrapperapplication.html