Bat elevation

Got a problem you cannot solve? Try here.
Post Reply
ranquild
Posts: 4
Joined: Thu Nov 26, 2015 7:28 am

Bat elevation

Post by ranquild »

I need to run .bat file during installation with administrator privileges. I have "requireAdministrator" UAC Elevation option in Project options, however .bat files are run without administrator privileges. Is there any workaround?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Bat elevation

Post by FrancescoT »

Dear User,

for sure there is something wrong with the approach you used.
If the setup package gets elevated, all the child processes will be elevated as well.

If you have a chance to post a very MINIMAL project that replicates the issue, I'll have a look.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
ranquild
Posts: 4
Joined: Thu Nov 26, 2015 7:28 am

Re: Bat elevation

Post by ranquild »

I've found that problem was only when debugging - because InstallAware Studio itself was not elevated.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Bat elevation

Post by FrancescoT »

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply