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?
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.
Install/Unistall Custom Actions
Started by
Holczer
, Dec 13 2001 20:43
1 reply to this topic
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
$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