Install A Plugin at user defined location after path validation - Advanced Installer Community
cncengraver
Posts: 2
Joined: Wed Nov 16, 2016 8:49 am

Install A Plugin at user defined location after path validation

Hello,

We are using Advanced Installer Professional Edition (registered).

We now want to build an installer for a plugin DLL with additional files. Currently, we use Inno Setup with custom scripts to achieve the results. We want to see if similar is possible with Advanced Installer (AI). The overall process is as follows :

1. Installer file runs as administrator, checks for presence of DotNet 4.0 on users computer. If not available, downloads and installs it first. (Successful with AI)
2. Asks user to select path for installation. Here, we want to display custom text like 'Select Path where XYZ is already installed' above selection textbox. (Unsuccessful with AI)
3. When user selects a path and presses NEXT button, installer validates presence of a file at that location. If file is not present, it gives error message like 'Please select path where XYZ is already installed. Hint : the path should contain XYZ.exe'. (Unsuccessful with AI).
4. After successful validation, installs plugin file at a location relative to application path selected by user (I think we should be able to use [APPDIR] to specify relative path for plugin file)
5. Finalize and finish the installation.

Can someone please guide me how I can achieve point 2 and 3 mentioned above ?

We want to use Surface>>Black Surface Theme (this is the only reason why we are thinking of migrating installer building activity from Inno Setup to AI - since Inno Setup does not support custom / modern skins).

Thanks in advance.

Regards,
Abhay Deshpande
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install A Plugin at user defined location after path validation

Hello Abhay and welcome to out forums,

For point 2, you can use our "Browse for folder" support.

For point 3, you should develop and use your own custom action which will retrieve the folder path from the folder property set when browsing for folder and then will look up for the requested file at the related location. The custom action can save the search result into another property and then on [Next] button you can use a "Display a specific child dialog" published event to display the 'Please select path where XYZ is already installed. Hint : the path should contain XYZ.exe' message and keep the focus on browse for folder dialog.

Also, please keep in mind that the features required for point 2 and 3 are available only starting with the "Enterprise" edition of Advanced Installer.

If you have any further question don't hesitate to ask.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cncengraver
Posts: 2
Joined: Wed Nov 16, 2016 8:49 am

Re: Install A Plugin at user defined location after path validation

Hello Daniel,

Thank you for your reply. Surprisingly, I did not receive any notification after your post. I just checked and I am not sure if I had selected 'notify me' for previous post.

I will think about this when we are ready for 'Enterprise' edition. At the moment, it does not look VFM for current requirement.

Thank you for your reply once again and sorry for not replying sooner.

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

Re: Install A Plugin at user defined location after path validation

You're always welcome Abhay.

Just let us know anytime we can help you.

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

Return to “Common Problems”