You are here

how to understand registry in PAL?

5 posts / 0 new
Last post
joshatt
Offline
Last seen: 3 years 9 months ago
Joined: 2010-11-20 18:23
how to understand registry in PAL?

Hi,
Newbie question:
for example:
[RegistryKeys]
test1=HKCU\Software\AppName

the [RegistryKeys] function of PAL, in my understanding, is like:
when portable software starts, double-click "test1.reg" to import to registry and backup what's originally there,
and when portable software quits, delete what's imported, then restore the backup.

If I understand right, why specific location "HKCU\Software\AppName" is needed? There could be hundreds of lines and dozens of locations in "test1.reg", not just one location.

Please help me out, thanks.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Single key per file

Partially due to technical limitations and partially because it's never been seen as necessary, it is a single key per .reg file. The .reg format itself permits any number of keys, but the standard export tool only deals with a single key per file. Naturally, then, you must specify what they key is to be, so that it can deal with it.

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

joshatt
Offline
Last seen: 3 years 9 months ago
Joined: 2010-11-20 18:23
Thanks for fast response. I

Thanks for fast response. I guess [RegistryValueWrite] function is for single key, so what's the purpose of [RegistryKeys]?
Anyway, how could I deal with hundred keys?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Keys and values

RegistryValueWrite is for setting a single value. RegistryKeys is for dealing with entire keys. You may have your terminology confused.

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

joshatt
Offline
Last seen: 3 years 9 months ago
Joined: 2010-11-20 18:23
I've created my first PA.

I've created my first PA. Thanks for help.

Log in or register to post comments