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
- :
- Re: Predefined Variable - Incorrect Syntax CommonFilesFolder
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
‎Oct 06, 2014
10:49 AM
Predefined Variable - Incorrect Syntax CommonFilesFolder
Hi,
I've think I've tried every combination of syntax to get to a Pre-defined variable path and can't seem to find it, Im creating a basic MSI Project and have an install script within it, I'm attempting to use the CommonFilesFolder;
szDriversPath = [COMMONFILESFOLDER]"Test\\driver000";
So far I've tried loads of combinations and failed with a "[ is missing error", could someone help me get the right syntax for this please?
I've tried;
szDriversPath ="Test\\driver000";
szDriversPath = [CommonFilesFolder]"Test\\driver000";
szDriversPath = ^ "Test\\driver000";
szDriversPath = @ ^ "Test\\driver000";
Anyhelp would be greatly appreciated.
I've think I've tried every combination of syntax to get to a Pre-defined variable path and can't seem to find it, Im creating a basic MSI Project and have an install script within it, I'm attempting to use the CommonFilesFolder;
szDriversPath = [COMMONFILESFOLDER]"Test\\driver000";
So far I've tried loads of combinations and failed with a "[ is missing error", could someone help me get the right syntax for this please?
I've tried;
szDriversPath =
szDriversPath = [CommonFilesFolder]"Test\\driver000";
szDriversPath =
szDriversPath = @
Anyhelp would be greatly appreciated.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 07, 2014
01:47 PM
You can either use the Windows Installer Property by declaring szCommonFiles and calling MsiGetProperty(hInstall, "CommonFilesFolder", szCommonFiles, MAX_PATH), or use the InstallScript path variable COMMONFILES. Once you have that, you can concatenate it with your path using the caret operator: szCommonFiles ^ "Test\\driver000" or COMMONFILES ^ "Test\\driver000"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 09, 2014
09:38 AM
Try this:
szDriversPath = []"Test\\driver000";
szDriversPath = [