Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How To Invoke Custom Action Only When Installing


3 replies to this topic

sanjoygr

sanjoygr
  • Full Members
  • 76 posts

Posted 03 April 2006 - 10:30

Basic MSI IS 11.0

How to invoke an Custom action only at the time of Installation?

The custom action (ChangeMyInstallDIR) is schedule aftercostfinalize in InstallExecute sequence and called by DoAction from OK pushbuttom of InstallChangeDirectory dialog.

It is seen my custom action action is also geting invoked at the time of Uninstalling the software.

How to stop it by giving some condition?


Thanks
Sanjoy


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 03 April 2006 - 11:55

You can use:
Not Installed
to detect a first time installation, or
REMOVE~<>ALL
to execute the action always except during uninstall (e.g. install, modify, repair, minor update)

You may also want to make yourself familiar with the MSI documentation, the FAQ at www.msifaq.com , read some book(s) about Windows Installer, and/or attend a training course.

sanjoygr

sanjoygr
  • Full Members
  • 76 posts

Posted 03 April 2006 - 14:59

Thanks for your advice. I am checking with the web address for FAQ.

I would request you to recommend some name of good books for Basic MSI and
InstallScript projects.

I would surely update myself as per your advice.

Thanks
Sanjoy

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 03 April 2006 - 18:36

For a list of books see http://www.installsi...n/msi/books.htm
I would recommend Phil Wilson's book as starting point. You could also look at Mike Gunderloy's book. It's a bit outdated but a free download.