Jump to content

Adding warning messages to programs


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...