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
- :
- Desperately need setup.exe filename - Basic MSI
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 04, 2007
12:20 PM
Desperately need setup.exe filename - Basic MSI
My installer:
- Basic MSI wrapped in a setup.exe that has been renamed.
The goal:
- During runtime, copy the *.exe to a cache location.
The problems:
- I have no idea what the *.exe filename is since the user could have changed it.
- DISK1SETUPEXENAME is NULL even though it is supposed to work. Arg!
What won't work:
- Hard coding the *.exe file name anywhere in the project.
- Having the user pass the filename in as a property.
Questions:
- Does there exist any InstallScript variables or Windows Installer properties that contain the setup.exe filename or path including filename?
- Is there any other way (preferably not with complied code) to get the name/path of the *.exe?
- Is there a way to cache the *.exe to another directory without doing a file copy that has to know the source filename?
- Basic MSI wrapped in a setup.exe that has been renamed.
The goal:
- During runtime, copy the *.exe to a cache location.
The problems:
- I have no idea what the *.exe filename is since the user could have changed it.
- DISK1SETUPEXENAME is NULL even though it is supposed to work. Arg!
What won't work:
- Hard coding the *.exe file name anywhere in the project.
- Having the user pass the filename in as a property.
Questions:
- Does there exist any InstallScript variables or Windows Installer properties that contain the setup.exe filename or path including filename?
- Is there any other way (preferably not with complied code) to get the name/path of the *.exe?
- Is there a way to cache the *.exe to another directory without doing a file copy that has to know the source filename?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 05, 2007
07:25 PM
Never found a real solution so here is my workaround.
Find all *.exe files in SETUPEXEDIR. For each file call a third party executable that prints the embedded version/property information. Write that information to a file. Search that file for the current product name. If the product name is found then copy that file to the cache directory. If product name is not found then go to the next file.
This method may break if there are two or more exe files in the SETUPEXEDIR that have the same product name as the current product.
Find all *.exe files in SETUPEXEDIR. For each file call a third party executable that prints the embedded version/property information. Write that information to a file. Search that file for the current product name. If the product name is found then copy that file to the cache directory. If product name is not found then go to the next file.
This method may break if there are two or more exe files in the SETUPEXEDIR that have the same product name as the current product.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)