Hi All; In my installer i put a .bat in place and after everything else is done i want to run it. However this .bat needs to be run as administrator because it has to setup some inbound firewall rules.How can i do this in the installer or do i have to have the installer run as administrator?

Thanks Shawn

asked 17 Nov '11, 15:04

shawn's gravatar image

accept rate: 0%

If the installer is not running elevated, the only way to run the .bat as administrator may be create a shortcut requesting it to be launched as administrator and then execute it:

            <comment>Run .bat as admin</comment>
   <programArguments>/C start /W "" "${installdir.dos}/run.lnk"</programArguments>

Could you check if that solves your issue?


answered 18 Nov '11, 04:42

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17 Nov '11, 15:04

Seen: 3,742 times

Last updated: 18 Nov '11, 04:42