COKEDUDEUSF Posted March 13, 2010 Share Posted March 13, 2010 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 More sharing options...
spriditis Posted March 13, 2010 Share Posted March 13, 2010 (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 March 13, 2010 by spriditis Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now