Search code examples
installation.net-4.5installshieldsetup-deploymentprerequisites

Which version of .NET, if any, must the user install to run my WPF app?


I'm making a setup program for an app I wrote. I'm using the Visual Studio setup template, using InstallShield. The wizard (not Merlin, unless it's Olsen, maybe) asks me about required software:

enter image description here

My app is built on a machine with both Windows 7 and Windows 8.1 installed. The app uses .NET Framework 4.5

Do I need to select "Microsoft .NET Framework 4.5 Full package" in the "Project Assistant > Installation Requirements" section of the Installshield wizard above, or...???


Solution

  • The answer will be in your WPF project settings and app.config. WPF was released in .NET 3.0 as I recall so you might be targeting 3.0, 3.5, 4.0 client, 4.0 full, 4.5 (full) or 4.5.1. If 3.0 or 3.5 you might have an app.config that says run on CLR 2 or 4. From there you tell InstallShield what kind of gate checks it should perform (if any). It might not be the end of the world if you just install the app and when you click the shortcut you get a friendly message telling the user what version to install.