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