Jump to content

Can someone take a look at my codes?


Recommended Posts

Hi to you all,

It's the first time that I'm creating an unattended CD, I've been busy all weekend creating this, I'm almost finished now, I first started with slipstreaming a WIN XP SP2 CD, than creating the winnt.sif, cmdlines.txt, RunOnceEx.cmd and Cleanup.cmd and I only have to create the regtweak file yet, and I have to add the drivers (modem, chipset and ATI Omega drivers) and the RAID drivers to the winnt.sif file.

I've been reading the unattended site a lot, and this forum and I hope you guys can check the codes to see if something is wrong.

There are two things I'm not sure off, first of all is the switch code for Download Accelerator OK since I can't find an example for it,

second off all, in another thread here there's a code about installing NAV2005 in silent mode, I've already done everthing described there, only thing that puzzle's me is running the CCPD-LC.exe in the RunOnceEx.cmd. Also how does one delete the CCPD-LC.exe in the RunOnceEx.cmd afterwards?

Here are my codes:

winnt.sif:

[Data]
   AutoPartition=0
   MsDosInitiated="0"
   UnattendedInstall="Yes"

[Unattended]
   UnattendMode=FullUnattended
   OemSkipEula=Yes
   OemPreinstall=Yes
   TargetPath=\WINDOWS
   UnattendSwitch="Yes"
   FileSystem=*
   KeyboardLayout="Dutch"
   WaitForReboot="No"
   DriverSigningPolicy=Ignore
   OemPnPDriversPath="drivers\XXXXXXX\" <=== not ready yet


[GuiUnattended]
   AdminPassword=*
   EncryptedAdminPassword=NO
   OEMSkipRegional=1
   TimeZone=110
   OemSkipWelcome=1

[UserData]
   ProductKey=XXXXXXXXXXXXXXX
   FullName="Windows XP"
   OrgName="Pro SP2"
   ComputerName=AMD2500-DFI

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=85

[RegionalSettings]
   LanguageGroup=1
   Language=00000413

[URL]
   Home_Page=http://www.google.nl

[Identification]
   JoinWorkgroup=PRIVE

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1

[params.Adapter1]
   INFID=*

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]
   DNS=No
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=No
   IPAddress=192.168.1.2
   SubnetMask=255.255.255.0
   DefaultGateway=192.168.1.1
   DNSServerSearchOrder=192.168.1.1
   WINS=No
   NetBIOSOptions=0

[Components]
   msmsgs=off
   msnexplr=off
   freecell=off
   hearts=off
   minesweeper=off
   pinball=off
   spider=off

[WindowsFirewall]

   [WindowsFirewall]
   Profiles = WindowsFirewall.TurnOffFirewall

   [WindowsFirewall.TurnOffFirewall]
   Mode = 0

[GuiRunOnce]

cmdlines.txt:

[COMMANDS]
"RunOnceEx.cmd"

RunOnceEx.cmd:

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Programma's installeren" /f

REG ADD %KEY%\001 /VE /D "Installatie voorbereiden..." /f

REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.1 Nederlands" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\AdobeReader6NL\AdbeRdr60_nld.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\003 /VE /D "Ad-Aware SE Pro 1.0.5" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\Install\AdAwareSePro105\aawsepro.exe /S" /f
REG ADD %KEY%\003 /V 2 /D "taskkill /IM Adaware.exe /F" /f
REG ADD %KEY%\003 /V 3 /D "taskkill /IM hh.exe /F" /f
REG ADD %KEY%\003 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /f

REG ADD %KEY%\004 /VE /D "Download Accelerator Plus 5.3 Nederlands" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\Install\DAP\dap53lang.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\004 /V 2 /D "taskkill /IM dap53lang.exe /F" /f

REG ADD %KEY%\005 /VE /D "Kazaa Codec Pack 227 Full" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\KazaaCodec227Full\klcodec227f.exe /silent" /f

REG ADD %KEY%\006 /VE /D "Kazaa Lite Resurrection 007" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\Install\KazaaLiteResur007\KLR007.exe /silent" /f

REG ADD %KEY%\007 /VE /D "Microsoft .Net 1.1 Nederlands" /f
REG ADD %KEY%\007 /V 1 /D "%systemdrive%\Install\NetFrameworkDutch\netfx.msi /qb" /f

REG ADD %KEY%\008 /VE /D "Microsoft .Net 1.1 Nederlands SP1 Update" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\NetFrameworkDutch\NDP1.1sp1-KB867460-X86.exe /qb" /f

