Search code examples
.netwindowswixwindows-installer

How can i force Windows to start my own MSI after .NET installation performs a reboot?


I have a program which requires .NET 4.7.2. Therefore i created a bootstrapper which downloads .NET and install it. Unfortunately the installtion requires a reboot. My question is how can i tell Windows to start my MSI after the reboot of the .NET installtion?


Solution

  • You can write a registry value under the Run keys for this, with a command line for msiexec to launch your package.

    However, this should be handled automatically by most [setup authoring tools]2. What tool are you using to build your setup?

    EDIT: Here are two related topics on handling this when building packages with Wix Toolset: