Exécuter un fichier Batch en tant qu'administrateur - Inno Setup

luludojava -  
joomliner Posted messages 93 Status Member -
Good evening, batchers!

I'm coming to you tonight (3rd time in 3 days), I'm starting to get tired of it ^^'

I have a simple question for once! Can we run a batch script with admin rights postInstall in Inno Setup (installer creation software)?

Thank you for the time you'll take to reply :)

1 answer

joomliner Posted messages 93 Status Member 36
 
Good evening

By specifying the flag runascurrentuser in the [Run] section, the process will obtain the administrative rights of the current user. So, if the installer is executed as an administrator, the process launched in the post-install will inherit those same rights.

Source (English):
https://jrsoftware.org/ishelp/index.php?topic=runsection

Good luck! :)
0