Jump to content

Recommended Posts

Posted

I created my first unattended windows cd, thank you very much for the information.

The problem is in the T-12 minute of the installation ( when it reads my cmdlines.txt) it gets stuck , i see a flash of a command screen , the command screen exits , and then my installtion does nothing anymore.

My cmdlines.txt

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

My useraccount.cmd

net user Elias (password) /add
net localgroup Administrators Elias /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

My RunOneEX.cmd

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Programmakes aant installere..." /f

REG ADD %KEY%\001 /VE /D "Klaarmaken voor installatie..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\005 /VE /D "Winrar 3.42" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\wrar342.exe /s

REG ADD %KEY%\010 /VE /D "Alcohol 120 %" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\trial_setup.msi /qn" /f

REG ADD %KEY%\015 /VE /D "Deamon Tools" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\daemon347.exe /qn /Reboot=Suppress

REG ADD %KEY%\020 /VE /D "Firefox" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\fire.exe /s

REG ADD %KEY%\025 /VE /D "DU Meter 3" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\DUMeter-Install.exe /VERYSILENT /SP-

REG ADD %KEY%\030 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\WMP10\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\035 /VE /D "ABC" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\ABC.exe /s

REG ADD %KEY%\040 /VE /D "Messenger v7.0" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MsnMsgs.msi /qb" /f
REG ADD %KEY%\040 /V 2 /D "pskill.exe msnmsgr.exe" /f

REG ADD %KEY%\045 /VE /D ".NET Framework 1.1 SP1" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\netfxsp1.exe"


REG ADD %KEY%\045 /VE /D "Acrobat Reader 7" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\acroread7.exe"



EXIT

Thanks,

Elias

PS: sorry for my english


Posted

This:

cmdow @ /HID

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"
DEL "%AllUsersProfile%\Start Menu\Programmatoegang en -instellingen.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows-catalogus.lnk"

EXIT

Posted

put a pause @ The end of each script & try again, this will show u the error, also, be sure that both files are in same directory as cmdlines.txt cuz u arent specifying an alternate path :)

Posted
not @Pause

JUST

pause

Shouldn't really make a difference. Adding @ to the start of a batch line should just ensure that the line is not echoed, regardless of whether or not "echo off" has been set previously. Hence the reason so many batch files start with the line

@echo off

:D

Posted

I can tell you your problem is in your runonceex.... you have a ton of entries with no end quotes as well as no '/f' at the end of each line. Not only that but your last 2 entries use the same numbers (045)... Clean that thing up!!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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