473,503 Members | 338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Nov 13 '05 #1
2 9474
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

Nov 13 '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


Nov 13 '05 #3

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

Similar topics

2
4131
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...
1
4166
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
2442
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
1787
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...
4
1583
by: Vai2000 | last post by:
Hi All, I have a doubt on WS. Initial deployment of an asp.net app which calls a websvc includes copying all the webreferences and proxy files (including the .cs files of the proxy) If I build a...
7
22471
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
1621
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
3914
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
1906
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
7203
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
7087
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...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.