auto install .net framework 2

D

deciacco

I created a deployment project for my .net 2 application in vs 2005. In the properties of the deployment project, under prerequisites i have "Create
setup program to install prerequisite components" checked and the ".Net Framework 2.0" prerequisite selected. The install location is set to "Download
prerequisite from component's vendor's web site".

After I create the setup file I click on the msi file and if the .Net framework is not installed on the machine it asks if I want to download it from
the vendors website. If I click yes, it takes me to this (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download dotnetfx.exe and install
it manually.

This is not the behavior I want. I want it to automatically download the framework and install it, then run my install again.

Can someone please explain how I can get vs2005 deployment project to do this?

Thanks!
 
N

Nicholas Paldino [.NET/C# MVP]

You aren't going to be able to get this easily. You are basically going
to have to write an unmanaged piece of code that will check to see if the
framework is installed, and if not, download and install it yourself.
 
E

Egghead

WOW, I thought Microsoft has the .Net 2.0 in the Redistributable already.
Actually, can you extract the msi from the setup.exe and do the merge module
(just an idea)?
--
cheers,
RL
Nicholas Paldino said:
You aren't going to be able to get this easily. You are basically
going to have to write an unmanaged piece of code that will check to see
if the framework is installed, and if not, download and install it
yourself.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

deciacco said:
I created a deployment project for my .net 2 application in vs 2005. In
the properties of the deployment project, under prerequisites i have
"Create setup program to install prerequisite components" checked and the
".Net Framework 2.0" prerequisite selected. The install location is set to
"Download prerequisite from component's vendor's web site".

After I create the setup file I click on the msi file and if the .Net
framework is not installed on the machine it asks if I want to download
it from the vendors website. If I click yes, it takes me to this
(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
dotnetfx.exe and install it manually.

This is not the behavior I want. I want it to automatically download the
framework and install it, then run my install again.

Can someone please explain how I can get vs2005 deployment project to do
this?

Thanks!
 
J

John Vottero

That unmanaged piece of code is already there (see the GenerateBootstrapper
task or class). The problem is that some genius at Microsoft moved the
target of that link thus breaking everyone's installer. This used to work
just as the OP (and I) want.

Nicholas Paldino said:
You aren't going to be able to get this easily. You are basically
going to have to write an unmanaged piece of code that will check to see
if the framework is installed, and if not, download and install it
yourself.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

deciacco said:
I created a deployment project for my .net 2 application in vs 2005. In
the properties of the deployment project, under prerequisites i have
"Create setup program to install prerequisite components" checked and the
".Net Framework 2.0" prerequisite selected. The install location is set to
"Download prerequisite from component's vendor's web site".

After I create the setup file I click on the msi file and if the .Net
framework is not installed on the machine it asks if I want to download
it from the vendors website. If I click yes, it takes me to this
(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
dotnetfx.exe and install it manually.

This is not the behavior I want. I want it to automatically download the
framework and install it, then run my install again.

Can someone please explain how I can get vs2005 deployment project to do
this?

Thanks!
 
J

John Vottero

John Vottero said:
That unmanaged piece of code is already there (see the
GenerateBootstrapper task or class). The problem is that some genius at
Microsoft moved the target of that link thus breaking everyone's
installer. This used to work just as the OP (and I) want.

Upon further review, I can see that the OP must be doing something wrong (or
different) because he's got the wrong URL. I apologize to all of the
genius' at Microsoft for jumping to conclusions. :)
Nicholas Paldino said:
You aren't going to be able to get this easily. You are basically
going to have to write an unmanaged piece of code that will check to see
if the framework is installed, and if not, download and install it
yourself.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

deciacco said:
I created a deployment project for my .net 2 application in vs 2005. In
the properties of the deployment project, under prerequisites i have
"Create setup program to install prerequisite components" checked and the
".Net Framework 2.0" prerequisite selected. The install location is set
to "Download prerequisite from component's vendor's web site".

After I create the setup file I click on the msi file and if the .Net
framework is not installed on the machine it asks if I want to download
it from the vendors website. If I click yes, it takes me to this
(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
dotnetfx.exe and install it manually.

This is not the behavior I want. I want it to automatically download the
framework and install it, then run my install again.

Can someone please explain how I can get vs2005 deployment project to do
this?

Thanks!
 
J

John Vottero

deciacco said:
I created a deployment project for my .net 2 application in vs 2005. In the
properties of the deployment project, under prerequisites i have "Create
setup program to install prerequisite components" checked and the ".Net
Framework 2.0" prerequisite selected. The install location is set to
"Download prerequisite from component's vendor's web site".

After I create the setup file I click on the msi file and if the .Net
framework is not installed on the machine it asks if I want to download it
from the vendors website. If I click yes, it takes me to this
(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
dotnetfx.exe and install it manually.

You're doing something wrong (or different) because the link should be:

http://go.microsoft.com/fwlink/?LinkId=37283

What language are you building on?
 
P

Phil Wilson

There are two ways that the framework can be downloaded. One is from the
setup.exe bootstrapper, the other is from the actual MSI file. You checked
the prerequisites box to use the first of these, and then ran the MSI file
(not the exe!) and invoked the second.
So it's the setup.exe that downloads the framework (and other dependencies)
from the prerequisites settings, and in the MSI file there are some settings
that are in the Properties window of the NET Framework launch condition in
the Launch Conditions view, including an InstallURL that you can edit.
 
R

Rad [Visual C# MVP]

I created a deployment project for my .net 2 application in vs 2005. In the properties of the deployment project, under prerequisites i have "Create
setup program to install prerequisite components" checked and the ".Net Framework 2.0" prerequisite selected. The install location is set to "Download
prerequisite from component's vendor's web site".

After I create the setup file I click on the msi file and if the .Net framework is not installed on the machine it asks if I want to download it from
the vendors website. If I click yes, it takes me to this (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download dotnetfx.exe and install
it manually.

This is not the behavior I want. I want it to automatically download the framework and install it, then run my install again.

Can someone please explain how I can get vs2005 deployment project to do this?

Thanks!
Why don't you set the install location to be the same folder as
application have visual studio copy the MSI to your installation
folder?
 
R

RobinS

Are you using ClickOnce deployment, or did you write your own Windows
Installer app?

My company is using ClickOnce, and we are installing .Net 2.0 from the MSFT
site with no problems. It downloads it for the user and installs it, then
continues with the ClickOnce deployment.

Robin S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top