By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,332 Members | 1,372 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,332 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.