Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

NSIS Backup & Restore Registry Question

alydhiends (Homepage) - February 23, 2009 - 3:27pm

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!


( categories: )

Look at 7-Zip

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 Smiling

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

Got It!

I'm wondering that when I use

${registry::MoveKey}

It doesn't work. But it works fine when I use

registry::_MoveKey

Anyways, Thank you very much, Chris, for your reply! Smiling

Registry.nsh

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

I'm not yet sure what it means coz I'm totally new to this...just started yesterday >.> But I added it anyways Smiling Thank you