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
- :
- Current Directry Path Issue (SETUPEXEDIR)
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 11, 2009
03:07 PM
Current Directry Path Issue (SETUPEXEDIR)
When I launch setup.exe, Session.Property("SETUPEXEDIR") gives the correct path of directory which contains setup.exe.However, when I launch MSI file, SETUPEXEDIR is empty?
SRCDIR returns empty string in both cases. I am using Basic MSI, InstallShield 2010.
Please help how I can get the current directory where setup file resides, while launching setup through MSI file?
Thanks,
Naveed
SRCDIR returns empty string in both cases. I am using Basic MSI, InstallShield 2010.
Please help how I can get the current directory where setup file resides, while launching setup through MSI file?
Thanks,
Naveed
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 11, 2009
06:11 PM
SETUPEXEDIR property is set on the command line to msiexec.exe by setup.exe when the install is run through the setup.exe. This is why this property is undefined when the install is run directly from the MSI file.
You may want to use the SourceDir property instead. This is a MSI property that is set by the ResolveSource action. So this means you can use the value of this property to determine the MSI location anytime after ResolveSource action. Note that by default InstallShield puts a condition on this action so that it is only run during a first-time install.
SourceDir Property
http://msdn.microsoft.com/en-us/library/aa371857(VS.85).aspx
You may want to use the SourceDir property instead. This is a MSI property that is set by the ResolveSource action. So this means you can use the value of this property to determine the MSI location anytime after ResolveSource action. Note that by default InstallShield puts a condition on this action so that it is only run during a first-time install.
SourceDir Property
http://msdn.microsoft.com/en-us/library/aa371857(VS.85).aspx