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
- :
- property undefined identifier
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
Sep 02, 2009
09:47 PM
property undefined identifier
I have the following script in my Basic MSI project that is called by a custom action:
Where APPEXISTS is defined in the property table with an initial value set to "No"
When I compile I get the following error:
APPEXISTS: undefiend identifier
APPEXISTS: string value required
Please help! What am I missing?
#include "ifx.h"
export prototype SetFileExistsProperties(HWND);
function SetFileExistsProperties(hMSI)
NUMBER nResult;
STRING sApp;
begin
sApp="C:\\file.tmp";
nResult = Is(FILE_EXISTS, sApp);
if (nResult = 1) then
MsiSetProperty(ISMSI_HANDLE,APPEXISTS,"Yes")
endif;
end;
Where APPEXISTS is defined in the property table with an initial value set to "No"
When I compile I get the following error:
APPEXISTS: undefiend identifier
APPEXISTS: string value required
Please help! What am I missing?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 02, 2009
10:17 PM
The property name in MsiSetProperty (and other MSI API functions) should be in quotation marks:
MsiSetProperty(hInstall, "PropertyName", "PropertyValue");