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!

behdadsoft
Posts: 2
Joined: Wed Jun 30, 2010 8:41 am

Add Custom Action

Hi.

I want add custom action that after installing is Finished run myprog.exe ad administrator, But i don't know how to do it.
I Used below command in Finish Actions but don't work. :(

Code: Select all

[RunAsAdmin] [#Install.bat]
Please Guide Me.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add Custom Action

Hi,

In order to achieve this you can follow the steps below:
- go in the Custom Actions page and create a "Launch file as Administrator" custom action with the following settings:
  • Command: /RunAsAdmin "[#Install.bat]"
    Execution Options: uncheck all the options
- go in the Dialogs page and select the "Finish" button from the "ExitDialog" dialog
- add a new "Execute custom action" published event and choose your "Launch file as Administrator" custom action from the "Argument" combo box
- build and run the project

Let us know if this helped.

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

Return to “Building Installers”