ssaitala
Posts: 15
Joined: Fri Jan 18, 2013 9:07 am

How to specify the startup page in Advanced Installer

Hi,

I am using the Advanced Installer 9.9. I require clarification on the below scenario:

I have developed/built an installer using the Advanced Installer9.9. Now, For the first time once I have installed my software with the newly created installer (with Advanced Installer), I have an option (a checkbox) and it says that upon checking it, it will start the my installed application service automatically. Now my new requirement is that I want a startup page saying "your product is sucessfully installed", once I check the box (startup my service automatically). I will keep a link in that page and it will take me to my login page.

Please suggest me on this...!

Thanks,
ssaitala
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to specify the startup page in Advanced Installer

Hi,

If you want to open a link based on a checkbox state you can follow the steps below:
- go in the Custom Actions page and create an "Execute inline script code" custom action without sequence
- in the "Script Text" text field from the right pane add a code like in the example:

Code: Select all

CreateObject("Wscript.Shell").Run("www.mysite.com")
- go in the Dialogs page and select the "Finish" button from the "ExitDialog" dialog
- in the "Published Events" tab create a new published event
- in the "New Control Event" dialog choose "Execute custom action" control event
- select your "Execute inline script code" custom action from the "Argument" combo box
- in the "Condition" text field use the property of your checkbox (i.e. CHECKBOX_PROP)

Let us know if this helped, otherwise give us more details about your scenario (maybe exemplify).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ssaitala
Posts: 15
Joined: Fri Jan 18, 2013 9:07 am

Re: How to specify the startup page in Advanced Installer

Hi,

The below sounds find for me and also tried in another way, like Open Advanced Installer 9.9 --> open Dialogs --> select Exit Dialog --> In Launch Application at the end of Installation --> added the application as a file. It will be something [#appvalue]. It worked.

I have another issue which i want to describe here. As decsribed above, once a new application page opens, I also want a windows service to be started at the backend. How can i start a service at the backend paralleli..?

Any ideas on this...?? Please suggest.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to specify the startup page in Advanced Installer

Hi,

In order to achieve this you can follow the steps below:
- go in the Install Parameters page and check the "Run as administrator" option
- go in the Custom Actions page and create a "Launch file or open URL" custom action without sequence
- in the "Command" edit box write the command that start your service (i.e. sc start MyService)
- go in the Dialogs page and select the "Finish" button from the "ExitDialog" dialog
- in the "Published Events" tab create a new published event that executes your "Launch file or open URL" custom action
- set the following condition for your custom action: (RUNAPPLICATION=1) AND (AI_INSTALL OR AI_PATCH)
- build and run the project

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”