drivard
Posts: 50
Joined: Wed Dec 05, 2007 10:14 pm

AI_SETUPEXEPATH uses previous name

Hi,
I have an issue that sounds strange.
I am using AI 8.0.2 Enterprise.

As part of my installer, I read the name of the exe from AI_SETUPEXEPATH, in order to start our product with some parameters.
Now, this all works well the first time I install.
If however, I run the same installer, but different parameters as part of the filename, AI_SETUPEXEPATH uses the OLD name.
I even uninstalled the original to ensure there was nothing funny going on.

I'm using a bootstrapper, and when I turn logging on, I get two logs... I assume I get one for the bootstrapper and one for the MSI...
ANyway, the first log has the correct AI_SETUPEXEPATH, while the second one has the wrong AI_SETUPEXEPATH. LaunchClient is the custom action that uses that value, and since it's incorrect, the wrong actions take place in our product.

I'm attaching the logs for you.
I think this is a bug in the product, given that my installer doesn't control the value of AI_SETUPEXEPATH.

Any help you can give would be appreciated.
Attachments
msilog_second.zip
Second log - has previous installer AI_SETUPEXEPATH
(35.78 KiB) Downloaded 354 times
bootstrapperlog.zip
First log - has correct AI_SETUPEXEPATH
(17.29 KiB) Downloaded 381 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AI_SETUPEXEPATH uses previous name

Hello,

Indeed, this was an Advanced Installer issue which has been fixed in the 9.2 version of Advanced Installer. Also, in order to achieve what you want using a lower version of Advanced Installer than 9.2 you can use the following workaround:
- Go to "Custom Actions" page and add a "Set Installer property" (Property set with Formatted in AI 8.0.2) custom action with sequence, scheduled before "Wizard Dialogs Stage -> Searches -> AppSearch" standard action ("InstallUISequence -> AppSearch" in AI 8.0.2), like this:
  • Property: MY_PROP
    Formatted: [AI_SETUPEXEPATH]
- Select the above custom action and, while pressing the Shift key, drag it before "Install Execution Stage -> Searches -> AppSearch" standard action ("InstallExecuteSequence -> Before Initialization -> AppSearch" in AI 8.0.2).
- Add a "Set Installer property" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches -> AppSearch" standard action, like this:
  • Property: AI_SETUPEXEPATH
    Formatted: [MY_PROP]
- Select the above custom action and, while pressing the Shift key, drag it after "Install Execution Stage -> Searches -> AppSearch" standard action.
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
drivard
Posts: 50
Joined: Wed Dec 05, 2007 10:14 pm

Re: AI_SETUPEXEPATH uses previous name

Daniel, thank you!
I will be testing this out over the next few hours, and I will report the results back to this board.

regards,
Dennis
drivard
Posts: 50
Joined: Wed Dec 05, 2007 10:14 pm

Re: AI_SETUPEXEPATH uses previous name

Daniel,
Our initial testing is going well.
Thank you for this workaround!!!

Dennis
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AI_SETUPEXEPATH uses previous name

You're welcome. Glad to help.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”