473,244 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,244 software developers and data experts.

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 4692
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: CMan | last post by:
Hi, We are currently trying to install .Net Framework v.1.1 on a server which already has v1.0. We are receiving the following error. Error 1704.An installation for Microsoft .NET Framework...
2
by: | last post by:
Hi I am using VS .Net and created a deployment project with dotnet framework all together, however if the client do not have .netframework, i won't continue to install my project file after...
2
by: Someone Please Help! | last post by:
I had Visual Studio .NET installed on my system for a while and then decided I would install a second copy of Windows 2000 on my second drive and use it strictly for developing Visual Basic apps....
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
0
by: alpha_geek | last post by:
Hi every one, I am new to this forum, and programming in general, I come from a system admin background, and I wish to further my knowledge, job prospects etc. by expanding my skill set. I have...
6
by: | last post by:
Hi, can someone provide some advise on how to get around with using auto generated proxies? basically I already have the proxy classes, and they are used by other places. I'd like use these...
4
by: Daniel | last post by:
Hey guys When you get software on your machine that does this. 1) You load the software 2) it connects to its server 3) You get a message saying 'a new version of this software exists click...
6
by: John Fisher | last post by:
Hi Groupies, I have an Intel Macbook running OS X 10.4. It came installed with Python 2.3.5. I have since installed MacPython with version 2.4.4, cool. When I open a bash terminal session...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.