You can just download the redistributable and attach it to the setup project, so it will run before installing. If you play a bit with the settings you could probably make it run only when necessary.
It's better to forget it. Just put the prerequisity of .NET 2.0 framework. It will help on the user to download framework from internet. If you send your app with CD, you can include framework with it and tell the user to activate the setup from CD. If, you still need that, then you need to create C++ native application that will first check the system, install the framework if necessary, and then start your app setup.
I'm trying to do that. At the Launch Conditions window the .NET framewrk dependecy has a Propertie called InstallUrl. I read that if you point that to an dotnetfx.exe, you can run it instead of downloading from the web. I tried, inserted ".", "./", "dotnetfx.exe", combinations with these words but nothing happend. What I did wrong
Thanks, I'll read these articles. (The second one is not working). I tried using file://dotnetfx.exe, but it is still trying to download the package thanks
In Visual Studio, when you have your solution open - create a new project in your solution from "Other Project Types/Setup and Deployment/Setup Project" (choose Add to Solution instead of Create new Solution).
In Application Folder, "Right Click/Add/Project Output.../select your project/Primary output".
If this is a .NET project - Visual Studio will automatically add a dependency to have a proper version of .NET installed.
There are some limitations - the framework will be installed from the Internet, the installer requires version 3.1 of Windows Installer installed and the setup will consist of two files - the msi (ms installer) package and setup.exe, but with some tweaking - it should get you where you want to get.
What product are you using to create installations
There's a
dotnetfx.exe redistributable that some installers like Wise can kick
off and run silently. If they support this then they should have
documentation on how to boot strap the .net installation.
Installing a c# app with .net framework
hye_heena
mnaples12
Ricardo Francisco
If, you still need that, then you need to create C++ native application that will first check the system, install the framework if necessary, and then start your app setup.
mcnamaragio
At the Launch Conditions window the .NET framewrk dependecy has a Propertie called InstallUrl. I read that if you point that to an dotnetfx.exe, you can run it instead of downloading from the web. I tried, inserted ".", "./", "dotnetfx.exe", combinations with these words but nothing happend.
What I did wrong
snuffnit
You can try a combination of paths in file://dotnetfx.exe. You could put the file in a network share, or add it to the deployment project.
You could also look for a .NET merge module.
These articles seem to explain what to do in more details:
http://dotnet.mvps.org/dotnet/faqs/ id=deployframework
http://www.codeproject.com/dotnet/dotnetdeployment.asp
Hope these help,
Filip Skakun
CSharpShooter
I'm giving up I think, I'll ask for my friends to download the package
Nihal Chand
I'll read these articles. (The second one is not working).
I tried using file://dotnetfx.exe, but it is still trying to download the package
thanks
Wicket
Ok, I didn't want to, but I think it is the only way.
I'm going to ask everyone to download the framework =/
MKBender
Sure.
In Visual Studio, when you have your solution open - create a new project in your solution from "Other Project Types/Setup and Deployment/Setup Project" (choose Add to Solution instead of Create new Solution).
In Application Folder, "Right Click/Add/Project Output.../select your project/Primary output".
If this is a .NET project - Visual Studio will automatically add a dependency to have a proper version of .NET installed.
There are some limitations - the framework will be installed from the Internet, the installer requires version 3.1 of Windows Installer installed and the setup will consist of two files - the msi (ms installer) package and setup.exe, but with some tweaking - it should get you where you want to get.
CantStopGamin
BarrySumpter
There's a dotnetfx.exe redistributable that some installers like Wise can kick off and run silently. If they support this then they should have documentation on how to boot strap the .net installation.