Finish Action Arguments - Advanced Installer Community
1xd56sd
Posts: 1
Joined: Mon Jun 05, 2017 3:21 am

Finish Action Arguments

Hi,

I am trying to make a program run after installation, but it has to be run as an administrator. What would the finish action argument be?

Thanks.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Finish Action Arguments

Hello and welcome to our forums,

This can be done by using a Launch file custom action placed as a publish event on the Finish button from the Exit dialog. This is the complete method:
1. Go to "Custom Actions" page and create a new "Launch File" custom action. Right click in the "File to launch" field and select "File" and Choose your file. Select "Run as Administrator" option.
2. Go to "Dialogs" page and select "ExitDialog". Click on the Finish button and go to its Publish Events tab. Click "New" and select "Execute custom action". In the "Argument" field, please choose your launch file custom action. Use the "UP" button to place this new publish event at the top of the list.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”