This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Trying to access a property in an install script
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 18, 2009
10:12 AM
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.
(2) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 18, 2009
10:55 AM
Use MSISetProperty in your installscript, which is what I normally do.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 01, 2009
04:06 PM
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;
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;