PDA

View Full Version : Adding registry entries



NewsArchive
12-31-2008, 03:01 AM
How does this configuration work?
I want to add a serial number to the registry for primary install with
"Training session" as the data.
I added a key (Add => New => Key) in the Registry Visualizer in
HKEY_LOCAL_MACHINE and type SN as the name. It shows up in the middle window
panel.
Next I want to put the text "Training session" into to data for this key so
I click Add => New => String Value. The GUI shows this now to be the Name,
not the contents! SN is under Data!
I compile and run the installer and the entry is NOWHERE to be found.

What am I doing wrong?

Sim Sherer

NewsArchive
12-31-2008, 03:03 AM
Sim,

> How does this configuration work?
> I want to add a serial number to the registry for primary install
> with "Training session" as the data.
> I added a key (Add => New => Key) in the Registry Visualizer in
> HKEY_LOCAL_MACHINE and type SN as the name. It shows up in the middle
> window panel.
> Next I want to put the text "Training session" into to data for this
> key so I click Add => New => String Value. The GUI shows this now to
> be the Name, not the contents! SN is under Data!
> I compile and run the installer and the entry is NOWHERE to be found.
>
> What am I doing wrong?

If it looks similar to the attached screenshot, then it's correct.

"SN" is the registry key, "Training session" is the registry value name and
"whatever" is the value data.

The Registry Visualizer looks and feels like Windows RegEdit. The "middle"
window displays the registry key, the right pane displays the value name and
value data.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-31-2008, 03:05 AM
Try the attached example.

Jane Fleming

NewsArchive
12-31-2008, 03:06 AM
Extracting to "C:\Documents and Settings\Tutty\Desktop\"

Use Path: no Overlay Files: no

Extracting RegEntry.exe

File was blocked, user selected to skip file and continue processing

Sim Sherer

NewsArchive
01-01-2009, 11:31 AM
"If it looks similar to the attached screenshot, then it's correct."

It did look similar but it still did not work. It compiled fine but I saw no
results in the registry ...
.... until I provided a path from HK_LOCAL_MACHINE

I added SOFTWARE as a key, underneath that I added the application name and
then SN below that.

I guess that is what you meant, but now it works fine.

Thanks again.

Sim

NewsArchive
01-01-2009, 11:32 AM
> I added SOFTWARE as a key, underneath that I added the application name and
> then SN below that.

Sim,

Just an FYI - if you look at the standards (and other Registry entries),
you'll notice that most products are set as:


HKLM\SOFTWARE\Company Name\Product Name

This is true for entries under HKCU as well.

After all, your version of "Program X" may not be the only "Program X" on
the computer.

:-)

Charles

--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
01-01-2009, 11:32 AM
That is exactly what got me thinking!

Sim

NewsArchive
01-01-2009, 11:33 AM
> "If it looks similar to the attached screenshot, then it's correct."
>
> It did look similar but it still did not work. It compiled fine but I saw
> no results in the registry ...
> .... until I provided a path from HK_LOCAL_MACHINE
>
> I added SOFTWARE as a key, underneath that I added the application name
> and then SN below that.
>
> I guess that is what you meant, but now it works fine.

It even works without the SOFTWARE key (it's perfectly valid to write to
HKLM outside of the SOFTWARE subkey). Of course, if you added no value name
to the key (you only had empty keys) then the installer can't write
anything. I think that was the case in your first try.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-01-2009, 11:33 AM
That was indeed the case.
Thanks.

Sim

NewsArchive
01-01-2009, 11:35 AM
Sorry, Sim... I was in a hurry and attached a zip of the installer, rather
than the SB6 file.
Please try the attached.

Jane

NewsArchive
01-05-2009, 03:01 AM
Thanks Jane,

Got it working eventually.

Sim