Changing the Install Directory Based on Process file locatio - 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!

glavian
Posts: 2
Joined: Thu Sep 22, 2011 9:33 pm

Changing the Install Directory Based on Process file locatio

Is there a way I can look up the location of a Process.exe file that is currently running and set my installation directory to that?

If this is not possible is there a way I can have the user choose the installation directory but I have a launch condition to verify that a specific process.exe exists in this folder.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Changing the Install Directory Based on Process file loc

Hi,
Is there a way I can look up the location of a Process.exe file that is currently running and set my installation directory to that?
Here's what you can try:
- use this article to detect if the process is running or not
- add a search from the Search page for that process file
- add a "Property Set with Formatted" custom action after AppSearch standard action:
Property Name: APPDIR
Formatted Text: [YOUR_PROCESS_FILE_SEARCH_NAME]
- set the custom action with the following execution condition:

Code: Select all

AI_PROCESS_STATE = "Running"
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”