Hi Mihai,
Sorry for the delay in getting back to you. Thank you for your suggestions. We want to let the user decide if the installed application should be launched. So I referred to the last paragraph of the second section contained in the web page whose URL is
http://www.advancedinstaller.com/user-g ... ation.html. I have mentioned it below to be clear:
If you want to let the user decide whether or not the custom action should run (the file, folder or URL is launched), you can use a custom checkbox:
* create a checkbox control on "ExitDialog"
* in the Properties section set the "Property Name" field to CHECK
* in the "Text" field set the text of the checkbox (for example "Launch the application")
* modify the "DoAction" control event to use the property of the checkbox:
DoAction myapp.exe AI_INSTALL AND CHECK
This way, the custom action will only run if the checkbox is selected. If you want the checkbox to be selected by default, you can set any value in the "Default Value" field.
In order to introduce DoAction control event related settings, I carried out the following steps:
1. Selected the new check box control in the Dialogs > First Time Install > ExitDialog section.
2. Selected the Published Events tab and clicked on the "New" button
3. Selected "DoAction" as the name of the new control event
4. Tried to select an application launch script from the Argument drop down list box but found it to be empty
Could you please let me know why the Argument list is empty and how to resolve this issue?
My understanding is that I need not carry out the steps listed in the first two paragraphs of section 2. I have mentioned below the steps (i.e. ones which need not be carried out as per my understanding):
Steps in first paragraph:
* go to the Custom Actions page
* use the "Show Standard Action" button to show the "Before Finalization" -> "InstallFinalize" standard action
* under it create a "Launch file or open URL" custom action
* set the "Command Line" field to the path of the file or folder you want to open (you can also set an URL)
* set the "Expression" field in the "Execution Condition" section to (Not Installed)
Steps in second paragraph:
* make sure you are using at least an Enterprise or Architect project (you can change the project type using the Project -> Options menu)
* go to "Dialogs" page and select "ExitDialog"
* select the Finish Actions tab
* enable launch application feature for the file you want to launch
* make sure that the Checked by default option is set
* select the launch application text control and set the "Visible" flag to False in its Properties pane
* do the same for the checkbox control
Please correct me if I am wrong.
Thank you.
Regards,
Venkatesh
FOLLOW US
Get the latest news in Application Packaging