Bat elevation

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

Bat elevation

Postby ranquild » Thu Nov 26, 2015 7:33 am

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

Postby FrancescoT » Thu Nov 26, 2015 1:19 pm

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

Postby ranquild » Fri Nov 27, 2015 4:31 am

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

Postby FrancescoT » Mon Nov 30, 2015 12:57 pm

: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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 87 guests