Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - Disable UAC prompt for a .exe

Reply
 
Old 07-23-2007   #1 (permalink)
ejmichaud@hotmail.com


 
 

Disable UAC prompt for a .exe

I have created an executable using Wise Script Editor. Wise Script
Editor is a useful tool for quickly creating installers but it is also
great for quickly creating simple utilities. In this case the
executable I have created is a utility (not an installation) and does
not require the executing user to have administrative privileges on
the computer for it to complete it's task. The utility works great
with Windows 2000 / XP however when run on a VISTA computer with UAC
enabled, the UAC prompt appears.

I tried a manifest file to tell Vista to not display the UAC prompt
for the .exe, however even the manifest didn't work with the .exe. It
appears that because Vista knows the .exe derived from Wise Script
Editor (a known installation creator), VISTA will always display the
UAC prompt.

I was thinking that maybe there would be some part of the file that
could be edited with a hex editor to trick VISTA so it wouldn't know
that the file was created by Wise Script Editor. Anyone have any ideas
on how I can get a .exe created by Wise Script Editor to not display
the UAC prompt when UAC is enabled?


My System SpecsSystem Spec
Old 07-23-2007   #2 (permalink)
noaim


 
 

Re: Disable UAC prompt for a .exe

I think the prompt shows for all exe files regardless of were there created?



<ejmichaud@hotmail.com> wrote in message
news:1185210898.625658.179450@o61g2000hsh.googlegroups.com...
>I have created an executable using Wise Script Editor. Wise Script
> Editor is a useful tool for quickly creating installers but it is also
> great for quickly creating simple utilities. In this case the
> executable I have created is a utility (not an installation) and does
> not require the executing user to have administrative privileges on
> the computer for it to complete it's task. The utility works great
> with Windows 2000 / XP however when run on a VISTA computer with UAC
> enabled, the UAC prompt appears.
>
> I tried a manifest file to tell Vista to not display the UAC prompt
> for the .exe, however even the manifest didn't work with the .exe. It
> appears that because Vista knows the .exe derived from Wise Script
> Editor (a known installation creator), VISTA will always display the
> UAC prompt.
>
> I was thinking that maybe there would be some part of the file that
> could be edited with a hex editor to trick VISTA so it wouldn't know
> that the file was created by Wise Script Editor. Anyone have any ideas
> on how I can get a .exe created by Wise Script Editor to not display
> the UAC prompt when UAC is enabled?
>


My System SpecsSystem Spec
Old 07-23-2007   #3 (permalink)
KDE


 
 

Re: Disable UAC prompt for a .exe

If it were that easy to disable the UAC prompt for your program, don't you
think everyone distributing viruses and trojans would do the same? Kinda
defeats the purpose.


<ejmichaud@hotmail.com> wrote in message
news:1185210898.625658.179450@o61g2000hsh.googlegroups.com...
>I have created an executable using Wise Script Editor. Wise Script
> Editor is a useful tool for quickly creating installers but it is also
> great for quickly creating simple utilities. In this case the
> executable I have created is a utility (not an installation) and does
> not require the executing user to have administrative privileges on
> the computer for it to complete it's task. The utility works great
> with Windows 2000 / XP however when run on a VISTA computer with UAC
> enabled, the UAC prompt appears.
>
> I tried a manifest file to tell Vista to not display the UAC prompt
> for the .exe, however even the manifest didn't work with the .exe. It
> appears that because Vista knows the .exe derived from Wise Script
> Editor (a known installation creator), VISTA will always display the
> UAC prompt.
>
> I was thinking that maybe there would be some part of the file that
> could be edited with a hex editor to trick VISTA so it wouldn't know
> that the file was created by Wise Script Editor. Anyone have any ideas
> on how I can get a .exe created by Wise Script Editor to not display
> the UAC prompt when UAC is enabled?
>



My System SpecsSystem Spec
Old 07-23-2007   #4 (permalink)
Andrew McLaren


 
 

Re: Disable UAC prompt for a .exe

It's probably not the answer you're looking for, but one solution would be
to upgrade to Wise Package Studio 7.0. This adds specific support for Vista
UAC, and lets you control the digital signatures in your package etc.

See Wise for details ... er, I mean, Altiris ... oh, I mean, Symantec ..
anyway, whoever owns it now :-) I guess the upgrade won't be especially
cheap, though.

Hope it helps a little bit, anyway....

--
Andrew McLaren
amclar (at) optusnet dot com dot au


My System SpecsSystem Spec
Old 07-24-2007   #5 (permalink)
Peter Foldes


 
 

Re: Disable UAC prompt for a .exe

Andrew

LOL. Very hard to keep track of ownership today. I do not even know who owns our house. I got to keep asking my better half all the time

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

