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

Testing Rollback CA's


2 replies to this topic

gowen

gowen
  • Members
  • 15 posts

Posted 04 July 2001 - 13:42

We have some custom InstallScript code which modifies the registry and related code to undo it.  I have set up a CA to call the undo code during rollback and I want to test it so I wrote the following function to generate an error.

function testRollback(hMSI)
begin
 MessageBox("Ready to Rollback", SEVERE);
 return ERROR_INSTALL_FAILURE;
end;

This CA is called near the end of the execute sequence and the rollback function has been placed before the function it undo's.

After dismissing the messagebox the rollback seems to happen as all the files are removed, but my rollback function is not called.

The rollback CA has type 66816 inside ISWI203 and 1281 in the msi file which seems correct.

Any Ideas on why it's not working?


gowen

gowen
  • Members
  • 15 posts

Posted 04 July 2001 - 14:29

Discovered the answer whilst helping someone else run an executable in the exec sequence.

Answer = Set the CA for Deferred Execution.