cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MattQVI
Level 8

Trying to access a property in an install script

Perhaps I was searching on the wrong keywords... but I am trying to have my InstallShield script change a value in the property manager. Can anyone help or suggest an existing thread? Thanks.
Labels (1)
0 Kudos
(2) Replies
Not applicable

Use MSISetProperty in your installscript, which is what I normally do.
0 Kudos
MattQVI
Level 8

So I wrote a function that will set a property if the service exists. Then on a different custom action, I check for this property to be 1 (UCPServiceExists="1"). This should work right? Thanks.

export prototype DoesUCPServiceExist(HWND);

#define UCP_SERVICE "QVIUCP"

function DoesUCPServiceExist(hMSI)
begin

// Check to see if the service exists
if ( ServiceExistsService(UCP_SERVICE) ) then
MsiSetProperty(ISMSI_HANDLE, "UCPServiceExists", "1");
endif;

end;
0 Kudos