Jump to content

Recommended Posts

Posted

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

CLS
@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO Over the next few minutes you will see automated installations
ECHO of various sofware applications, windows updates, and registry
ECHO tweaks being implemented. The computer will restart automatically
ECHO 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.reg

ECHO.
ECHO Deleting ASP.NET User Account created by .NET Framework 1.1...
net user aspnet /delete

ECHO.
ECHO Starting installation of Applications

ECHO.
ECHO Installing Lavasoft Ad-Aware SE Pro v1.03
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AdAware\aawsepro.exe /s

ECHO.
ECHO Installing Alcohol 120%
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Alcohol120\setup.exe /qn

ECHO.
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.6
ECHO Please wait...
start /wait %systemdrive%\install\Applications\flashget\fgf140.exe /S

ECHO.
ECHO Registering Flashget v1.6...
REGEDIT /S %systemdrive%\install\Applications\flashget\register.reg

ECHO.
ECHO Installing Kazaa Lite Mega Codec v1.01
ECHO Please wait...
start /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silent

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

ECHO.
ECHO Installing Spybot Search & Destroy v1.2
ECHO Please wait...
start /wait %systemdrive%\install\Applications\SpyBot\spybotsd12.exe /Silent

ECHO.
ECHO Installing SpywareBlaster v3.1
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Spywareblaster\spywareblastersetup.exe /verysilent

ECHO.
ECHO Installing Sygate Personal Firewall Pro v5.5 Build 2637
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Sygate\pspf.msi /QN Reboot=Supress


ECHO.
ECHO Installing Winamp v5.04 Pro
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Winamp5\winamp504_pro.exe /S

ECHO.
ECHO Registering Winamp v5.04 Pro...
REGEDIT /S %systemdrive%\install\Applications\Winamp\register.reg

ECHO.
ECHO Installing Window Washer 5
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe /S

ECHO.
ECHO Installing WinDVD 6
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WinDVD\WinDVD6.exe /S


ECHO.
ECHO Installing WinRAR 3.30
ECHO Please wait...
start /wait %systemdrive%\install\Applications\WinRAR\wrar330.exe /s

ECHO.
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%\Drivers
RD /S /Q %systemdrive%\install

EXIT

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

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

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


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

Posted

Only one example

start /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silent

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

Posted

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

will be

c:\program files\hello.cmd

but 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 bit

cya

Killer Bee

Posted

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.

Posted

Hello

maybe wanna check your spelling...

[E:\XPCD\$OEM$\$1\Install\Apllications]
silly but it does make a difference..
Posted

These lines:

start /wait %systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe /Silent

start /wait %systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe /S

should be:
start /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe" /Silent

start /wait "%systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe" /S

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

Posted

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.

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

Posted

start /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe" /Silent
start /wait "%systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe" /S

should really and truly be

start "" /wait "%systemdrive%\install\Applications\K-Lite Mega Codec\klmcodec101.exe" /Silent
start "" /wait "%systemdrive%\install\Applications\Window Washer\windowwasher5setup.exe" /S

Start makes the first quotes it encounters the title of the window. :P

Posted

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.

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