mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Cannot search for file in [SETUPEXEDIR].

Our product needs to search for another .MSI that will sit next to our setup.exe during execution and fail if it doesn't exist. I've set up a search for the file using the directory [SETUPEXEDIR] as our installer will not work without the setup.exe bootstrapper. However, it doesn't appear to be searching properly.

Is there another way to search for a file in that directory and fail if it doesn't exist?

AJ
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot search for file in [SETUPEXEDIR].

Hello AJ,

I'm not so sure why this happens.

I've tested the scenario using a sample created with AI 14.8 (see it attached) but everything works as expected.
sample.aip
(31.2 KiB) Downloaded 278 times
Can you please test the above attached sample and let us know how this works?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mcseforsale
Posts: 57
Joined: Wed Mar 27, 2013 10:53 pm

Re: Cannot search for file in [SETUPEXEDIR].

Thanks. I got it working. The problem was in testing. We're bound to 13.1 at this point, so I don't know if this has been remedied, or if it's as designed. When testing the search [SETUPEXEDIR] from the AI interface, it defaults to %programfiles%\Caphyon\<version>\x86\bin.

Thanks!

AJ
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Cannot search for file in [SETUPEXEDIR].

You are always welcome AJ.

Indeed, it is not recommended to use the "Test Search" feature within the Advanced Installer against the [SETUPEXEDIR] property. This is because this property is set at install time only.

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

Return to “Common Problems”