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
- :
- SETUPEXEDIR not returning the correct location of the Setup.exe
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
‎May 07, 2013
12:28 AM
SETUPEXEDIR not returning the correct location of the Setup.exe
Hi,
I am using "InstallShield 2012 Spring-Professional" and my Project Type is "Basic MSI Project" and the output is compressed single MSI file.
As a part of install I need to copy the file which is also located in the same folder as Setup.exe.
Since I am using "Basic MSI Project", I used SETUPEXEDIR with MsiGetProperty as mentioned http://www.installshield.com/news/newsletter/0206-articles/SetupExeDir.asp
But the problem is the value returned by SETUPEXEDIR is not the correct location of the Setup.exe, its showing some temporary location.
On reading few articles it seems that for "Basic MSI Project" I need to call SETUPEXEDIR at early stage of installation,
so I have done as mentioned by article http://helpnet.flexerasoftware.com/installshield17helplib/Arch-BasicMSICASched.htm
But still no luck, Could anybody please help and suggest how to find the correct location of the Setup.exe for Project Type is "Basic MSI Project"
Thanks in advance
Regards,
Ashish
I am using "InstallShield 2012 Spring-Professional" and my Project Type is "Basic MSI Project" and the output is compressed single MSI file.
As a part of install I need to copy the file which is also located in the same folder as Setup.exe.
Since I am using "Basic MSI Project", I used SETUPEXEDIR with MsiGetProperty as mentioned http://www.installshield.com/news/newsletter/0206-articles/SetupExeDir.asp
But the problem is the value returned by SETUPEXEDIR is not the correct location of the Setup.exe, its showing some temporary location.
On reading few articles it seems that for "Basic MSI Project" I need to call SETUPEXEDIR at early stage of installation,
so I have done as mentioned by article http://helpnet.flexerasoftware.com/installshield17helplib/Arch-BasicMSICASched.htm
But still no luck, Could anybody please help and suggest how to find the correct location of the Setup.exe for Project Type is "Basic MSI Project"
Thanks in advance
Regards,
Ashish
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2013
06:49 PM
Just to be clear, where is your custom action that calls MsiGetProperty to read SETUPEXEDIR? That is, where is the action scheduled? What type of custom action is it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 08, 2013
07:23 PM
Hi Robert,
Thanks for the reply,
I have created New Custom Action of type "New Install Script",
This Custom action I am currently calling in "Sequences" >> "Installation" >> "User Interface" >> "After ExecuteAction".
I am actually copying INI file from same folder where setup.exe exists to Target InstallDir using this customAction.
I am calling this custom action at a stage where I think that Target InstallDir has been created.
I am flexible to change the sequence, Please suggest what I am missing.
Thanks & Regards,
Ashish
Thanks for the reply,
I have created New Custom Action of type "New Install Script",
This Custom action I am currently calling in "Sequences" >> "Installation" >> "User Interface" >> "After ExecuteAction".
I am actually copying INI file from same folder where setup.exe exists to Target InstallDir using this customAction.
I am calling this custom action at a stage where I think that Target InstallDir has been created.
I am flexible to change the sequence, Please suggest what I am missing.
Thanks & Regards,
Ashish
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)