AznStyl Posted August 20, 2004 Posted August 20, 2004 Hi, after doing a lot of reading and searching the forum I'm still very confuse about a lot of things. But to sum it all up I have a few questions that I like to ask. First off I've follow the tutorial to make the unattended cd. So I make one and tested with VMWare. The install of xp went well but the error part is where it attemp to install the softwares. It give me the error of wrong path of the software. Below is my batch_file.cmdCLS@echo offTITLE Windows XP SP2 - Unattended InstallationECHO.ECHO Over the next few minutes you will see automated installations ECHO of various sofware applications, windows updates, and registryECHO tweaks being implemented. The computer will restart automaticallyECHO once the whole process has finished!ECHO.ECHO Removing useless shortcuts...DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"ECHO.ECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\RegTweaks.regECHO.ECHO Deleting ASP.NET User Account created by .NET Framework 1.1...net user aspnet /deleteECHO.ECHO Starting installation of ApplicationsECHO.ECHO Installing Lavasoft Ad-Aware SE Pro v1.03ECHO Please wait...start /wait %systemdrive%\install\Applications\AdAware\aawsepro.exe /sECHO.ECHO Installing Alcohol 120%ECHO Please wait...start /wait %systemdrive%\install\Applications\Alcohol120\setup.exe /qnECHO.ECHO Installing AVG Anti-Virus v7...SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"[COLOR=blue]%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9[/COLOR]ECHO.ECHO Installing Flashget v1.6ECHO Please wait...start /wait %systemdrive%\install\Applications\flashget\fgf140.exe /SECHO.ECHO Registering Flashget v1.6...REGEDIT /S %systemdrive%\install\Applications\flashget\register.regECHO.ECHO Installing Kazaa Lite Mega Codec v1.01ECHO Please wait...start /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /SilentECHO.ECHO Installing Nero 6.3.1.6...ECHO Please wait...start /wait %systemdrive%\install\Applications\Nero\Nero6316.exe /SILENT /NOREBOOT /SN=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx /WRITE_SNECHO.ECHO Installing Spybot Search & Destroy v1.2ECHO Please wait...start /wait %systemdrive%\install\Applications\SpyBot\spybotsd12.exe /SilentECHO.ECHO Installing SpywareBlaster v3.1ECHO Please wait...start /wait %systemdrive%\install\Applications\Spywareblaster\spywareblastersetup.exe /verysilentECHO.ECHO Installing Sygate Personal Firewall Pro v5.5 Build 2637ECHO Please wait...start /wait %systemdrive%\install\Applications\Sygate\pspf.msi /QN Reboot=SupressECHO.ECHO Installing Winamp v5.04 ProECHO Please wait...start /wait %systemdrive%\install\Applications\Winamp5\winamp504_pro.exe /SECHO.ECHO Registering Winamp v5.04 Pro...REGEDIT /S %systemdrive%\install\Applications\Winamp\register.regECHO.ECHO Installing Window Washer 5ECHO Please wait...start /wait %systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe /SECHO.ECHO Installing WinDVD 6ECHO Please wait...start /wait %systemdrive%\install\Applications\WinDVD\WinDVD6.exe /SECHO.ECHO Installing WinRAR 3.30ECHO Please wait...start /wait %systemdrive%\install\Applications\WinRAR\wrar330.exe /sECHO.ECHO Restarting the PC in 1 minute...shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\DriversRD /S /Q %systemdrive%\installEXITand here is my winnt.sif;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes" AutomaticUpdates=yes[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes UnattendSwitch="yes" TargetPath=\WINDOWS[GuiUnattended] AdminPassword="pass" EncryptedAdminPassword=NO OEMSkipRegional=1 TimeZone=20 OemSkipWelcome=1[Display] BitsPerPel=32 Xresolution=1024 Yresolution=768 Vrefresh=85[UserData] ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx FullName="TEST" OrgName="TESTING" ComputerName=*[TapiLocation] CountryCode=1 Dialing=Tone AreaCode=612[RegionalSettings] LanguageGroup=10,9,14,1[Identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=No[NetAdapters] Adapter1=params.Adapter1[params.Adapter1] INFID=*[NetClients] MS_MSClient=params.MS_MSClient[NetProtocols] MS_TCPIP=params.MS_TCPIP[params.MS_TCPIP] DNS=Yes UseDomainNameDevolution=No EnableLMHosts=Yes AdapterSections=params.MS_TCPIP.Adapter1[params.MS_TCPIP.Adapter1] SpecificTo=Adapter1 DHCP=Yes WINS=No NetBIOSOptions=0[Components] msmsgs=off msnexplr=off zonegames=off[GuiRunOnce] %systemdrive%\install\batch_file.cmdthe part that gets me is that the RegTweaks.reg work but the software won't install with error wrong path. My xp is install in Drive E:/ I've set up the $OEM$ and all it subfolder accordingly to the tutorial. [E:\XPCD\$OEM$\$1\Install\Apllications] in that path is where I put the softwares in.p.sI've read throught the forum and came across with "RunOnceEx.cmd" I like the GUI of it but I'm very limited on programming and languages. So if anybody can convert my batch_file.cmd to RunOnceEx.cmd I would greatly appreciated. For now I'm very confusing about this unattended project. If I'm doing anything wrong of making this project pls do tell me what's wrong and how to fix it. Any help or comment or clarification is greatly appreciated. Thank You.
Westi Posted August 20, 2004 Posted August 20, 2004 Hi,check your code for missing " or change your filenames to 8.3.
AznStyl Posted August 20, 2004 Author Posted August 20, 2004 Hi,check your code for missing " or change your filenames to 8.3.Hi westi, I don't get what you mean by missing ". Where and in what part of the " should I be looking in and what file name should I be changing to 8.3 and why? Thanks for replying.
Westi Posted August 20, 2004 Posted August 20, 2004 Only one examplestart /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silentwill not work,'cause of the blank.Correct is:start /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silent"Try the code line by line in a console window and you will get the errors.
killerbee Posted August 20, 2004 Posted August 20, 2004 hi,if you are using cariables that have a space in it after it is replaced with the original value u need "like this:%PROGRAMFILES%\hello.cmdwill bec:\program files\hello.cmdbut now there's a space in it and it won't work.so do this:"%ProgramFiles%\hello.cmd"which will lead to this and all is fine:"C:\Program Files\hello.cmd"hope this helps a bitcyaKiller Bee
killerbee Posted August 20, 2004 Posted August 20, 2004 @westi,****, you were a little faster than me cyaKiller Bee
AznStyl Posted August 20, 2004 Author Posted August 20, 2004 If I get you right killerbee and westi, I only need to put " in only where the path have space in them right? and another thing. start /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silent <-- this is the only part where I don't have the " in the batch_file.cmd but shouldn't other programs install in since it doesn't have space in between or just because of that one mistake trigger the whole batch not to install any programs? I'm confuse. but thanks for a fast reply guys. Much appreciated.
lpl Posted August 20, 2004 Posted August 20, 2004 Hello maybe wanna check your spelling... [E:\XPCD\$OEM$\$1\Install\Apllications] silly but it does make a difference..
AznStyl Posted August 20, 2004 Author Posted August 20, 2004 silly me... will correct that and will test it out later... thanks LPL for pointing that out.
mazin Posted August 20, 2004 Posted August 20, 2004 These lines:start /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silentstart /wait %systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe /Sshould be:start /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe" /Silentstart /wait "%systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe" /SOtherwise, the problem is that you misspelled the word "Applications" as "Apllications", as said by lpl. This is the cause of "wrong path" error.If you want to switch to RunOnceEX, RunOnceEx.cmd Creator should make it for you.
AznStyl Posted August 21, 2004 Author Posted August 21, 2004 Thanks mazin for pointing out more errors... I just did my unattended xp yesterday and only one program install "Ad-Adware SE Pro" the rest didn't install and didn't even reboot after it install. I will fix the batch and will retry it today and see how it goes... but I have a feeling that I will return with more questions,... thanks for all the support much appreciated.
mazin Posted August 21, 2004 Posted August 21, 2004 but I have a feeling that I will return with more questions,...No problem! I wasted 4 CDs and 4 nights before I could make a usable CD.EDIT: I suggest you remove Alcohol 120% from your batch to see if it's causing the problem.
Alanoll Posted August 21, 2004 Posted August 21, 2004 start /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe" /Silentstart /wait "%systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe" /Sshould really and truly bestart "" /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe" /Silentstart "" /wait "%systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe" /SStart makes the first quotes it encounters the title of the window.
AznStyl Posted August 21, 2004 Author Posted August 21, 2004 I've just tested out the unattended that I've thought it was all fix but guess now I'm return back for more questions. Well, most of the programs install but klmcodec101.exe and windowwasher5setup.exe didn't install but I will follow Alanoll advice and fix those 2 lines. Next my AVG antivirus 7.0 didn't install ===> ECHO.ECHO Installing AVG Anti-Virus v7...SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9 <==== It give me an error saying internal or external command doesn't exist or something alike. I follow that instruction how to install avg7 in the pinned topic in application switches forum. Anyhow I will try and test it again now and will come back with more questions if more problems occur... Thanks to all tha have been helping and taking ur valuable time on me... greatly appreciated.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now