Search code examples
c#visual-studio-2015installationvisual-studio-setup-proje

VS 2015 Prerequisites dotnetfx parameters


I created s small C# tool and a Installer Project for the tool, my tool uses the .net framework 4.6. The client uses the version 3.5 (Windows 7 SP1 32-bit) - everything works fine.

The Setup-Project detects the prerequisites version and start installing the dotNetFx45_Full_x86_x64.exe

But after installing the dotnetfx, the setup project doesn't start restart. Is it possible to restart the Setup.exe after installing dotnetfx?

I guess yes, maybe with the following parameters /norestart /ChainingPackage

But how do I pass this parameters to the dotnetfx.exe?

My current Setup-Folder:

/Setup.exe
/DotNetFX45/dotNetFx45_Full_x86_x64.exe
/DotNetFX45/dotNetFx45LP_Full_x86_x64de.exe

Or should I use the following Setup-Folder:

/Setup.exe
/dotNetFx45_Full_x86_x64.exe
/dotNetFx45LP_Full_x86_x64de.exe

Thanks.


Solution

  • For your requirement, you can have a look at this: .NET Framework Deployment Guide for Developers

    There are three methods to deployment the .NET Framework version on the target machine, you can directly specify the .NET Framework as a prerequisite in your app’s installation, or chain the .NET Framework setup process in your app’s setup.

    When you try to chain the .NET Framework redistributable to your app’s setup, some useful command-line options are described, like /chainingpackage packageName, /norestart, /q …. You can have a test with those parameters and your setup folder structure, check it matches your idea or not.