FLaMMiE Posted November 24, 2004 Posted November 24, 2004 I've read the guide and I think I've done everything but i can't seem to get cmdlines.txt to run my regfile during installation.. The regfile is tested and works properly.What I want to accomplish is that all this should be done before windows boots up for the first time.My cmdlines.txt:[COMMANDS]"REGEDIT /S C:\install\regtweaks.reg""start /wait C:\install\AV710sv\setup.exe /qn"And in $1\Install i have regtweaks.reg:Windows Registry Editor Version 5.00;Disables Windows Tour bubble popup[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]"RunCount"=dword:00000000;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;Remove System Restore[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]"DisableSR"=dword:00000001;Drive letter first[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]"ShowDriveLettersFirst"=dword:00000001;Remove passwords in IE6[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]"FormSuggest Passwords"="No";Remove Indexing Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CiSvc]"Start"=dword:00000004;Do not look for printers and shares[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"NoNetCrawling"=dword:00000001; Displays My Computer My Network Places and My Documents on the Desktop[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000000"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000"{450D8FBA-AD25-11D0-98A8-0800361B1103}"=dword:00000000
durex Posted November 24, 2004 Posted November 24, 2004 Id recommend creating a batch file that runs these 2 commands then referencing the batch file in cmdlines.txt
gunsmokingman Posted November 24, 2004 Posted November 24, 2004 Try This CmdLine.txtJust Leave These In The Same Place, Where You Have The CmdLine.txt[COMMANDS]"regtweaks.reg""AV710sv.cmd"echo offclscolor f2mode con: Cols=45 Lines=3Title AV710svset SD=%Systemdrive%\Install\::::start %SD%HelloTest\JUSTHELLOTEST.VBS ::::I USED THIS FOR A TEST AND IT WORKEDStart %SD%AV710sv\setup.exe /qnecho.echo Batch File Completed?ping -n 5 127.0.0.1>nulexit
gunsmokingman Posted November 24, 2004 Posted November 24, 2004 Try This cmdlines.txt:Just Leave These In The Same Place, Where You Have The CmdLine.,txt[COMMANDS]"regtweaks.reg""AV710sv.cmd"echo offclscolor f2mode con: Cols=45 Lines=3Title AV710svset SD=%Systemdrive%\Install\::::start %SD%HelloTest\JUSTHELLOTEST.VBS ::::I USED THIS FOR A TEST AND IT WORKEDStart %SD%AV710sv\setup.exe /qnecho.echo Batch File Completed?ping -n 5 127.0.0.1>nulexitI had A error In Posting So Could a mod Delete this one
^_^ Posted November 24, 2004 Posted November 24, 2004 I had problems when I tried to run 2 files from cmdlines.txtso I referenced a batch file from cmdlines and had the batch file do the dirty work for me
FLaMMiE Posted November 24, 2004 Author Posted November 24, 2004 Thx for the help.I've got the reghacks up and running now. Now i need to get that batchfile to work.right now it looks like this:cmdlines.txt[COMMANDS]"REGEDIT /S regtweaks.reg""programs.cmd"programs.cmdECHO.ECHO Installing software..."start /wait C:\install\AV710sv\setup.exe /n""start /wait C:\install\Acro6Swe\acro60.exe /n"But the programs are not installed... how should I edit theese?Programs.cmd resides in the $OEM$ catalog too.
maxXPsoft Posted November 24, 2004 Posted November 24, 2004 I think its simply cmdlines.txt may be too early to run a setup on whatever that is. Try it later in RunoncEX.cmdPrograms running any kind of msi will not install that early. I did a Google search trying to see what AV710sv is but came up Nullstring
FLaMMiE Posted November 24, 2004 Author Posted November 24, 2004 The program you are referring to is simply McAfee Antivirus 7.1 swedish version. So you suggest i install it through GUIrunOnce? I've heard about RunOnceEX but never understood what it was... Do you have a link to a guide or something?
Tsunami Posted November 24, 2004 Posted November 24, 2004 http://unattended.msfn.org/xp/runonceex.htm
gunsmokingman Posted November 24, 2004 Posted November 24, 2004 (edited) Just use echo offclscolor f2mode con: Cols=45 Lines=3Title AV710svset SD=%Systemdrive%\Install\::::start %SD%HelloTest\JUSTHELLOTEST.VBS ::::I USED THIS FOR A TEST AND IT WORKEDStart / w %SD%AV710sv\setup.exe /qnecho.echo AV710sv Completed?ping -n 2 127.0.0.1>nulclscolor 7fTitle Acro6Swestart /wait %SD%Acro6Swe\acro60.exe /necho echo Acro6Swe Completed?ping -n 2 127.0.0.1>nulexitTemplate To Add More To Install Cmdclscolor 7fTitle <span style='color:red'>ADD ANOTHER APP HERE </span>start /wait %SD%<span style='color:red'>ADD ANOTHER APP HERE </span>echo echo <span style='color:red'>ADD ANOTHER APP HERE </span>Completed?ping -n 2 127.0.0.1>nulCmdLine.txt Should Look Like This With<span style='color:green'>All The Apps to Install Are In The The Install.cmd</span>[COMMANDS]"regtweaks.reg""Install.cmd" Edited April 25, 2007 by gunsmokingman
^_^ Posted November 24, 2004 Posted November 24, 2004 yes, to install your programs, add a line to your winnt.sif answer file like this[GuiRunOnce] pathtofile:\batchfilename.cmdwhere batchfilename.cmd is a batch file that you are using to silently install your programsThat will load right after windows completes.
maxXPsoft Posted November 24, 2004 Posted November 24, 2004 ^_^ You don't need that with cmdlines.txt, its automatically added and executed at T-13 or so.gunsmokingman's method may work for some things but only for single USER programs so I'm thinking may not work with Anti-Virii proggies. Its a try and see thing.Might take a look at Deploy.chm and look at this;Limitations of and Usage Notes on Cmdlines.txtBut as we all know MS is wrong in their help occasionally so let everyone else know
FLaMMiE Posted November 25, 2004 Author Posted November 25, 2004 Ok, thanks for all the great answers. I'm in the testing phase right now where I will try to get everything to work. Thank god for Vitual PC Trial...Got a couple of questions too... 1. I need to add an "Environment Variable" that says remotepc=winxp through a reghack, how?2. I need to open up 2 ports in the SP2 firewall and state that ping should be allowed for the internet connection.
maxXPsoft Posted November 25, 2004 Posted November 25, 2004 hehehe Might also discover as i have that everything don't work right in the VM's. Fought that for nearly 6 months and discovered it works like intended in the actual.Just a thought.
FLaMMiE Posted November 25, 2004 Author Posted November 25, 2004 1. I need to add an "Environment Variable" that says remotepc=winxp through a reghack, how?2. I need to open up 2 ports in the SP2 firewall and state that ping should be allowed for the internet connection.Evironment variable is fixed now.Firewall ports still a big problem... Don't know where to start.And another regtweak I would like to add:I don't know what it's called in the english version but in the swedish it is "adapted startmeny" which creates the "arrows" in the startmenu and hides programs and folders you rarely use. I would like to disable it.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now