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

Windows Installer - From .net project

P: n/a
RA
Hi

I have created a Windows installer project from the .net vs. When I add
custom actions for the Uninstall event how can I tell it in what sequence to
launch the custome action? Whats happening is that it removes the files and
then tries to execute the custome action. Also how can I get the return
value from the custome action? Am I better of to write the code to interface
with the windows installer instead of relaying on vs to do the work for me?
If yes then which namespace should I use?

Thanks
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
It depends what you are trying to do with your custom action...

All custom actions in setup projects are run "deferred", which basically
means at the end of that phase. So, the UnInstall custom actions are run
after the uninstall is pretty much done, i.e. the files are removed.

If you must do something at an earlier phase, then you would need to do
some advanced editing of the built .MSI file, or use a 3rd party installer
tool that gives you more control of the sequencing of custom actions.
---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "RA" <ro****@hotmail.com>
Subject: Windows Installer - From .net project
Date: Thu, 8 Jan 2004 13:35:06 -0600
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <#8**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: 161.225.1.12
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP12.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:210485
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi

I have created a Windows installer project from the .net vs. When I add
custom actions for the Uninstall event how can I tell it in what sequence tolaunch the custome action? Whats happening is that it removes the files and
then tries to execute the custome action. Also how can I get the return
value from the custome action? Am I better of to write the code to interfacewith the windows installer instead of relaying on vs to do the work for me?
If yes then which namespace should I use?

Thanks


Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.