PDA

View Full Version : Edit Registry not working for...



NewsArchive
04-29-2011, 01:37 AM
Okay Friedrich, I apologize for all the questions, I've been neck deep into
Setup Builder all day yesterday and probably so today......

I cannot get Edit Registry to work. I need to edit an existing registry
value or insert the keys and DWORD if they do not exist.

This is what I need to edit:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\SpecialAccounts\UserLis t\

DWORD = a user account name created during my install and it equals 0.

Here is what I did in Setup Builder in the EDIT REGISTRY section:

Edit Registry (Create/update key and value) "HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\SpecialAccounts\UserLis t" Permitme

Thanks,

Don

NewsArchive
04-29-2011, 01:38 AM
Hi Don,

> Okay Friedrich, I apologize for all the questions, I've been neck deep
> into Setup Builder all day yesterday and probably so today......
>
> I cannot get Edit Registry to work. I need to edit an existing registry
> value or insert the keys and DWORD if they do not exist.
>
> This is what I need to edit:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
> NT\CurrentVersion\Winlogon\SpecialAccounts\UserLis t\
>
> DWORD = a user account name created during my install and it equals 0.
>
> Here is what I did in Setup Builder in the EDIT REGISTRY section:
>
> Edit Registry (Create/update key and value)
> "HKLM\SOFTWARE\Microsoft\Windows
> NT\CurrentVersion\Winlogon\SpecialAccounts\UserLis t" Permitme

I have developed and attached a small example for you.

It sets the "Permitme" value to 1 (see screenshots). If the function
succeeds, the %_SB_ERRORCODE% return value is zero.

Does this help?

Friedrich

NewsArchive
04-29-2011, 01:39 AM
BTW, and if you are running a x64 operating system, make sure that you are
looking in the right registry branch ;-)

Friedrich

NewsArchive
04-29-2011, 01:39 AM
Sorry Friedrich. I did not know about the WOW6432 split in 64 bit system.
Setup Builder is working perfectly.

Don

NewsArchive
04-29-2011, 01:39 AM
> Sorry Friedrich. I did not know about the WOW6432 split in 64 bit system.
> Setup Builder is working perfectly.

Thank you!! :)

Friedrich

NewsArchive
04-29-2011, 01:39 AM
I used your scripting capabilities to detect a 64 bit OS. If 64 bit, edits
64 bit registry, if 32 bit, edits 32 bit registry.

WOW!!!! Setup Builder Rocks!

Don

NewsArchive
04-29-2011, 01:40 AM
> I used your scripting capabilities to detect a 64 bit OS. If 64 bit,
> edits 64 bit registry, if 32 bit, edits 32 bit registry.
>
> WOW!!!! Setup Builder Rocks!

This is music to my ears :) Thanks Don!

Friedrich