You are here

NSIS Backup & Restore Registry Question

5 posts / 0 new
Last post
alydhiends
Offline
Last seen: 3 years 3 months ago
Joined: 2006-11-27 13:56
NSIS Backup & Restore Registry Question

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!

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
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 Smile

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

alydhiends
Offline
Last seen: 3 years 3 months ago
Joined: 2006-11-27 13:56
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! Smile

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
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

alydhiends
Offline
Last seen: 3 years 3 months ago
Joined: 2006-11-27 13:56
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 Smile Thank you

Log in or register to post comments