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 write Custom Rollback script?


1 reply to this topic

narenbv

narenbv
  • Full Members
  • 1 posts

Posted 29 October 2007 - 18:36

How i have to write custom rollback script, which has to run at the time of Rollback(installation fails).

Please provide me a detail for custom action, what should be the values we have to set for In-Script Execution Options, Execute Sequence, Condition, etc..

Edited by narenbv, 29 October 2007 - 19:16.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 29 October 2007 - 20:02

(Before this post we already had an e-mail conversation where I pointed narenbv at my article “Installation Phases and In-Script Execution Options for Custom Actions in Windows Installer” at http://www.installsi...00108/index.htm )


For a rollback custom action:

In-Script Execution:
msidbCustomActionTypeInScript + msidbCustomActionTypeRollback
Hexadecimal: 0x00000400 + 0x00000100
Decimal: 1280
Note: This is in the Windows Installer documentation at http://msdn2.microso...y/aa368069.aspx

InstallExecute sequence between InstallInitialize and InstallFinalize.
Note: this is mentioned in my article and also in Windows Installer documentation.

Condition: same as the custom action which you want to undo.
Note: this is mentioned in my article.