Click here to Skip to main content
13,048,406 members (147,532 online)

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
JokeRe: Why bother with any other exception data? The message should suffice. Pin
RyanDev18-Oct-13 5:15
memberRyanDev18-Oct-13 5:15 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Jacek Gajek19-Oct-13 5:12
memberJacek Gajek19-Oct-13 5:12 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
yiangos23-Oct-13 6:51
professionalyiangos23-Oct-13 6:51 
GeneralRe: Why bother with any other exception data? The message should suffice. Pin
Bill_Hallahan1-Nov-13 17:35
memberBill_Hallahan1-Nov-13 17:35 
GeneralWhy care about descriptive names? Pin
Jacek Gajek16-Oct-13 21:34
memberJacek Gajek16-Oct-13 21:34 
JokeRe: Why care about descriptive names? Pin
Kornfeld Eliyahu Peter16-Oct-13 21:47
memberKornfeld Eliyahu Peter16-Oct-13 21:47 
GeneralRe: Why care about descriptive names? Pin
Jacek Gajek16-Oct-13 22:03
memberJacek Gajek16-Oct-13 22:03 
GeneralRe: Why care about descriptive names? Pin
Argonia16-Oct-13 23:28
memberArgonia16-Oct-13 23:28 
GeneralRe: Why care about descriptive names? Pin
Nicholas Marty17-Oct-13 4:30
professionalNicholas Marty17-Oct-13 4:30 
GeneralRe: Why care about descriptive names? Pin
phil.o18-Oct-13 4:12
memberphil.o18-Oct-13 4:12 
GeneralRe: Why care about descriptive names? Pin
Jacek Gajek19-Oct-13 5:18
memberJacek Gajek19-Oct-13 5:18 
GeneralHad a Boss Pin
michaelbarb14-Nov-13 8:58
professionalmichaelbarb14-Nov-13 8:58 
GeneralExecutable that requires elevation Pin
Michael Haephrati15-Oct-13 11:21
mvpMichael Haephrati15-Oct-13 11:21 
GeneralRe: Executable that requires elevation Pin
Richard Deeming15-Oct-13 12:11
professionalRichard Deeming15-Oct-13 12:11 
I'm not sure if there's a complete list anywhere, but the heuristics are documented on MSDN:

Installer Detection only applies to:
  • 32 bit executables

  • Applications without a requestedExecutionLevel

  • Interactive processes running as a Standard User with LUA enabled

Before a 32 bit process is created, the following attributes are checked to determine whether it is an installer:
  • Filename includes keywords like "install," "setup," "update," etc.

  • Keywords in the following Versioning Resource fields: Vendor, Company Name, Product Name, File Description, Original Filename, Internal Name, and Export Name.

  • Keywords in the side-by-side manifest embedded in the executable.

  • Keywords in specific StringTable entries linked in the executable.

  • Key attributes in the RC data linked in the executable.

  • Targeted sequences of bytes within the executable.

