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

Install/Unistall Custom Actions


1 reply to this topic

Holczer

Holczer
  • Members
  • 1 posts

Posted 13 December 2001 - 20:43

Does anyone know how to have a custom action run conditionally based on whether the product is being installed or uninstalled (maintenance mode = remove)?  Or does anyone know how to access information about whether an install or uninstall is happened in a JavaScript or VBScript Custom action so as to be the condition of an IF...THEN statement?

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 13 December 2001 - 21:27

You can use
$Component  Name - Action State of a component
?Component  Name - Installed state of a component
&Feature Name- Action State of Feature
!Feature Name- Installed state of Feature

Conditions using these are valid in the sequence table after CostFinalize.

It is not  always sensible to use the REMOVE property because situations arise where one feature is being removed and another being installed.

See Msi Documentation
Window Installer
---Installer Database
------Using The Installer Database
---------Conditional Statement Syntax