473,320 Members | 1,957 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,320 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 4698
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: 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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.