Windows Installer - From .net project

R

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
 
D

David Guyer [MS]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top