If anyone writing a custom bootstrapper for the wix installer in .net, then something might be useful. If you are using splash screen then you need to manually close it by using the following code:
First you register splashscreen inside bundle element:
<Bundle .. SplashScreenSourceFile="splash.bmp">
and then you need to close it using the following code:
public Bootstrapper(BootstrapperApplication installer)
{
...
installer.Engine.CloseSplashScreen();
}
Took me a while to find as there is no documentation regarding this.
First you register splashscreen inside bundle element:
<Bundle .. SplashScreenSourceFile="splash.bmp">
and then you need to close it using the following code:
public Bootstrapper(BootstrapperApplication installer)
{
...
installer.Engine.CloseSplashScreen();
}
Took me a while to find as there is no documentation regarding this.
Thank you very much! You saved me a lot of time! Could not find how to close splashscreen, but luckily got on your blog!
ReplyDelete