472,782 Members | 1,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 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 4082
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
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.