cancel
Showing results for 
Search instead for 
Did you mean: 
ashishsa
Pilgrim

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
Labels (1)
0 Kudos
2 Replies
Highlighted
RobertDickau
Pilgrim

Re: SETUPEXEDIR not returning the correct location of the Setup.exe

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?
0 Kudos
ashishsa
Pilgrim

Re: SETUPEXEDIR not returning the correct location of the Setup.exe

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
0 Kudos