Hi, I'm new to NSIS and I'm trying to create a portable launcher. I wanna know how or what code do you use to watch the program running in the system processes, and when It stops, I wanna restore the RegistryBak.reg (a backup before the program [launcher] was executed).
Any Help
Thank You!
Take a look at the 7-Zip launcher code. It backs up a registry key and then puts it back afterwards. It's used as the base launcher for just about all apps that use the registry.
And welcome to PortableApps.com
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
I'm wondering that when I use
It doesn't work. But it works fine when I use
Anyways, Thank you very much, Chris, for your reply!
Make sure you've included Registry.nsh (!include Registry.nsh) at the top. Using the raw plugin functions will cause trouble with unloading unless you stick the /nounload bit on everywhere. It's better to use the script header.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
I'm not yet sure what it means coz I'm totally new to this...just started yesterday >.> But I added it anyways Thank you