0

Possible Duplicate:
How to run a program automatically as admin on Windows startup?

I'm working on an installer which will run a bat after install(putting the file name of the bat in run section), and put the bat location to the following reg to let the bat run when users log on. Root: HKLM; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\Run;

On Win7 the bat does not work as admin in both situation, is there any way make the bat run as admin?

Thank you!

Community
  • 1
  • 1
xiaoheixiaojie
  • 145
  • 1
  • 2
  • 8
  • Generally speaking, you cannot. This is a security feature of Windows Vista/7 and above. You cannot work around it via Inno Setup. There are other solutions, such as via a dedicated Windows service application. – Lex Li Nov 05 '12 at 09:40
  • @LexLi Should this be an answer instead? – Volker Stolz Nov 05 '12 at 12:54

0 Answers0