Jump to content

Recommended Posts

Posted

How would you add warning messages to open a program? I'm sometimes stubborn about using newer programs because the older ones are better, but eventually they do become obsolete :(. So I wanna force myself to really think about it before I use an older version of a program.


Posted (edited)

Try play with

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\programname.exe]

"Debugger"="program to run in place"

Running that program will run "program to run in place" instead (with original exe name as Param1 and rest as param2, param3, etc.

To avoid recursion, you need to do something like this:

1. User runs program.exe -> your program runs, shows warning,

2. Temporary remove "Debugger" value, so you can start original normaly.

3. Run Param1, passing rest of params.

4. Restore "Debugger", close your program.

Of course this only works for executable_name.ext - renaming it will easily avoid this trick.

Edited by spriditis

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...