Jump to content

Recommended Posts

Posted

I just finished my Unattended CD and tried it in Virtual Machine.

After installing everything (which seems to work fine), I run into two problems!

1 I get an error message saying:

"Windows Cannot create a temporary profile directory. This may be caused by insufficient security rights. If this problem persists, contact your network administrator."

Followed by:

" Windows cannot load the user's profile but has logged you on with the default profile for the system.

DETAIL - The device is not ready."

2 The start menu won't open, nor the "administrative tools" on the Control Panel.

Any suggestions will be GREATLY appreciated.

RunOnceEx.cmd

cmdow @ /HID
@Echo Off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

rem PP=%cdrom%\Apps\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%\000 /VE /D "Nero Burning ROM 6.3.1.2.0" /f
REG ADD %KEY%\000 /V 1 /D "%cdrom%\Apps\Nero\nero63120.exe /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SN" /f

REG ADD %KEY%\001 /VE /D "O&O Professional Defrag 6" /f
REG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\DfrgPro\OODefrag.msi /qn" /f

REG ADD %KEY%\002 /VE /D "TweakUI 2.10 Powertoy" /f
REG ADD %KEY%\002 /V 1 /D "%cdrom%\Apps\PToys\TweakUI.msi /qn" /f

REG ADD %KEY%\003 /VE /D "WinRAR 3.20" /f
REG ADD %KEY%\003 /V 1 /D "%cdrom%\Apps\Winrar\wrar330.exe /s" /f

REG ADD %KEY%\004 /VE /D "Speed Fan" /f
REG ADD %KEY%\004 /V 1 /D "%cdrom%\Apps\SpdFan\installspeedfan415.exe /S" /f

REG ADD %KEY%\005 /VE /D "Nvidia ForceWare Network Access Manager" /f
REG ADD %KEY%\005 /V 1 /D "%cdrom%\Apps\FWNtwrk\NVIDIA ForceWare Network Access Manager.msi /qn" /f

REG ADD %KEY%\006 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\006 /V 1 /D "%cdrom%\Apps\MSN\MsnMsgs.msi /qn" /f

REG ADD %KEY%\007 /VE /D "O&O Professional Defrag 6" /f
REG ADD %KEY%\007 /V 1 /D "%cdrom%\Apps\oodefrag.msi /qn" /f

REG ADD %KEY%\008 /VE /D "Ad-Aware Pro" /f
REG ADD %KEY%\008 /V 1 /D "%cdrom%\Apps\Aawsepro\aawsepro.exe /S" /f
REG ADD %KEY%\008 /V 2 /D "taskkill /IM Adaware.exe /F" /f
REG ADD %KEY%\008 /V 3 /D "taskkill /IM hh.exe /F" /f
REG ADD %KEY%\008 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /f

REG ADD %KEY%\009 /VE /D "Registry Tweaks" /f
REG ADD %KEY%\009 /V 1 /D "%cdrom%\Apps\REGEDIT /S %CDROM%\Apps\regtweaks.reg" /f

REG ADD %KEY%\010 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\010 /V 1 /D "%cdrom%\Apps\cleanup.cmd" /f

EXIT

useraccounts

net user Bebbetufs ********** /add
net localgroup Administrators Bebbetufs /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

autologon.reg

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Bebbetufs"
"DefaultPassword"="xxxxxxxxxxxxx
"AutoAdminLogon"="1"

cmdlines.txt

[COMMANDS]
"useraccounts.cmd"
"RunOnceEx.cmd"

Cleanup.cmd

cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"

RD /S /Q %systemdrive%\drivers\

EXIT

regtweaks.reg

Windows Registry Editor Version 5.00 

;Force Nero to show real writing speed
[HKEY_CURRENT_USER\Software\ahead\Nero - Burning Rom\Recorder]

;Termsrv TCPIP
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\Licensing Core]
"EnableConcurrentSessions"=dword:00000001
"ShowSingleRecorderSpeed"=dword:00000001

;Disable Automatic Restart in the event of a BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

;Speed up shutdown
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="3000"

