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

Windows Installer state?


3 replies to this topic

ConfigControl

ConfigControl
  • Full Members
  • 34 posts

Posted 12 January 2002 - 23:44

How to determine what state the Windows Installer is in?
I need to know if the installer is in the process of installing, rollingback, or uninstalling. I have a deferred custom action that I want executed only on installing and not on uninstalling or rollingback. Is there a property that can be used to determine this?

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 13 January 2002 - 16:47

MsiGetMode can be used with the MSIRUNMODE_ROLLBACK flag to determine if a rollback or install operation is in progress even in deferred actions.

Uninstallaion is just another type of install operation so you should condition your action on the state of the relevent components and features.

see Documentation

Windows Installer
--Installer Database
----Installer Database Reference
------Database Functions
--------MsiGetMode
and

Windows Installer
--Installer Database
----Using The Installer Database
------Conditional Statement Syntax



pdriley

pdriley
  • Members
  • 91 posts

Posted 14 January 2002 - 18:31

Isn't the condition Not Installed supposed to be "On first time through"

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 14 January 2002 - 22:37

Yes but it not that useful in this context. The CA may be potentially required in a maintenance or repair operation.