Jump to content

Two Registry Setting Wont Apply


Recommended Posts

Posted (edited)

I have 2 registry setting I want applied for all acounts. It is supposed to run at T12 of intallation.

I created an $OEM$ folder in the root of the xp CD and placed a cmdlines.txt file in there with a HKCU.reg file.

cmdlines.txt

"REGEDIT /S hkcu.reg"

and here is the HKCU.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\ashampoo\Ashampoo Burning Studio 6]
"RegKey"="XXXXXXXXXXXXXX"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="10.35.72.22:8080"
"ProxyOverride"="local>"

These reg entries are not present in the registry after installation, is it because the cmdlines needs to contain "REGEDT32.EXE /S hkcu.reg" instead?

Edited by kujina

Posted
It's not %OEM%, but $OEM$. Everything else looks like it should work.

Ray

Hi Ray I did name the folder correctly, I only made the spelling mistake in my original post.

BikinDutchman I will try REGEDIT /S .\hkcu.reg

Posted

You said that you create your own cmdlines.txt file. But I assume you're also using nLite for the rest of the compilation. nLite will create it's own cmdlines.txt file which (although I've not tested this) is probably overwriting yours and not adding to it. Try this:

After running nLite up to the bootable ISO page, stop before you hit Make ISO (don't close nLite, just leave it on that page). Go into the $OEM$ folder and edit the cmdlines.txt file to add your line

"REGEDIT /S hkcu.reg"

at the end of the file. Close the changed file and go back to nLite.

NOW, make your ISO.

I think it's okay to add the HKCU.reg file before you run nLite and it won't get overwritten. To be safe, I always make my own changes after nLite creates its files. Again, before making the ISO.

Ray

Posted

I created the $OEM$ folder after nlite modified the install, I have double checked the CD and the files are there.

In the cmdlines.txt I have tried; "REGEDIT /S hkcu.reg", "REGEDIT /S .\hkcu.reg" and "REGEDT32.EXE /S hkcu.reg".

I dont have anything else I can try now.

Here is my answer file winnt.sif


; Generated by nLite 1.4 beta


[Data]
AutomaticUpdates="Yes"
Autopartition=1
MsDosInitiated=0
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
UnattendSwitch="Yes"
OemPreinstall="Yes"
OemSkipEula="Yes"
Repartition=Yes
FileSystem=*
WaitForReboot="No"
NoWaitAfterTextMode=1
NoWaitAfterGUIMode=1
DriverSigningPolicy=Ignore
NonDriverSigningPolicy=Ignore

[SystemRestore]
MaximumDataStorePercentOfDisk=06

[GuiUnattended]
AdminPassword="pass"
EncryptedAdminPassword=NO
AutoLogon=Yes
AutoLogonCount=1
TimeZone=085
OEMSkipRegional=1
OemSkipWelcome=1

[Components]

[UserData]
ProductKey="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"
ComputerName=*
FullName="joe bloggs"
OrgName="home"

[RegionalSettings]
LanguageGroup=1
SystemLocale="0809"
UserLocale="0809"
UserLocale_DefaultUser="0809"
InputLocale="0809:00000809"
InputLocale_DefaultUser="0809:00000809"

[Networking]
InstallDefaultComponents="Yes"

[Identification]
JoinWorkgroup="workgroup"

Posted

I'm running out of ideas. Try putting the .reg file on the desktop and double-clicking it. Do the changes get made that way? It's not the final answer, but at least it will prove that there's nothing wrong with the file.

What does your cmdlines.txt look like?

Posted

I used the regedit construction before and it works but I do not remember how I specified the path for the reg file. You may have the enter the absolute path.

regedit /s hkcu.reg: means the hkcu.reg folder is in the default location (whatever that may be)

regedit /s .\hkcu.reg: means the hkcu.reg folder is in the same folder as CMDLINES.TXT

Something that I know worked for me, and a little more professional, was having a CMDLINES.TXT as follows:

[Commands]

"cmd /c rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\hkcu.inf"

The hkcu.inf is again in the same location as CMDLINES.TXT but should contain the registry settings in inf format.

You may control where your installation files end up on the hard drive by putting them in special $OEM$ folders such as $OEM$\$1 (C:\) or $OEM$\$$ (C:\Windows).

If you are not familiar with above look do some google.

Posted

My cmdlines.txt look like this;

"REGEDIT /S .\hkcu.reg"

All I want to do is enter the ashampoo burning software serial number;

[HKEY_CURRENT_USER\Software\ashampoo\Ashampoo Burning Studio 6]"RegKey"="XXXXXXXXXXXXXX"

And set up internet explorer proxy settings;

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]"ProxyEnable"=dword:00000001"ProxyServer"="10.35.72.22:8080""ProxyOverride"="local>"

Posted

My cmdlines.txt looks like this:

[Commands]
"rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\OEM.INF"
"cmd /c start /min cmd /c .\OEMLink.bat"
"rundll32 advpack.dll,LaunchINFSection nLite.inf,U"
"cmd /c start /min cmd /c .\USBS3KB.BAT"
"REGEDIT /S MyRegTweaks.reg"
"ieSpell.exe"

Notice that first line. Try adding that.

Posted

I have made an .inf file for the registry settings.

The settings for the ashampoo burning software worked but the internet explorer proxy settings did not work.

Here is my hkcu.inf

[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg=Add.Settings1,Add.Settings2,Add.Settings3,Add.Settings4,Add.Settings5,Add.Settings6,Add.Setti
gs7

[Add.Settings1]
HKCU,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyEnable,0x00010001,0x00000001

[Add.Settings2]
HKCU,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyServer,0x00000000,"10.35.72.22:8080"

[Add.Settings3]
HKCU,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyOverride,0x00000000,"10.35.72.45;classserver;eportal;<local>"

[Add.Settings4]
HKCU,Software\ashampoo\Ashampoo Burning Studio 6,RegKey,0x00000000,"BGR6754-745449-2E02A4"

[Add.Settings5]
HKCU,Software\ashampoo\Ashampoo Burning Studio 6\ash_inet,InfoChannel_ashnews_Enabled,0x00010001,0x00000000

[Add.Settings6]
HKCU,Software\ashampoo\Ashampoo Burning Studio 6\ash_inet,InfoChannel_-updates-_Enabled,0x00010001,0x00000000

[Add.Settings7]
HKCU,Software\ashampoo\Ashampoo Burning Studio 6\General,FirstStart,0x00010001,0x00000000

Posted

Good job,

You probably know you can put more HKCU statements (HKCU...) under one key ([Add....])

Your proxy settings are applied upfront and may be overwritten in finalization of IE installation by Active Setup

You might consider IE customization as shown here

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...