;Disable the Desktop Cleanup Wizard
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
"NoRun"=dword:00000001

;Disables Error Reporting, but notifies when errors occur
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]
"DoReport"=dword:00000000

;Disable Windows Picture and Fax Viewer
[-HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview]

;Do not use Simple File Sharing
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"forceguest"=dword:00000000

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

;Disables Windows Tour bubble popup
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000

;Disable Messenger Service (to stop spam. Does not affect MSN or Windows Messenger)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]
"Start"=dword:00000004

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

;Disable SSDP Discovery Service (Universal Plug'n'Play)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SSDPSRV]
"Start"=dword:00000004

;Disable Universal Plug'n'Play Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\upnphost]
"Start"=dword:00000004

;Set L2 Cache to 512
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"SecondLevelDataCache"=dword:00000200

;Set Pagefile to D: Drive 768 -768
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"PagingFiles"=multi_sz:D:\pagefile.sys 768 768

;This will add "Services" to the right-click menu 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

;Remove Shared Documents from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]

;NoRecentDocsmenu removes the recent documents from the start menu.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoRecentDocsMenu"=dword:00000001

;Change MenuShowDelay (Start Menu load speed)
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="200"

;Automatically kill programs at shutdown
[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"

;Hung app timout setting
[HKEY_CURRENT_USER\Control Panel\Desktop]
"HungAppTimeout"="5000"

;Wait to kill App setting
[HKEY_CURRENT_USER\Control Panel\Desktop]
"WaitToKillAppTimeout"="4000"

;Prevents Internet Explorer windows from being reused
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"AllowWindowReuse"=dword:00000000

;Max your Internet Explorer's simultaneous downloads to 10 (default was 2)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPer1_0Server"=dword:0000000a
"MaxConnectionsPerServer"=dword:0000000a

;Removes Sign up with Passport Wizard when trying to sign in MSN Messenger
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Passport]
"RegistrationCompleted"=dword:00000001


Posted

Please don't show serial numbers.

You could consider in cmdlines.txt, to have account creation before installing programs?

In RunOnceEx.cmd, cannot see any code for finding what %cdrom% equals?

rem statement is for...?

Consider putting shutdown at end of cleanup.cmd, saves premature execution.

Asterisks in user account? maybe an issue, if you are inserting 2 names with a space. May need inverted commas if so.

Hope some of these help you.

:)

Posted

in your autologin.reg, you have "Bebbe", but in your useraccounts.cmd, you created an account called "Bebbetufs"

and a couple things about your runonceex.cmd

1) did you include IF EXIST statements and SET commands to set your %cdrom%?

2)

REG ADD %KEY%\010 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\010 /V 1 /D "%scdrom%\Apps\cleanup.cmd" /f

might want to delete the extra "s" in %scdrom%

by the way, your autologon.reg's still showing your password...might want to remove that from your post as well.. :)

Posted

The Password and Username errors happened because I wanted to change my username before posting. but obviously forgot to change it everywhere. It is correct in original.

Cd Rom If Exists are missing :blushing: They were removed by "RunOnceEx.cmd Creator" program. In fact, if using that prog I will have to add them manually after saving.

Sorry about the serials. Fixed.

Posted

I tried to run it again with the fixes suggested here.

Still no go.

When the instalation gets to "Applying your personal settings"

it freezes and requires a reboot.

After reboot the error mentioned in the first post appears.

After pressing "OK" it finishes the installation and starts running the RunOnceEx.cmd entries.

I then get this error report from the Nero installation:

Nero says:

Runtime Error!

Program.....system32\config\SYSTEM~1\LOCALS~1\Temp\RarSFX0\setup.exe

abnormal program termination

Could these problems be Virtual Machine related?

I have 512 MB of RAM and the pagefile fixed at 786 MB.

Could it be that VM is running out of recources?

Posted

Finally sorted it out :w00t:

The problems was caused by virtual machine not having a D: drive.

I changed this setting in winnt.sif:

[GuiUnattended]
ProfilesDir="D:\Documents and Settings\"

To:

[GuiUnattended]
ProfilesDir="C:\Documents and Settings\"

:thumbup

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