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
- :
- How to get remove the file name from PACKAGE_LOCATION ?
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
‎Aug 28, 2019
09:57 AM
Using InstallShield script I am able to find the path where the current setup.exe is being executed from. However PACKAGE_LOCATION includes not only the path, but it includes the name of the setup.exe file. Is there a command which will just return the path without the file name? All I need is the path so how to remove the filename is what I need to find out.
Example:
strPathName = PACKAGE_LOCATION; // This works but it includes the name of the exe at the
end of the path.
Example: C:\InstallDirForMyProduct\Setup.exe
(1) Solution
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2019
11:01 AM
Hi @ralphster,
Try Parsepath function to get the directory path out of full file name path.
https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplibrary/LangrefString_functions.htm
Try Parsepath function to get the directory path out of full file name path.
https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplibrary/LangrefString_functions.htm
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2019
11:01 AM
Hi @ralphster,
Try Parsepath function to get the directory path out of full file name path.
https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplibrary/LangrefString_functions.htm
Try Parsepath function to get the directory path out of full file name path.
https://helpnet.flexerasoftware.com/installshield21helplib/Subsystems/installshield21langref/helplibrary/LangrefString_functions.htm
