Panarchy
16th April 2009 10:50 UTC
How do I Auto-Scan for File, then auto-replace it with an NSIS Installer?
Hello
I wish to create an installer (using NSIS) which will search for all occurrences of notepad.exe, list everywhere it is found on a separate 'page' (have to click [next]/[I agree]), then replace all occurrences with notepad2 (renamed to notepad.exe with a notepad.ini config file).
How do I do this?
Would really appreciate any advice/suggestions.
Thanks in advance,
Panarchy
Anders
16th April 2009 11:51 UTC
you would use the Find* functions and a custom page(you would have to deal with windows file protection, the notepad2 page has a couple of links)...but I know that there is a special notepad2 build that supports the debug "hack" so all you need is a registry change, no need to replace any files
http://code.kliu.org/misc/notepad2/
Panarchy
16th April 2009 14:50 UTC
Thanks
Just tried that on Vista 64-bit, didn't work for me.
Please recommend another method, or tell me how I can implement the method which I suggested.
Thanks in advance,
Panarchy
code65536
21st April 2009 02:40 UTC
Just tried that on Vista 64-bit, didn't work for me.
Really? It worked for me on Windows 7 Beta (64-bit) and on Windows Vista (32-bit). Did you get the 64-bit installer? The 32-bit installer doesn't work if you have a 64-bit OS; you have to download the 64-bit version.