![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #6 (permalink) |
| | 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 Specs![]() |
| | #7 (permalink) |
| | 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 Specs![]() |
| | #8 (permalink) |
| | 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 Specs![]() |
| | #9 (permalink) |
| | 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 Specs![]() |
| | #10 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||