REG ADD %KEY%\009 /VE /D "MSN Messenger 6.2 Nederlands" /f
REG ADD %KEY%\009 /V 1 /D "%systemdrive%\Install\MSN62Dutch\MsnMsgs.msi /qb" /f

REG ADD %KEY%\010 /VE /D "Nero Burning ROM 6.3.1.20" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\NeroBurnROM63120\nero63120.exe /SILENT /NOREBOOT /SN=XXXX-XXXX-XXXX-XXXX-XXXX /WRITE_SN" /f

REG ADD %KEY%\011 /VE /D "Norton AntiVirus 2005" /f
REG ADD %KEY%\011 /V 1 /D "REGEDIT /S %systemdrive%\Install\NAV2005\navreg.reg" /f
REG ADD %KEY%\011 /V 2 /D "%systemdrive%\Install\NAV2005\NAVSetup.exe /O REBOOT=ReallySuppress /qb" /f
REG ADD %KEY%\011 /V 3 /D "taskkill.exe /F /IM symlcsvc.exe" /f

REG ADD %KEY%\012 /VE /D "SpywareBlaster" /f
REG ADD %KEY%\012 /V 1 /D "%systemdrive%\Install\SpywareBlaster\spywareblastersetup.exe /verysilent" /f

REG ADD %KEY%\013 /VE /D "Sun Java VM 1.4.2.05" /f
REG ADD %KEY%\013 /V 1 /D "%systemdrive%\Install\SunJavaVM14205\j2re-1_4_2_05-windows-i586-p.exe /s /v\"/qb IEXPLORER=1 REBOOT=ReallySuppress\"" /f

REG ADD %KEY%\014 /VE /D "TweakNow PowerPack 2005 Professional v1.4" /f
REG ADD %KEY%\014 /V 1 /D "%systemdrive%\Install\TweakNowPP2005Pro\fo-tnp14.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\015 /VE /D "TweakUI 2.10 Powertoy" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\TweakUI210Powertoy\TweakUI.msi /qb" /f

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

REG ADD %KEY%\017 /VE /D "WinISO 5.3" /f
REG ADD %KEY%\017 /V 1 /D "%systemdrive%\Install\WinISO53\WinISO.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\017 /V 2 /D "taskkill /F /IM WinISO.exe" /f

REG ADD %KEY%\018 /VE /D "WinRAR 3.40 Nederlands" /f
REG ADD %KEY%\018 /V 1 /D "%systemdrive%\Install\WinRAR340\wrar340nl.exe /s" /f

REG ADD %KEY%\019 /VE /D "Register Tweaks uitvoeren..." /f
REG ADD %KEY%\019 /V 1 /D "REGEDIT /S %systemdrive%\Install\regtweaks.reg" /f

REG ADD %KEY%\020 /VE /D "Opruimen en opnieuw opstarten..." /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\apps\cleanup.cmd" /f

EXIT

cleanup.cmd:

cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP zal herstarten binnen 1 minuut..."
net user aspnet /delete

DEL "%systemdrive%\WINDOWS\system32\CCPD-LC.exe"

RD /S /Q %systemdrive%\Drivers\
RD /S /Q %systemdrive%\Install\

EXIT

You see I wondered if I should delete the CCPD-LC over here, or that I should do it in the RunOnceEx.cmd, perhaps I don't need the clean.cmd at all?

Also does windows setup run in 32 bit mode?

BTW are there any switches for the Stardock applications?

Excuse me for the long post, just wanted to be clear. Thanks in advance.

Link to comment
Share on other sites


REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.1 Nederlands" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\AdobeReader6NL\AdbeRdr60_nld.exe -p"-s /v\"/qn\""" /f

should be

REG ADD %KEY%\002 /VE /D "Acrobat Reader 6.0.1 Nederlands" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\Install\AdobeReader6NL\AdbeRdr60_nld.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\008 /VE /D "Microsoft .Net 1.1 Nederlands SP1 Update" /f
REG ADD %KEY%\008 /V 1 /D "%systemdrive%\Install\NetFrameworkDutch\NDP1.1sp1-KB867460-X86.exe /qb" /f

May not work. I have yet to test the SP1 switches,but considering it's an EXE file, you may need something else besides just /qb

Besides that, I don't see anything that stands out to me. All the other switches look right. You really should look into buying TweakNow Powerpack though..... :(

@battleangel3222

Tru, i don't have them ALL memorized, but I have a good majority of them. **** photographic memory..... too bad it NEVER works on tests....

Also, usually in VirtualPC a full run takes more then 20 minutes, atleast for me. I can do a reinstall in under 20 minutes with all my software, but the virtual always takes atleast twice as long....

Link to comment
Share on other sites

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