473,387 Members | 1,465 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,387 software developers and data experts.

Setup & Deployment projects - .Net Framework detection and config file management - how to?

I have an app that is deployed that uses .config file settings. I have an
update of that app that I am installing using a setup and deployment
project. The basic setup process works fine. Now I want to get a little
fancier.

I need to have the setup process check for the existence of the .NET
Framework and install it if it is not present. How do I do this?

To carry this even a step further, how do I detect the VERSION of .NET
Framework, if installed, and verify it is the correct one for this
application build? If it is not the correct version, can two version of the
..NET Framework run simultaneously on the same machine?

My application uses <application>.exe.config files. I need to merge the
data in the existing .config file, if one exists, with an updated .config
file. This way I can enhance the .config structure while retaining
configuration settings already on the target machine. How do I do this?

Do you know of a good resource for learning more about setup and deployment
projects? I can't seem to find much info at my level. Of course that may
just mean I need to bring my level up a notch or two.... Thanks for any
help!

Let me know,
DAF
Jul 19 '05 #1
2 4120
As for the side by side issues, have a look at:
http://msdn.microsoft.com/library/de...dexsidenet.asp
http://support.microsoft.com/default...b;en-us;818641 - this is a
whitepaper on the topic.

The .Net Framework redistributable page is at:
http://msdn.microsoft.com/library/de...vframework.asp

As for detecting the version, the closest article I found was:
http://support.microsoft.com/default...b;en-us;315291

You can look further if you need later versions than the above article
mentions.
--
--matthew
-------------------------------------------------------------
Please do not send email directly to the alias used to post to the
newsgroup. The alias is for newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Darwin Fisk" <Da****@DotNetDesigns.com> wrote in message
news:er**************@tk2msftngp13.phx.gbl...
I have an app that is deployed that uses .config file settings. I have an
update of that app that I am installing using a setup and deployment
project. The basic setup process works fine. Now I want to get a little
fancier.

I need to have the setup process check for the existence of the .NET
Framework and install it if it is not present. How do I do this?

To carry this even a step further, how do I detect the VERSION of .NET
Framework, if installed, and verify it is the correct one for this
application build? If it is not the correct version, can two version of the .NET Framework run simultaneously on the same machine?

My application uses <application>.exe.config files. I need to merge the
data in the existing .config file, if one exists, with an updated .config
file. This way I can enhance the .config structure while retaining
configuration settings already on the target machine. How do I do this?

Do you know of a good resource for learning more about setup and deployment projects? I can't seem to find much info at my level. Of course that may
just mean I need to bring my level up a notch or two.... Thanks for any
help!

Let me know,
DAF

Jul 19 '05 #2
That article about version detection completely ignores that fact that there
is a MsiNetAssemblySupport property which returns a string containing the
latest version of the framework on the system. If you require a minimum
level, add a launch condition similar to MsiNetAssemblySupport
="1.0.3705.288" and a suitable message.
Launching is trickier, especially if you need to install the base and a
service pack. It's nearly always better to ask the user to do it manually
(localized versions might be an issue too).
--
Phil Wilson [MVP Windows Installer]

"Matthew Wetmore [MSFT]" <ma****@online.microsoft.com> wrote in message
news:Of**************@TK2MSFTNGP11.phx.gbl... As for the side by side issues, have a look at:
http://msdn.microsoft.com/library/de...dexsidenet.asp http://support.microsoft.com/default...b;en-us;818641 - this is a
whitepaper on the topic.

The .Net Framework redistributable page is at:
http://msdn.microsoft.com/library/de...vframework.asp
As for detecting the version, the closest article I found was:
http://support.microsoft.com/default...b;en-us;315291

You can look further if you need later versions than the above article
mentions.
--
--matthew
-------------------------------------------------------------
Please do not send email directly to the alias used to post to the
newsgroup. The alias is for newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.

"Darwin Fisk" <Da****@DotNetDesigns.com> wrote in message
news:er**************@tk2msftngp13.phx.gbl...
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment
project. The basic setup process works fine. Now I want to get a little fancier.

I need to have the setup process check for the existence of the .NET
Framework and install it if it is not present. How do I do this?

To carry this even a step further, how do I detect the VERSION of .NET
Framework, if installed, and verify it is the correct one for this
application build? If it is not the correct version, can two version of

the
.NET Framework run simultaneously on the same machine?

My application uses <application>.exe.config files. I need to merge the
data in the existing .config file, if one exists, with an updated ..config file. This way I can enhance the .config structure while retaining
configuration settings already on the target machine. How do I do this?

Do you know of a good resource for learning more about setup and

deployment
projects? I can't seem to find much info at my level. Of course that may just mean I need to bring my level up a notch or two.... Thanks for any
help!

Let me know,
DAF


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET...
4
by: Nick | last post by:
Hi, I have a windows application, wherein the solution consists of 5 projects. When I try to create a setup and deployment project for this solution, I'm somehow unable to add anything in...
1
by: ThunderMusic | last post by:
Hi, I want to know if there is a place to learn about Setup Projects, because I'm trying to make one but can't do the things I want to do, like add a registry key or allow the user to...
2
by: Darwin Fisk | last post by:
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment project. The basic setup process works fine. Now I...
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
4
by: Chuck P | last post by:
I was wondering what practices people have come up with for deployment. I want to precompile the application and encrypt portions of the web.config. In 1.0 I just did a batch file that would...
3
by: sanghavi | last post by:
how to create a set up project in vb.net..how to run an application on a different machine
3
by: zeenets | last post by:
Dear All, I make setup and deployment project in windows application. and use project primary output in setup. after installing on client machine my app.config file is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.