Note The keywords and sequences of bytes were derived from common characteristics observed from various installer technologies.




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Executable that requires elevation Pin
Michael Haephrati15-Oct-13 12:40
mvpMichael Haephrati15-Oct-13 12:40 
GeneralRe: Executable that requires elevation Pin
Rage15-Oct-13 22:56
memberRage15-Oct-13 22:56 
GeneralRe: Executable that requires elevation Pin
Dave Kreskowiak16-Oct-13 1:30
mvpDave Kreskowiak16-Oct-13 1:30 
GeneralRe: Executable that requires elevation Pin
Richard Deeming16-Oct-13 1:45
professionalRichard Deeming16-Oct-13 1:45 
GeneralRe: Executable that requires elevation Pin
Dan Neely18-Oct-13 7:14
memberDan Neely18-Oct-13 7:14 
GeneralRe: Executable that requires elevation Pin
CIDev18-Oct-13 8:27
professionalCIDev18-Oct-13 8:27 
GeneralRe: Executable that requires elevation Pin
CIDev18-Oct-13 8:25
professionalCIDev18-Oct-13 8:25 
GeneralRe: Executable that requires elevation Pin
Rob Grainger23-Oct-13 0:55
memberRob Grainger23-Oct-13 0:55 
GeneralRe: Executable that requires elevation Pin
Bernhard Hiller15-Oct-13 20:19
professionalBernhard Hiller15-Oct-13 20:19 
GeneralWhats wrong with this code??? Pin
Ankush Bansal14-Oct-13 20:50
memberAnkush Bansal14-Oct-13 20:50 
GeneralRe: Whats wrong with this code??? Pin
vonb14-Oct-13 20:55
professionalvonb14-Oct-13 20:55 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 21:13
memberAnkush Bansal14-Oct-13 21:13 
GeneralRe: Whats wrong with this code??? Pin
Bernhard Hiller14-Oct-13 21:07
professionalBernhard Hiller14-Oct-13 21:07 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 21:15
memberAnkush Bansal14-Oct-13 21:15 
GeneralRe: Whats wrong with this code??? Pin
OriginalGriff14-Oct-13 22:22
protectorOriginalGriff14-Oct-13 22:22 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 23:01
memberAnkush Bansal14-Oct-13 23:01 
GeneralRe: Whats wrong with this code??? Pin
OriginalGriff14-Oct-13 23:47
protectorOriginalGriff14-Oct-13 23:47 
GeneralRe: Whats wrong with this code??? Pin
Sentenryu15-Oct-13 0:47
memberSentenryu15-Oct-13 0:47 
GeneralRe: Whats wrong with this code??? Pin
ENOTTY15-Oct-13 1:37
memberENOTTY15-Oct-13 1:37 
GeneralRe: Whats wrong with this code??? Pin
Sentenryu15-Oct-13 9:11
memberSentenryu15-Oct-13 9:11 
GeneralRe: Whats wrong with this code??? Pin
harold aptroot16-Oct-13 2:22
memberharold aptroot16-Oct-13 2:22 
GeneralRe: Whats wrong with this code??? Pin
Vasudevan Deepak Kumar16-Oct-13 23:02
memberVasudevan Deepak Kumar16-Oct-13 23:02 
GeneralRe: Whats wrong with this code??? Pin
Rob Grainger23-Oct-13 0:59
memberRob Grainger23-Oct-13 0:59 
GeneralEMail Fail Pin
Brisingr Aerowing10-Oct-13 10:40
professionalBrisingr Aerowing10-Oct-13 10:40 
GeneralRe: EMail Fail Pin
Rage11-Oct-13 0:15
memberRage11-Oct-13 0:15 
GeneralRe: EMail Fail Pin
Brisingr Aerowing11-Oct-13 0:24
professionalBrisingr Aerowing11-Oct-13 0:24 
GeneralRe: EMail Fail Pin
Silvabolt11-Oct-13 4:26
memberSilvabolt11-Oct-13 4:26 
GeneralI just want to be really really sure Pin
AnalogNerd8-Oct-13 7:40
memberAnalogNerd8-Oct-13 7:40 
GeneralRe: I just want to be really really sure Pin
Richard Deeming8-Oct-13 8:10
professionalRichard Deeming8-Oct-13 8:10 
GeneralRe: I just want to be really really sure Pin
AnalogNerd8-Oct-13 8:31
memberAnalogNerd8-Oct-13 8:31 
GeneralRe: I just want to be really really sure Pin
OriginalGriff8-Oct-13 9:07
protectorOriginalGriff8-Oct-13 9:07 
JokeRe: I just want to be really really sure Pin
richcb8-Oct-13 9:53
professionalrichcb8-Oct-13 9:53 
JokeRe: I just want to be really really sure Pin
_Maxxx_8-Oct-13 15:40
professional_Maxxx_8-Oct-13 15:40 
GeneralRe: I just want to be really really sure Pin
Argonia8-Oct-13 20:11
memberArgonia8-Oct-13 20:11 
GeneralRe: I just want to be really really sure Pin
_Maxxx_8-Oct-13 20:32
professional_Maxxx_8-Oct-13 20:32 
GeneralRe: I just want to be really really sure Pin
Robert Rohde14-Oct-13 11:01
memberRobert Rohde14-Oct-13 11:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 24 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid