Jump to content

Starting cmdlines.txt not working properly


quirrell

Recommended Posts

here is my cmdlines.txt file:

[COMMANDS]

"Regedit /s regtweaks.reg"

oempreinstall=yes in my sif file

both the files are in my oem folder

but what is this that I have been told I need in my sif file:

%systemdrive%\OEM \start.cmd. What is this start.cmd??? what does it do and how do I configure it.

I am Totaly confused by this start.cmd reference Will sum1 pls educate me on the matter?

Link to comment
Share on other sites


The command I entered in my cmdlines text file:

[COMMANDS]

"Regedit /s regtweaks.reg"

is correct. The /s switch automatically accepts the prompt to click ok in the dialog box which pops up when you double click the file, and the regtweaks.reg reference is the name of the file I want to run.

It is the start.cmd element of this line:

%systemdrive%\OEM \start.cmd. that is baffling me.

I am under the impression it is something to do with running the cmdlines.txt file from a command prompt automatically, but how do I fashion it? Something like this maybe?

@echo off

title Integrating registry tweaks

echo

echo Integrating registry tweaks...

start cmdlines.txt /wait

echo

echo Done

exit

so I put this in a file and name it start.cmd?

Link to comment
Share on other sites

[COMMANDS]
"regedit /s tweaks.reg"

Copy Ur tweaks.reg in $OEM$ folde located at root of CD

Use this one and there is no need to set OemPreinstall=Yes in Ur WINNT.SIF

Link to comment
Share on other sites

The start.cmd file you create yourself. It's only if you don't want to put commands directly in the cmdlines.txt file. You can specify .cmd files to run from cmdlines.txt. You can put start.cmd wherever you want. Most people put it in $OEM$\install on their install CD. Note that anything in the $OEM$ folder of the install CD will be copied to your root drive. So, when referencing this file from your cmdlines.txt file, it would look like

[COMMANDS]
.\install\start.cmd

Since cmdlines.txt is parsed from the root directory, you can use a dot (.) in your path.

You start.cmd would look something like below:

Start "Title" /wait %systemdrive%\install\some_application\setup.exe /switch /anotherswitch

You don't need to put anything in winnt.sif. People put a reference to start.cmd in [GuiRunOnce] of winnt.sif only if they're using GuiRunOnce which fires after the first login to windows. Cmdlines.txt is scanned for automatically by Setup. There is no need to tell windows to look for it. Cmdlines.txt is parsed at the T-12 phase of setup.

Note, for your needs, you can probably just put the command directly in the cmdlines.txt file. You won't need start.cmd in that case. You WILL however need to have OEMPreinstall set to YES. This tells Setup to copy the contents of the $OEM$ folder from your cd drive to the root of the drive windows is being installed on (commonly referred to as %systemdrive% NOT TO BE CONFUSED WITH %systemroot% which is actually %systemdrive%\windows). Also, use REGEDT32.EXE instead of regedit:

[COMMANDS]
"REGEDT32.EXE /S regtweaks.reg"

From http://unattended.msfn.org/unattended.xp/view/web/30/

Start "Title" /wait %systemdrive%\install\some_application\setup.exe /switch /anotherswitch

The Start command above will launch some_application's installation program, setup.exe. The /wait switch tells the Start command to wait for setup.exe to finish installing before proceeding to the next line of code in the script. It's important to use /wait so the rest of the script doesn't get executed all at once, which would most likely cause conflicts in the number of setup applications being run at the same time. The "Title" parameter tells Start what to name the Command Console opened by Start (if any). Always provide the "Title" parameter, even though using the Start command to open Windows-based programs normally does not result in opening an additional Command Console. Omitting the "Title" parameter will often cause the Start command to inaccurately process switches for the program it is launching. The /wait switch will not work correctly for some programs launched by the Start command—for example when the program Start launched subsequently launches another program and then terminates itself. Start only waits for the program it launched to terminate before allowing the script to proceed, yet the subsequently launched programs could still be executing. In such cases use Sleep to pause the script to allow these subsequent programs to complete.

Also check out http://unattended.msfn.org/unattended.xp/view/web/14/

CMDLINES.TXT is located in the $OEM$ directory. During setup, CMDLINES.TXT is parsed (note the word parsed not executed) at T-12.

[COMMANDS]
"REGEDT32.EXE /S tweaks.reg"
"batch.cmd"

CMDLINES.TXT is a VERY limited commandline interface. This means that MOST traditional DOS commands are not available, however external commands (REGEDT32.EXE , REG.EXE, etc. ) are available.

Edited by betamax
Link to comment
Share on other sites

:thumbup problem solved, thanks for your help guys.

The prob was I was putting the files in the OEM drawer and not the $OEM$ drawer! :blushing: Ah well you live and learn :rolleyes:

A few notes from my steep learning curve:

1 oempreinstall=yes in my sif file

As Betamax stated I can use this line without the start.cmd file - nice and clean - too many files all over the place makes for a confusing and messy disk!

Thank you betamax have a housepoint - you`re a gent

2 According to This link: http://support.microsoft.com/kb/141377, regedit32.exe for windows XP and winserver 2k3 quote:

"In Windows XP and Windows Server 2003, Regedt32.exe is a small program that just runs Regedit.exe."

The Article also points out the differences between regedit.exe and regedit32.exe for different versions of windows -and there are a few!

Just run regedt32.exe on windows 2000 and WOW! - is this windows 3.1! (sysedit!) YAY

cheers guys :thumbup

Edited by quirrell
Link to comment
Share on other sites

:unsure: I was wrong! it hasn`t worked, but I get no errors!

The registry tweaks I setup from within nlite have worked

The registry tweaks I set up from the $OEM$ folder have not, but I get no Errors from this routine :realmad:

T-12 what is going on here???

are the regentries being reset somewhere along the way from t-12?

Here is My regtweaks file:

Windows Registry Editor Version 5.00

; RC137

;Disable Auto Reboot On Error
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000 - shouldn`t this be set to 1 ?!?

;Set driver signing policy to warn
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing]
"BehaviourOnFailVerify"=dword:00000001
"Policy"=hex:01

;Set Autoupdate to auto download but request to install
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000003

;Disable Remote Registry Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
"Start"=dword:00000004

;Recycle bin uses 15% of available space (not 10%)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\BitBucket]
"Percent"=dword:0000000f

;Speed up Network Browsing by removing Network Scheduled Tasks
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\
NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

;Speedup Internet by altering DNS Settings
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters]
"CacheHashTableBucketSize"=dword:00000001
"CacheHashTableSize"=dword:00000180
"MaxCacheEntryTtlLimit"=dword:0000fa00
"MaxSOACacheEntryTtlLimit"=dword:0000012d

;copy to and move to context menu
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]
@="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"

;Lock the homepage
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Control Panel]
"HomePage"=dword:00000001

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel]
"HomePage"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoSaveSettings"=dword:00000000

;Remove the shared documents folders
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoSharedDocuments"=dword:00000001

; Adds Control Panel to right click of MY Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Control Panel\command]
@="rundll32.exe shell32.dll,Control_RunDLL"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Add/Remove to right click of MY Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]
@="control appwiz.cpl"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Services to right click of MY Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services]
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
"SuppressionPolicy"=dword:4000003c

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, ;65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, ;32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Device Manager to right click of MY Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr]
@="Device Manager"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command]
@="mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\devmgmt.msc"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Registry Editor right click of MY Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\regedit]
@="Registry Editor"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\regedit\command]
@="Regedit.exe"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Logoff to right click of MY Computer ,I add the [] to group these

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Logoff]\command]
@="shutdown -l -f -t 5"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Reboot to right click of MY Computer , I add the [] to group these

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Reboot]\command]
@="shutdown -r -f -t 5"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Shutdown to right click of MY Computer,I add the [] to group these

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Shutdown]\command]
@="shutdown -s -f -t 5"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds MSCONFIG right click of MY Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\msconfig]
@="Microsoft Configurator"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\msconfig\command]
@="msconfig.exe"
;--------------------------------------------------------------------------------------------------------------------------------

; Adds Turn Monitor Off to right click of MY Computer
; download the file from [url="http://www.koding.co.uk/index.php?page=monoff"]http://www.koding.co.uk/index.php?page=monoff[/url] and place it into %systemroot%\system32\ to work

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\[Turn Monitor Off]\command]
@="hide.exe MonOff.exe"
;--------------------------------------------------------------------------------------------------------------------------------

; Makes a right click option for unknown files (Open with notepad)

[HKEY_CLASSES_ROOT\*\shell]
@="\"notepad.exe %1\""
[HKEY_CLASSES_ROOT\*\shell\open]
@="Open &With Notepad"
[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"

; Control Panel Classic View

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"ForceClassicControlPanel"=dword:00000001

; Improve Thumbnail Quality

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
"ThumbnailQuality"=dword:00000064

; Windows will tell you exactly what it is doing when it is shutting down or is booting
; This is the same as Extended Mode in nLite´s Customizations at the "Welcome Screen" part

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
"verbosestatus"=dword:00000001

; Dis-allow spying by web-sites

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\ProtocolDefaults]
"about"=dword:00000004

; Enable DVD on Media Player
; Values: Yes or No

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\Settings]
"EnableDVDUI"="Yes"

; Enable MP3 encoding with right button while surfing (needs Windows Media Player 9 or higher)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding]
"HighRate"=dword:0004e200

; Speed-up Access to AVI Media Files

[-HKEY_CLASSES_ROOT\CLSID\{87D62D94-71B3-4b9a-9489-5FE6850DC73E}]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.avi\shellex\PropertyHandler]

;Notepad saves page setup and window positions

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"fSavePageSettings"=dword:00000001
"fSaveWindowPositions"=dword:00000001


;--------------------------------------------------------------------------------------------------------------------------------
;Enable status bar in notepad

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"StatusBar"=dword:00000001


;--------------------------------------------------------------------------------------------------------------------------------
;Tahoma font as default

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"lfFaceName"="Tahoma"


;--------------------------------------------------------------------------------------------------------------------------------
;Enable word wrap

[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"fWrap"=dword:00000001

; Sort Start Menu and Favorites in Alphabetical Order

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Favorites]

; Disable Automatic Restart in the event of a BSOD

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

; Prefetcher tweak (faster booting) boot and program prefetch use 00000003 or Boot only 00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003

; Clear the Page File at System Shutdown for security (makes shutdown slower when activated)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000001

; Use background image to each type of folder
; Music folder will have that musical note on the corner, etc etc...

;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;"ListviewWatermark"=dword:00000001

;Increase Network Throughput

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters]
"MaxCmds"=dword:00000064
"MaxThreads"=dword:00000064
"MaxCollectionCount"=dword:00000064
;--------------------------------------------------------------------------------------------------------------------------------

;Increase RPC Packet Size

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc]
"MaxRpcSize"=dword:00100000

; Adds Device Manager to right click of My Computer

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr]
@="Device Manager"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command]
@="mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\devmgmt.msc"

; Adds Add/Remove to right click of My Computer

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Add/Remove Programs\command]
@="control appwiz.cpl"

; Add register / unregister to the context menu for .dll files

[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
;--------------------------------------------------------------------------------------------------------------------------------

;Add register / unregister to the context menu for .ocx files

[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""

;Event Viewer Context menu
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\eventvwr]
@="Event Viewer"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\eventvwr\command]
@="mmc.exe %%SYSTEMDRIVE%%\\WINDOWS\\SYSTEM32\\eventvwr.msc"

;Enable Quick Launch
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desk top]
"TaskbarWinXP"

;Fix for DSO Exploit that Spybot complains about
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones]
"1004"=dword:00000003

;set cookies to prompt
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\RNG]
"Seed"=hex(3):55,EB,2F,B8,0E,3C,B7,49,E5,E0,AD,5F,2A,0A,01,6E,82,CF,B1,B8,ED,36,\
48,D6,4B,37,A5,68,E5,9E,F5,AD,AD,A9,39,88,F4,5E,9E,D3,18,FF,C4,65,35,20,C4,5B,\
26,B2,60,6B,12,A9,54,88,5D,9B,ED,A8,59,23,31,B6,CB,6E,E6,E9,78,D9,95,05,30,7E,\
EB,61,17,13,D0,8D

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\Software\Microsoft\Window s\CurrentVersion\Internet Settings]
"PrivacyAdvanced"=dword:00000001

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\Software\Microsoft\Window s\CurrentVersion\Internet Settings\Connections]
"SavedLegacySettings"=hex(3):46,00,00,00,06,01,00,00,01,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,04,00,00,00,00,00,00,00,90,EC,96,68,E6,74,C7,01,01,00,00,\
00,AC,10,01,05,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\Software\Microsoft\Window s\CurrentVersion\Internet Settings\Zones\3]
"{AEBA21FA-782A-4A90-978D-B72164C80120}"=hex(3):1A,37,61,59,23,52,35,0C,7A,5F,20,\
17,2F,1E,1A,19,0E,2B,01,73,13,37,13,12,14,1A,15,3B
"{A8A88C49-5EB2-4990-A1A2-0876022C854F}"=hex(3):1A,37,61,59,23,52,35,0C,7A,5F,20,\
17,2F,1E,1A,19,0E,2B,01,73,13,37,13,12,14,1A,15,3B

;ControlPanelIconsView
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\RNG]
"Seed"=hex(3):61,D8,8D,41,9B,69,5F,D7,C0,B8,F7,0E,E1,78,29,09,2E,5C,BA,12,53,A7,\
8E,F6,BA,A2,76,5A,2E,C0,D2,7B,9D,2D,34,50,83,1C,D3,4A,28,18,EC,9E,C5,35,45,FB,\
6B,A2,0B,5D,DC,9D,21,3B,21,E6,F2,9E,AF,45,34,8D,DB,11,51,EC,7F,42,FD,FB,3F,32,\
85,52,B9,E9,CA,99

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\Software\Microsoft\Window s\CurrentVersion\Explorer\Discardable\PostSetup\Component Categories\{00021493-0000-0000-C000-000000000046}\Enum]
"Implementing"=hex(3):1C,00,00,00,01,00,00,00,D7,07,04,00,06,00,0E,00,0A,00,1B,\
00,0F,00,B5,01,07,00,00,00,14,96,56,21,95,B7,B1,46,85,F4,E7,37,A8,DC,09,AD,01,\
24,D0,30,81,6A,D0,11,82,74,00,C0,4F,D5,AE,38,F3,31,EE,C4,68,47,D2,11,BE,5C,00,\
A0,C9,A8,3D,A1,61,4E,A2,EF,78,B0,D0,11,89,E4,00,C0,4F,C9,E2,6E,62,4E,A2,EF,78,\
B0,D0,11,89,E4,00,C0,4F,C9,E2,6E,64,4E,A2,EF,78,B0,D0,11,89,E4,00,C0,4F,C9,E2,\
6E,31,9E,05,FF,5A,CC,2E,4E,BF,3B,96,E9,29,D6,55,03

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\Software\Microsoft\Window s\CurrentVersion\Explorer\Discardable\PostSetup\Component Categories\{00021494-0000-0000-C000-000000000046}\Enum]
"Implementing"=hex(3):1C,00,00,00,01,00,00,00,D7,07,04,00,06,00,0E,00,0A,00,1B,\
00,13,00,9C,00,02,00,00,00,25,8C,5C,4D,75,D0,D0,11,B4,16,00,C0,4F,B9,03,76,7F,\
DE,EA,BD,65,C2,D0,11,BC,ED,00,A0,C9,0A,B5,0F

If I try and do this manual I get a "cannot import registry files"... etc "error accessing the registry" response

time to dig ! Aha - the game is afoot! :D

EDIT by Shark007 - Please use CODEBOX tags when pasting large blocks of text.

Link to comment
Share on other sites

I Have a feeling that the reg file is too big. Maybe I should seperate it into it`s respective hives, then import - it what do you guys think?

