Custom Search executable location path ... - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Custom Search executable location path ...

I have created a prerequisite with a search done by a custom executable. However, I noticed that this executable gets packaged to the root of the build path. Is it possible to specify a path in the build root to store and execute the custom executable?

For example, instead of D:\CUSTOM.EXE I would like it to be D:\PREREQS\APP1\CUSTOM.EXE.

Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Search executable location path ...

Hello,

What custom action type are you using to launch the executable ?

Are you using an "Installed Custom Action"?
http://www.advancedinstaller.com/user-g ... #section17

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Custom Search executable location path ...

Hi,

I have added it as a "Search done by a custom executable", as defined here:

http://www.advancedinstaller.com/user-g ... earch.html
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Search executable location path ...

Hello,

Unfortunately, there is no way to set this if you have the "Leave files outside" option enabled from the Media page, Bootstrapper tab. Another way would be to include the files in the bootstrapper by choosing the appropriate option from the same tab.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Custom Search executable location path ...

Thanks! I'll give that a shot.

Also, would it be possible in a future release to include a check for a folder/file not existing for a prerequisite? I know this usually uncommon to check for, but would be a great help. This would have prevented me from needing to perform a search through a custom executable.

Thanks again!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Custom Search executable location path ...

Hi,

We do have a search for file option in our current version too. Just set the "Criteria" combo to "File Version" and then set
the file you want to search for and its version.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Custom Search executable location path ...

I have seen that option, but I was actually looking for the exact opposite. Instead of validating a file's existence or version, I would like to validate the absence of a file/directory. Therefore if the file/directory exists, it would trigger a failure and invoke installation of an included prerequisite.

I'm using this for compliance reasons. For instance, I would like to check for enabled features in Windows 7 and if they exist invoke the dism tool for disabling those features. Since dism requires a reboot before any other updates can get applied, it is necessary to define it as a prerequisite.

Thanks!
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Custom Search executable location path ...

Another way of addressing this would be to allow the trigger action to be based on failure or success of the condition.

Currently, it only allows you to select between 2 options:

1) Failure of any check

2) Failure of all checks

It would be nice to also have the following options:

3) Success of any check

4) Success of all checks

This would also achieve my goal described.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom Search executable location path ...

Hi,
Instead of validating a file's existence or version, I would like to validate the absence of a file/directory. Therefore if the file/directory exists, it would trigger a failure and invoke installation of an included prerequisite.
We will consider adding this improvement in a future version. Thank you for your suggestion. Until then, you can try creating a custom EXE and using it to determine if the prerequisite should be installed or not. It can be used with Search done by a custom executable criteria.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thenefield
Posts: 68
Joined: Thu Dec 06, 2007 6:19 pm

Re: Custom Search executable location path ...

Thanks Cosmin! I appreciate the continued support.

Return to “Common Problems”