Hello all,
I have created a vb application which i will be rolling out to machines that do not have the .NET framework. I'd prefer not go to each PC and install the framework first if possible.
I though it would be good to create a framework Launch Condition and if it's not there install it before installing my application.
Is this possible and if so can anyone give some pointers on how its done
Cheers
Rob

Deploying applications and the .NET framework
crystalreports
Do I have to get IIS to use Smart client deployment
Thanks
VOEagain
Add a setup project to your solution and run through the wizard to add the output of your project. By default, it will add a launch condition to check for the .net framework (right-click the setup project in the Solution explorer, select View > Launch Conditions). If you don't make any changes, then when a user who does not have the framework installed runs your setup program, they get a message saying something about having to install the framework and if the user selects "yes", it redirects them to the following page: http://go.microsoft.com/fwlink/ LinkId=9832. Check that link out and see if your users can figure out what they need to download. :)
I changed the properties of the .NET Framework launch condition to be the following:
InstallUrl = DOTNETFX.EXE
Message = You must first install the .NET Framework before this application can be installed. Click Yes to begin the installation, or click No to stop for now and try again later.
I have to include DOTNETFX.EXE with my setup program, but this at least saves the user from having to download it from Microsoft's site. The bummer is that once they have the framework installed, they have to re-start the setup program again to complete the install of your application.
I'm sure there are much more graceful ways to handle this, but I tried this and it worked.
Todd Gray
CalBob
It will have to do for the time being.
Rob.
JonM
mrferg
"Add a setup project to your solution." How I went to File: Add Project: New Project.
"Run through the wizard to add the output of your project." I have no clue what you are referring to. As a programmer, the phrase "output of your project" is what is displayed on the screen when my project is compiled and running. I went through the 'create a project' wizard, assuming that is what you are referring to.
"select View > Launch Conditions." I cannot find View when I right click on the project or the solution. Launch Conditions is not under the View menu.
"InstallUrl = DOTNETFX.EXE" Where did you change this I cannot find InstallUrl anywhere.
Simply: I have a C# program. Nobody can run it because nobody has the .net framework. Instead of going from computer to computer and installing .net on everyone's computer, I want my program to see if it is installed. If not, install it.
I was told that C# would be more deployable than Java. It is even more of a pain in the ***. Sun gives out a free and easy to use installer for your program that will install the JRE if needed and then launch your program. Microsoft apparently just assumes that everyone has .net installed.
cdolo
See http://msdn.microsoft.com/msdnmag/issues/04/10/Bootstrapper/ for more info.
Regards,
Sameer