Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Custom executable

Closed Thread
 
Thread Tools Display Modes
Old 02-06-2007   #1 (permalink)
hannibal
Guest
 
Posts: n/a

Custom executable

Excuse me for the unintentionally stupid question.
I have read some articles on DRM and such, but i haven't undestood a very
simple fact.
If i compile a simple "Hello world" program in Vista i can execute it
without warnings? Or i have to sign" it or something similar? And if i
distribute it to my friends...?
 
Old 02-06-2007   #2 (permalink)
Jimmy Brush
Guest
 
Posts: n/a

Re: Custom executable

EXE's will run just fine on Vista without anything special.

However, there are a few restricitons.

1) Your exe will always run as a standard user, even if the user is an
administrator. If your exe needs admin privs, it will need to include a
manifest that will cause Windows to request permission from the user to
start.

2) Your exe cannot install "global window hooks" [or use functions that use
global window hooks, such as SendKeys] unless it is digitally signed, has
uiAccess set to true in its manifest, and is installed to Program Files.


--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/

 
Old 02-06-2007   #3 (permalink)
Lionel Fourquaux
Guest
 
Posts: n/a

Re: Custom executable

"Jimmy Brush" <JimmyBrush@discussions.microsoft.com> wrote in message
news:9656523B-5DA2-413F-8F76-0ACFD4FFED21@microsoft.com...
> 1) Your exe will always run as a standard user, even if the user is an
> administrator. If your exe needs admin privs, it will need to include a
> manifest that will cause Windows to request permission from the user to
> start.


Well, strictly speaking, you *can* run it as an administrator (elevated);
however, without manifest, you won't be *prompted* for elevation even if the
exe needs privileges. (Unless it has "setup" somewhere in its name, if I
remember correctly).

 
Old 02-07-2007   #4 (permalink)
Jimmy Brush
Guest
 
Posts: n/a

Re: Custom executable

You're right, I should have made that clearer .

Without manifesting the application, you can right-click it and click Run As
Administrator to run it with administrator privileges.

--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/

 
 
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
types.custom.ps1xml for custom members hasten PowerShell 0 02-25-2008 08:30 PM
Running an executable - how? Jay PowerShell 8 09-13-2007 08:59 PM
run executable Jean-Marc PowerShell 1 03-07-2007 10:26 PM
Executable Paka Vista General 2 03-02-2007 08:43 AM
Custom Dependency Property in custom class hierarchy not workingcorrectly?! MueMeister Avalon 0 03-02-2006 06:19 PM








Vistax64.com 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 2005-2008

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 47 48 49