I Will try it anyway and see what gives :thumbup YAY this is fun! :thumbup

Link to comment
Share on other sites

I have just put a virgin copy of xp on one of my test machines and the same problem ocurs.

btw, sfc came up clear on the previuos os check

If I d/c the individual files they import ok but if I d/c the large file (all tweaks in one file) it comes up with "error accessing the registry.

Since this file imports fine on the Compaq machine it cannot be to big although I only have sp2 on the test macine and no other updates at the moment.

I am at a loss at the mo, will have to do sum diggin again :wacko:

Link to comment
Share on other sites

It might be wroth beraking the .reg script up into multiple files. I'd suggest using the REG ADD command line utility in a .cmd script, but you have so many registry changes it would be painful to rewrite them all.

Link to comment
Share on other sites

I don't think you can put comments inline:

"AutoReboot"=dword:00000000 - shouldn`t this be set to 1 ?!?

Also you probably want to change this to HKEY_CURRENT_USER:

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\
Link to comment
Share on other sites

I won`t use inline comments again ok. :blushing:

[HKEY_USERS\S-1-5-21-1454471165-1343024091-725345543-500\

1) I am under the impression that I cannot use the HKU key quoted above as windows won`t recognise it - it is a unique key created when windows was installed and will not be present on the target installation.

2) I have to somehow get the settings for the regfile to install to the equivelent HKU ID key for the target installation

Am I correct?

anyone got any ideas on this?

Link to comment
Share on other sites

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...