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

Detect cancel button has been hit


1 reply to this topic

austin2359

austin2359
  • Full Members
  • 2 posts

Posted 10 November 2010 - 23:02

When the user hits "cancel" and the install backtracks, is there a way to detect this programatically?

Does it alter a temporary file, alter the registry, or launch/kill a hidden process for example?

Edited by austin2359, 10 November 2010 - 23:02.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 November 2010 - 11:05

If setup is cancelled between InstallIntialize and InstallFinalize, the Rollback custom actions will be executed. Maybe you could use those to do whatever you need.
And the msiexec.exe exit code would be 1602 if the user cancelled the install (there are other codes to indicate failure etc. - see topic "Error Codes" in the documentation).