468,136 Members | 1,451 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,136 developers. It's quick & easy.

auto install .net framework 2

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!
Jul 17 '07 #1
8 4454
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]
- mv*@spam.guard.caspershouse.com

"deciacco" <a@awrote in message
news:Da******************************@giganews.com ...
>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!

Jul 17 '07 #2
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:eB**************@TK2MSFTNGP03.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"deciacco" <a@awrote in message
news:Da******************************@giganews.com ...
>>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!


Jul 17 '07 #3
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:eB**************@TK2MSFTNGP03.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"deciacco" <a@awrote in message
news:Da******************************@giganews.com ...
>>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!

Jul 17 '07 #4
"John Vottero" <JV******@mvpsi.comwrote in message
news:3C**********************************@microsof t.com...
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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote
in message news:eB**************@TK2MSFTNGP03.phx.gbl...
> 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]
- mv*@spam.guard.caspershouse.com

"deciacco" <a@awrote in message
news:Da******************************@giganews.co m...
>>>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!

Jul 17 '07 #5
"deciacco" <a@awrote in message
news:Da******************************@giganews.com ...
>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?
Jul 17 '07 #6
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.
--
Phil Wilson
[MVP Windows Installer]
"deciacco" <a@awrote in message
news:Da******************************@giganews.com ...
>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!

Jul 17 '07 #7
On Tue, 17 Jul 2007 10:24:18 -0500, deciacco <a@awrote:
>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?

--
http://bytes.thinkersroom.com
Jul 18 '07 #8
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.
-------------------
"Rad [Visual C# MVP]" <ra*@nospam.comwrote in message
news:tc********************************@4ax.com...
On Tue, 17 Jul 2007 10:24:18 -0500, deciacco <a@awrote:
>>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?

--
http://bytes.thinkersroom.com

Jul 24 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by | last post: by
2 posts views Thread by Someone Please Help! | last post: by
7 posts views Thread by p | last post: by
reply views Thread by alpha_geek | last post: by
4 posts views Thread by Daniel | last post: by
6 posts views Thread by John Fisher | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.