Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cancelling or Rolling Back Installation with Custom Action

Status
Not open for further replies.

jubble

Programmer
Mar 6, 2002
207
GB
Is anyone aware of how to cancel an installation using a custom action?

The only way I can do it at the moment is to throw an exception in the custom action module which causes a pretty ungraceful roll back saying that there is a problem with the Windows Installer package.

We need to temporarily hard code an expiry date (don't ask...management decisions) so on top of a date check in the application I need a date check on installation. So I've set up a custom action that checks the date but can't rollback properly if the date is bad.

Any better ideas?...a Launch Condition would be ideal but after some trawling am under the impression this is not possible (taking into account different date formats also)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top