How to make choose the way of installation? - 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!

AlexFX
Posts: 1
Joined: Fri Dec 10, 2010 1:52 am

How to make choose the way of installation?

Hello!
I have a bit problem. I would like to create a "patch" to some abstract product, that already installed on the user computer. Patch looks like some folder with files inside. There is 2 way to understand where the requested folder is can be: regkey and .exe file. In most cases we can understand the final way by read some regkey. So this way will be posted in "PathDirectory" automaticly (by using registry search). But in other cases this way could be empty. So I can find the .exe file and by this file Installer can understand where is the destination folder. How I can create this "fork" condition and execute it automaticly?

And the second question is how to erase from the find ".exe" result name and file name extension in order to fill the "DestFolder" with only directory path data? (For example: After file search i have this: "C:\Games\Test\test.exe", but I need t leave only this: "C:\Games\Test\")

Thanks a lot! Sorry for my bad english :o
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to make choose the way of installation?

Hi,
How I can create this "fork" condition and execute it automaticly?
For this you will need to use a custom action. The custom action will use the condition "NOT Installed" so it run only during the installation of the product.
You can use only a C++ DLL, VBScript or JavaScript because only one of these has access to public properties.

The custom action will retrieve the values from the public properties, will then test if the search returned and empty path. If so, then it will use the second search, i.e. the EXE file.
And the second question is how to erase from the find ".exe" result name and file name extension in order to fill the "DestFolder" with only directory path data?
This needs to be done from your custom action too, there is no predefined support for this in Advanced Installer.

The custom action needs to be scheduled exactly after the standard action "RMCCPSearch", so it is executed after the searches are done, but not before the costing standard actions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”