Asking the Drivers to install or Not - 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!

kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Asking the Drivers to install or Not

Hi,

I want to ask the user he want to install the drivers or Not.

Iam Using radio button (Yes or No). If user selects Yes and click on the Next Button the drivers should install before actual installation starts.

Drivers is a Installable exe file

Thanks
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Because two MSI installations cannot run at the same time you should launch the driver installation before or after the actual installation (the exe could contain a MSI).

You can launch it before the installation by using a prerequisite or after or during (not recommended) the installation by using a custom action.

Here is how you can configure the custom action which launches that .exe during the installation (you should do this in the "VerifyReadyDlg" dialog). These are the steps:
- create a "New Installed Custom Action" be under "InstallExecuteSequence" -> "Install"
- in the the "Expression" field (in the "Execution Condition" section) you should have the condition:

Code: Select all

NOT Installed AND RADIO=1 AND LAUNCH="OK"
- in the "Dialogs" page you create a Radio Button Group and two radio buttons in it
- in the "Properties" page you set for the first button the following:

Code: Select all

Text: Install driver
Value: 1
- for the second button you set this:

Code: Select all

Text: Do not install driver
Value: 2
- for the Radio Button Group you set the "Property Name" field to RADIO
- for the "Next" button, in the "Published Events" tab you add the following control events (you use the SetProperty standard control event):

Code: Select all

[LAUNCH]     OK              RADIO=1
[LAUNCH]     NOT OK          RADIO=2
In order to launch the exe at the end of the installation you modify in the "ExitDialog" dialog the "Launch [ProductName]" text (the "Text" field in the "Properties" page) to "Install drivers". For the "Finnish" button, in the "Finnish Actions" tab you check the "Launch application at the end of installation" option and select the exe.

Let me now if you encounter any problems.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Asking the Drivers to install or Not

Thanks for your early reply. Its working fine. In this driver installation i have one more problem.

After installing the driver i want to run service pack of that driver. How can i do it.

Thanks
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure I understand what you mean. Please give more details about this driver service pack.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Asking the Drivers to install or Not

The service pack also contains the setup.exe file. i want run that exe once the installtion of the driver is completed.


Thanks
Kiran
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can run that setup file after the installation is completed:
- you create a "New Installed Custom Action" under "UI Custom Actions" in the "Custom Actions" page which launches the setup file
- in the "ExitDialog" dialog you select the "Finnish" button and under the "Published Events" tab you add the following event:

Code: Select all

DoAction         setup.exe           AI_INSTALL AND LAUNCH="OK"
Please make sure that you move it above the EndDialog control event in order to be executed.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”