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

.NET Framework deploy and the Setup and Deploy Projects

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 IDE isn't capable of create a setup and deploy project and, in a
elegant way, during the setup process, detect the absence of the Framework.
In this case, I'd like to run the Dotnetredist.exe file, first, and the
SP2's NDP10_SP_Q321884_En.exe after that, silently... As I've noticed, the
only thing we have is Microsoft's Bootstrapper proposal, which can only run
the Dotnetredist.exe and that's all... Am I right, or do we have any other
elegant alternative to install the Framework and, better, the SP2 after
that?

2. I have an application which looks every time it's started for an XML
config file to capture the database's server name, login, password, etc. So,
when the application is installed, this file doesn't exist for the first
time, and the application will create it. But, when I uninstall the
application, all of the installed files are removed, but this config file
remains in the application's path. So, can we have some setup config
settings to remove everything, including those "new" files?

I'll really appreciate for any help.

Thanks,
Wilson.
Jul 19 '05 #1
1 4158
A VS setup project that includes a .NET assembly will add a dependency on
the framework and a launch condition that you can edit - it's got a
supportedruntime property that's the framework version you want. You can
also use the MsiNetAssemblySupport property manually in a launch condition.
Detection that you've got 1.0 SP2 needs a launch condition of
MsiNetAssemblySupport > "1.0.3705.209".

To remove files you didn't install you'd need to use Orca, an MSI file
editor in the Platform SDK, to add the files to the RemoveFile table.

Launching an executable early in the install isn't supported in the IDE,
but you can add your own custom actions that launch an executable that runs
later in the install, and you could condition it on the property created by
that launch condition on the version of the framework, so you could launch
SP2 that way.

This will sound like gibberish if you're not used to setup projects and
Windows Installer, but it's the approach I'd use.
--
Phil Wilson [MVP Windows Installer]

"Wilson Ricardo Passos Oliveira" <wi****@atlantico.com.br> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
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 IDE isn't capable of create a setup and deploy project and, in a
elegant way, during the setup process, detect the absence of the Framework. In this case, I'd like to run the Dotnetredist.exe file, first, and the
SP2's NDP10_SP_Q321884_En.exe after that, silently... As I've noticed, the
only thing we have is Microsoft's Bootstrapper proposal, which can only run the Dotnetredist.exe and that's all... Am I right, or do we have any other
elegant alternative to install the Framework and, better, the SP2 after
that?

2. I have an application which looks every time it's started for an XML
config file to capture the database's server name, login, password, etc. So, when the application is installed, this file doesn't exist for the first
time, and the application will create it. But, when I uninstall the
application, all of the installed files are removed, but this config file
remains in the application's path. So, can we have some setup config
settings to remove everything, including those "new" files?

I'll really appreciate for any help.

Thanks,
Wilson.

Jul 19 '05 #2

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

Similar topics

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...
1
by: Terry H | last post by:
Hi I am deploying a winforms app via the windows installer and a VS.Net 2003 setup and deploymnet project. At the moment, I am adding launch conditions for the .Net Framework 1.1 and MDAC 2.7...
4
by: Amalia Hernandez | last post by:
I would like to know if there is free software to link assemblies together, deploy without whole Framework installation. so I could work my application in any computer without Framework. Thanks
3
by: Tim_Mac | last post by:
hi, see quote below from http://groups.google.ie/groups?hl=en&lr=&th=36c5d2df211a4d78&seekm=00480961-660F-462D-BBD4-455C8DA26C38%40microsoft.com&frame=off According to the book: "Deploying .NET...
3
by: Enforcer | last post by:
Hey, I have a setup file for my Frontend to an sql database and it all installs just fine, i was wondering if there was a way to setup the .net framework automatically in the setup of the...
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...
2
by: sudhaoncyberworld | last post by:
Hi all I am using VS2005, How can I deploy the .Net Framework from my setup project? In the bootstrapper setup program we have below 3 options 1.Download prerequisites from the...
5
by: Mircea Pleteriu | last post by:
Hi, I have developed a a web application with ASP.NET 2.0 and VS 2005. My client wants to be delivered a .msi file that installs the app. My big problem is that the .msi also deploys the source...
9
by: Dave | last post by:
If you have VS 2005 installed on your machine and you install the 3.0 Framework, if you want to build a 2.X based framework project, how dow you do this ? Dave
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.