You are here

How to backup registry key to reg file

3 posts / 0 new
Last post
Reisll
Offline
Last seen: 8 years 3 weeks ago
Joined: 2016-02-27 04:04
How to backup registry key to reg file

Hi everyone,

I'm currently making a portable version of UltraISO using PortableApps.com Launcher.
The program is working fine now. However, It saves settings in the registry key:
HKCU\S-1-5-21-1749014816-2095996515-565535614-1000\Software\EasyBoot Systems\UltraISO\5.0
All values will be written to that key after the program exit. If I make change to the program, it will be saved in the registry. Thus, If I want to keep the settings (that I made), I need to backup the key and use it to replace the reg file in Data\settings.

I would like to ask whether I can backup a registry key to a file with PAL?!

Here is the content of my launcher.ini:

[Launch]
ProgramExecutable=UltraISO\App.exe
DirectoryMoveOK=yes
[LiveMode]
CopyApp=false
[Activate]
Registry=true
[RegistryKeys]
UltraISO=HKCU\S-1-5-21-1749014816-2095996515-565535614-1000\Software\EasyBoot Systems\UltraISO\5.0
[RegistryCleanupForce]
1=HKU\S-1-5-21-1749014816-2095996515-565535614-1000\Software\EasyBoot Systems

Thank!

John T. Haller
John T. Haller's picture
Online
Last seen: 50 min 43 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Remove

Remove S-1-5-21-1749014816-2095996515-565535614-1000\ as its for a specific user. They key should be:

UltraISO=HKCU\Software\EasyBoot Systems\UltraISO\5.0

Do not use RegistryCleanupForce. It's only for very specific things. The way you're using it now, you'd destroy the settings of a locally installed copy of UltraISO on every machine you use. Use this:

[RegistryCleanupIfEmpty]
1=HKCU\Software\EasyBoot Systems\UltraISO
2=HKCU\Software\EasyBoot Systems

Sometimes, the impossible can become possible, if you're awesome!

Reisll
Offline
Last seen: 8 years 3 weeks ago
Joined: 2016-02-27 04:04
Thank you for your reply,

Thank you for your reply,
I have changed the ini file according to your instruction and it works perfectly now :)!

Thank again.

Log in or register to post comments