Setting Attribute for EXE-Files

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

Setting Attribute for EXE-Files

Postby Rulan » Mon Jan 14, 2013 5:49 am

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: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Setting Attribute for EXE-Files

Postby FrancescoT » Mon Jan 14, 2013 8:41 am

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

Postby Rulan » Mon Jan 14, 2013 9:14 am

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

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

Re: Setting Attribute for EXE-Files

Postby FrancescoT » Mon Jan 14, 2013 10:22 am

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

Postby Rulan » Wed Jan 16, 2013 9:09 am

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 23103 times


Regards :wink:

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

Re: Setting Attribute for EXE-Files

Postby FrancescoT » Wed Jan 16, 2013 11:32 am

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


Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 30 guests