Page 1 of 1

Setting Attribute for EXE-Files

Posted: Mon Jan 14, 2013 5:49 am
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

Re: Setting Attribute for EXE-Files

Posted: Mon Jan 14, 2013 8:41 am
by FrancescoT

Re: Setting Attribute for EXE-Files

Posted: Mon Jan 14, 2013 9:14 am
by Rulan
mmmhhhhh...
You write:
"please have a look at the following topic;
viewtopic.php?f=2&t=8825&start=0&hilit=run+as+Administrator"

"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

Re: Setting Attribute for EXE-Files

Posted: Mon Jan 14, 2013 10:22 am
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

Re: Setting Attribute for EXE-Files

Posted: Wed Jan 16, 2013 9:09 am
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 24416 times


Regards :wink:

Re: Setting Attribute for EXE-Files

Posted: Wed Jan 16, 2013 11:32 am
by FrancescoT
Yes, I suppose that works.

Thank you for sharing it.

Regards