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: BasicMSI project and using Installscript to grab the SetupExe Directory
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
Mar 06, 2013
12:11 PM
BasicMSI project and using Installscript to grab the SetupExe Directory
Hello all,
I have just taken over the position of installation engineer within my company. I am rather new at this, but I have taken to it pretty well thus far.
Right now, I am having difficulty grabbing the SETUPEXEDIR or PACKAGE_LOCATION in order to truncate the path (to get the parent directory) and set the result as a property. Using all of the methods I have found here and elsewhere I seem to only be able to get a null value. Is there a different System Property that I should be using instead, or is it something with my code?
I have just taken over the position of installation engineer within my company. I am rather new at this, but I have taken to it pretty well thus far.
Right now, I am having difficulty grabbing the SETUPEXEDIR or PACKAGE_LOCATION in order to truncate the path (to get the parent directory) and set the result as a property. Using all of the methods I have found here and elsewhere I seem to only be able to get a null value. Is there a different System Property that I should be using instead, or is it something with my code?
function GetServerPath(hMSI)
STRING szPath, szReturnString;
NUMBER nvBuffer;
begin
nvBuffer = 256;
MsiGetProperty(hMSI, SourceDir, szPath, nvBuffer);
StrRemoveLastSlash (szPath);
ParsePath (szReturnString, szPath, PATH);
MsiSetProperty (hMSI, "SERVERSHORTCUTPATH", szReturnString);
end;
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 06, 2013
02:27 PM
Issue Resolved.
Turns out it was the SourceDir property needing double quotes (") around it.
I certainly have that noted for the future.
Turns out it was the SourceDir property needing double quotes (") around it.
I certainly have that noted for the future.