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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Prerequisite Dialog

Hello,

I have a question regarding prerequisites and installer in general.


So i am building an installer that will need vs2015 redistributables. The issue is i only want the redistributable dialog or checkbox when this
specific prerequisite is not present in the user machine. (in this case i have a checkbox that shows when the redistributable is not present in the current user machine)

Basically i added a checkbox in VerifyReadyDlg that has "Install VS2015 Redistributables" now i want it to show when this prerequisite is not currently installed.

The other way i tryed it was using a dialog only for prerequisites but again this dialog should only appear if the redistributables are not present in the user pc.

I'm having a really hard time coming with a solution for this.

Is this possible?


Thank You.

Best Regards,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisite Dialog

Hi Diego,

To search if the Visual C++ Redistributable for Visual Studio 2015 is installed on the target machine, then you can create a search operation in the Search page.

You can use the result of the search operation in order to display the dialog that contains the list of the prerequisites. You can further show/hide the checkbox of each prerequisite e.g. show the checkbox if the prerequisite is installed, otherwise hide it. This can be done using the Edit Control Condition

To conditionally display a dialog you can use the Show only if... approach. For details, please take a look on the How to conditionally show the "UpgradeDlg" dialog? article.

The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.

Best regards,
Dan
Attachments
Sample UI.zip
(4.16 KiB) Downloaded 326 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Prerequisite Dialog

Hello Dan,

Thank You Very Much for the swift reply.

I'll test the project and your tips and give you feeback.


Thank You Again.


Best Regards,
Diego.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Prerequisite Dialog

You're always welcome Diego,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”