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: Setupexename
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Oct 07, 2010
02:35 PM
Setupexename
Hi
I have an InstallScript MSI Project file that I am editing with InstallShield 2011
I am trying to get the setup's filename. I found code that says to use SETUPEXEDIR and SETUPEXENAME
When I try that, the compiler writes an error that these are undefined identifiers.
The original code was written in earlier versions of InstallShield, if that makes a difference
Thank you
I have an InstallScript MSI Project file that I am editing with InstallShield 2011
I am trying to get the setup's filename. I found code that says to use SETUPEXEDIR and SETUPEXENAME
When I try that, the compiler writes an error that these are undefined identifiers.
The original code was written in earlier versions of InstallShield, if that makes a difference
Thank you
(4) Replies
‎Oct 11, 2010
06:37 PM
SETUPEXEDIR and SETUPEXENAME are MSI properties. You can obtain their values through the MsiGetProperty function.
‎Nov 22, 2010
03:48 PM
I've been using this with MsiGetProperty for awhile in Installscript MSI, but recently I needed to build a pure Installscript bootstrapper project (no MSI), and need to access what the actual exe filename is. After a quick search in forums and help file, I found one option that looked promising -- I tried DISK1SETUPEXENAME, but this proved to be hard-coded to "setup.exe", so that didn't work. Is there another handy way to get this information in installscript?
‎Nov 22, 2010
04:30 PM
Based on further research it looks like I can use the PACKAGE_LOCATION system variable and then manipulate the string to filter out the directory information to get just the filename. I'd still be interested to hear if there is a more efficient way to grab ONLY the filename. Thanks.
‎Nov 22, 2010
05:12 PM
Nevermind, thought it would be trickier, but it's just a 1 line solution:
ParsePath(svSetupExeFileName, PACKAGE_LOCATION, FILENAME);
ParsePath(svSetupExeFileName, PACKAGE_LOCATION, FILENAME);