"Andrew McLaren" <andrew@fakeaddress.com> wrote in message news:30402532-BC28-48AD-AAF2-E3177C3FF1C5@microsoft.com...
> It's probably not the answer you're looking for, but one solution would be
> to upgrade to Wise Package Studio 7.0. This adds specific support for Vista
> UAC, and lets you control the digital signatures in your package etc.
>
> See Wise for details ... er, I mean, Altiris ... oh, I mean, Symantec ...
> anyway, whoever owns it now :-) I guess the upgrade won't be especially
> cheap, though.
>
> Hope it helps a little bit, anyway....
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au
>
>

My System SpecsSystem Spec
Old 07-24-2007   #6 (permalink)
ejmichaud@hotmail.com


 
 

Re: Disable UAC prompt for a .exe

On Jul 23, 3:17 pm, "noaim" <newsgro...@myspacerep.net> wrote:
> I think the prompt shows for all exe files regardless of were there created?


Not every .exe requires Administrative rights, so prompting the user
for a higher execution level every time you started a .exe would
defeat the whole purpose of UAC. If you received the UAC prompt
requesting a higher execution level for every .exe you might as well
just turn it off because UAC would not serve to provide a higher level
of security.

My System SpecsSystem Spec
Old 07-24-2007   #7 (permalink)
ejmichaud@hotmail.com


 
 

Re: Disable UAC prompt for a .exe

On Jul 23, 5:33 pm, "KDE" <knott...@NOSPAM.hotmail.com> wrote:
> If it were that easy to disable the UAC prompt for your program, don't you
> think everyone distributing viruses and trojans would do the same? Kinda
> defeats the purpose.


I want to disable UAC so the .exe DOESN'T ask the user to run it with
higher privileges. The .exe doesn't require higher privileges, but
because VISTA detects the .exe being created using a known
installation creator, VISTA assumes this .exe needs higher privileges,
but it doesn't and I don't want VISTA to ask the user to run it with
higher privileges. My problem is that even after using a manifest
with (requestedExecutionLevel level="asInvoker"), the manifest doesn't
overide the fact that VISTA detects the .exe coming from Wise Script,
a known installation creator. I don't think a virus or trojan could
deliver much of a payload with an execution level of asInvoker.

My System SpecsSystem Spec
Old 07-24-2007   #8 (permalink)
ejmichaud@hotmail.com


 
 

Re: Disable UAC prompt for a .exe

On Jul 23, 9:58 pm, "Andrew McLaren" <and...@fakeaddress.com> wrote:
> It's probably not the answer you're looking for, but one solution would be
> to upgrade to Wise Package Studio 7.0. This adds specific support for Vista
> UAC, and lets you control the digital signatures in your package etc.
>
> See Wise for details ... er, I mean, Altiris ... oh, I mean, Symantec ..
> anyway, whoever owns it now :-) I guess the upgrade won't be especially
> cheap, though.
>
> Hope it helps a little bit, anyway....
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au


I am using Wise Package Studio 7.2.0.31 SP2. Windows Installer Editor
(MSI creator) does have a feature "Create a Vista Standard User
Installation", however I am attempting to create a .exe with Wise
Script not Windows Installer Editor. Wise Script doesn't seem to have
a comparable feature.

My System SpecsSystem Spec
Old 07-24-2007   #9 (permalink)
ejmichaud@hotmail.com


 
 

Re: Disable UAC prompt for a .exe

After a little more playing I was able to get this to work with a
manifest. The problem I was having, with little experience with
manifest files, I wasn't changing the name="xxxx". I created an .exe
using Wise Script Editor called Test1.exe. I then created a manifest
file: "Test1.exe.manifest" as follows:
---- Start of code for manifest ----
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
name="Test1" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
---- End of code for manifest ----

Now when running Test1.exe it no longer displays the UAC. Yippee!! Now
I will work on embedding the manifest into the .exe.

My System SpecsSystem Spec
Old 07-24-2007   #10 (permalink)
Andrew McLaren


 
 

Re: Disable UAC prompt for a .exe

Sorry I was off-target re version; but yes: I was thinking in terms of of
the Installer Editor. I haven't actually played with the Wise Script Editor
(but maybe I should - sounds like a cool tool).

And thanks for the manifest details, that's quite interesting.

> Now when running Test1.exe it no longer displays the UAC. Yippee!! Now
> I will work on embedding the manifest into the .exe.


In Visual Studio, you can embed a manifest into an EXE with the MT.EXE
Tools; like this:

mt.exe -manifest MyApp.exe.manifest -outputresource:MyApp.exe;1

This is oriented towards C/C++ apps but really, it's just manipulating an
EXE file after compiling and linking. It might work for EXEs in any language
(I haven't tried, though). There's more details in MSDN:
http://msdn2.microsoft.com/en-us/lib...42(VS.80).aspx

Hope it helps a bit, good luck!
--
Andrew McLaren
amclar (at) optusnet dot com dot au


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Command Prompt - Enable or Disable Tutorials
Disable UAC prompt for specific applications Vista General
How do I disable UNSIGNED DRIVER PROMPT in Vista Vista General
Disable UAC Prompt for Certain Applications General Discussion
Disable logon prompt? Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46