Contents - Index


4.2.3.20 Is Product Installed

HRESULT WINAPI SLS_IsProductInstalled(LPCSTR pszProductID);

IsProductInstalled returns SLS_SUCCESS if Sheriff detects that the specified product has been installed on the PC.

See also IsProductLicensed. Note that both functions are designed to detect the history of the product and licence. A success return does not necessarily mean the current state of the product or licence on the PC. In other words, if the specified product was installed or licensed once on the PC and then terminated or deleted, SLS_IsProductInstalled / SLS_IsProductLicensed will still succeed.

These functions are typically used in applications to prevent users from re-installing a trial licence.