Setting Attribute for EXE-Files

Post specialized setup scripts you have created here.
Post Reply
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Setting Attribute for EXE-Files

Post by Rulan »

Hi,
My ".Exe"-Source-Files have the "run as Administrator" Attribute in WIn7 enabled. After Installation on the win7 target computer the "run as administrator" is disabled...

Is there a possibility to enable the attributes "run as administrator" to the ".exe" files on the target system?
regards
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Setting Attribute for EXE-Files

Post by FrancescoT »

Dear User,

please have a look at the following topic;
http://www.installaware.com/forum/viewt ... inistrator

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
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Setting Attribute for EXE-Files

Post by Rulan »

mmmhhhhh...
You write:
"please have a look at the following topic;
http://www.installaware.com/forum/viewt ... inistrator"

"shortcut-Button"... isn't it?

I need the attribute of the original ".EXE"-file be enabled to "run as Admin".... Not a shortcut-Button!
After runing the install the flag is disabled, although the original source file is enabled :(

Is there a possibility to enable it at the end of the install? Or is there a workaround?

regards
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Setting Attribute for EXE-Files

Post by FrancescoT »

Dear Rulan,

with InstallAware you can define that property at shortcut level only.
After runing the install the flag is disabled, although the original source file is enabled
Probably I'm missing your exact question, but if you are refering at the file property that is enabled on your local machine and not enabled when the exe is installed with your setup package, this is the correct behaviour.
The "run as Administrator" Attribute is assigned at system level and it is not stored within the file.

Probably you can run a customized PowerShell script (... I'm not a PowerShell expert) to assign that file attribute during setup execution.

Hope this helps you.

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
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Setting Attribute for EXE-Files

Post by Rulan »

Hi,
I hope, I found a workaround... :wink:
That seems to work on xp 32bit, vista/Win7 32/64bit...
RUNASADMIN.png
RUNASADMIN.png (28.72 KiB) Viewed 131900 times
Regards :wink:
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Setting Attribute for EXE-Files

Post by FrancescoT »

Yes, I suppose that works.

Thank you for sharing it.

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
Post Reply