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
- :
- SUPPORTDIR returning wrong path
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
‎Nov 07, 2008
08:02 AM
SUPPORTDIR returning wrong path
I have files being put in place by the install in the Support Files (Language Independent) section and for some odd reason on some machines the SUPPORTDIR variable is returning a different directory than the files are being put in. Anyone have a clue why this is happenening or how to fix it?
Seems to be there are multiple profiles on the machine this is installing on and the files are being installed under one profile and the SUPPORTDIR is returning the value from another profile's directories.
Seems to be there are multiple profiles on the machine this is installing on and the files are being installed under one profile and the SUPPORTDIR is returning the value from another profile's directories.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2008
11:16 AM
If this is an InstallScript MSI project, and you mean the SUPPORTDIR script variable, this is a known change between InstallShield 11.5 and InstallShield 12. Use MsiGetProperty to read the SUPPORTDIR property instead. See the migration document in the InstallShield 12 community for more details.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2008
11:23 AM
try
MsiGetProperty( hMSI, "SUPPORTDIR", strSupportDir, numSize );
catch
SprintfBox( WARNING,"Error", "MsiGetProperty(SUPPORTDIR) failed with error %s", FormatMessage( Err.Number ) );
return -1;
endcatch;
That is what I am using to get the value currently. Yet it returns a value for the supportdir that is not the same as where the files are located.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2008
11:54 AM
I'm not quite sure how the multiple profiles figure in. Are you manually loading profiles? Does the SUPPORTDIR property change between various locations as you do this, or even just at all (see a verbose log)?