Conditions for different types of installation
Content
- Detecting the installation state
- Detecting the type of the maintenace installation
Detecting the installation state
Use Installed property to determine if product is installed per-machine or for the current user. Keep in mind that the product can be installed for a different user.
Conditions
Condition | Description |
---|---|
Installed | Product is already installed either per-machine or for the current user. Current install is the maintenance install. |
Not Installed | Product is not installed per-machine or for the current user. It is possible that the product is installed for a different user. Current install is a new install. |
ProductState=-1 | Product is not installed or advertised neither per-machine nor for any user on the target system. Current install is a new install. |
Installed And ProductState=2 | The product is installed for a different user. This is a new install either per machine or for the current user. |
Installed And ProductState=5 | The product is installed and the current installation is a maintenance installation. |