fangjiaguo
Posts: 18
Joined: Sun Nov 09, 2008 4:12 pm

Can you supply a sample for such requirement?

Hi,
I want setup file executed like this:
When user clicks "Install", setup checks whether Excel is running or not. If not running, execute like common situation. Else if running, pop out a dialog with a label "Please close Excel!". The pop out dialog may also contains a Retry button and a Cancel button.
If user clicks Retry button, setup will try again to install. If user clicks Cancel button, turn to the "FatalError" dialog.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can you supply a sample for such requirement?

Hi,

For what you need you can try this approach:
- use a custom action to detect if Excel is running
- add this custom action as a DoAction control event for the "Install" button
- use the property set by the custom action ("PROCESS") to make sure that the user cannot continue
- the user will be able to cancel the installation at any time by using the "Cancel" button on "VerifyReadyDlg"

If you have questions about this approach, don't hesitate to ask.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fangjiaguo
Posts: 18
Joined: Sun Nov 09, 2008 4:12 pm

Re: Can you supply a sample for such requirement?

cosmin wrote:Hi,

For what you need you can try this approach:
- use a custom action to detect if Excel is running
- add this custom action as a DoAction control event for the "Install" button
- use the property set by the custom action ("PROCESS") to make sure that the user cannot continue
- the user will be able to cancel the installation at any time by using the "Cancel" button on "VerifyReadyDlg"

If you have questions about this approach, don't hesitate to ask.

Regards,
Cosmin
I appreciate that so much. I will try and let you know if I have any problem.

Return to “Common Problems”