Jump to content

Wish me luck!


Recommended Posts

I have been reading this site for AGES, and have done many slipstreamed disks and whatnot. But now I am going for BIG.

I am going to try and use a DVD with XP SP2, updated drivers, Visual Studio .NET, just about every program in the application switches forum, with my own theme, using runonceex.

I have been going at this for ages (about 14 days just doing this), reading up on everything. It's also my first time using runonceex.

Visual Studio will be copied across in its directory format (as outlined in numerous microsoft help pages), and installed at the end of runonceex with a batch file (hidden of course :) )

I just managed to squeeze it in to 4GB!

Edited by DanFraser
Link to comment
Share on other sites


ARGH!

It didn't work! The setup stops at the T-12 stage of the setup, but I cannot figure out why.

I am going to put everything involved with my DVD into this post so you guys can pick at it all.

Please help!

First of all, here's a pic of the root of my DVD. It shows what I have done to integrate Visual Studio .NET onto the DVD so that it is easily installed later on.

post-23960-1134568347_thumb.jpg

Next, WINNT.SIF :

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

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
UnattendSwitch="yes"
FileSystem=*
WaitForReboot="No"
DriverSigningPolicy=Ignore
ProgramFilesDir="D:\Programs"
CommonProgramFilesDir="D:\Programs\My Common Files"
KeyboardLayout="United Kingdom"

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

[UserData]
ProductKey=YEAH RIGHT!!
FullName="DanFraser"
OrgName="Home"
ComputerName=CLIENT

[Display]
BitsPerPel=32
Xresolution=1280
YResolution=1024
Vrefresh=60

[TapiLocation]
CountryCode=44
Dialing=Tone
AreaCode=01332

[RegionalSettings]
LanguageGroup=1
SystemLocale=00000809
UserLocale=00000809
InputLocale=0809:00000809

[Identification]
JoinWorkgroup=HOME

[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.0.3
SubnetMask=255.255.255.0
DefaultGateway=192.168.0.1
DNSServerSearchOrder=192.168.0.1
WINS=No
NetBIOSOptions=0

[Shell]
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\myTheme.theme"

My user account stuff is pretty standard, i know its worked, its always worked, so i'll skip that.

Now for my RunOnceEx.cmd

cmdow @ /HID
@echo off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Soundblaster Live 5.1 Drivers" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Applications\SBLive\CTZAPXX.exe /q /o /r" /f

REG ADD %KEY%\010 /VE /D "Microsoft Office XP" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\Applications\OfficeXP\setup.exe TRANSFORMS=Unattended.MST /qb-!" /f

REG ADD %KEY%\020 /VE /D "MBM 5370" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Applications\MBM\mbm5370.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\020 /V 2 /D "%CDROM%\Applications\MBM\MBMIO.EXE /s /32 /2 %systemroot%\system32" /f
REG ADD %KEY%\020 /V 3 /D "mbm.reg" /f

REG ADD %KEY%\025 /VE /D "IsoBuster 1.6" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\Applications\IsoBuster\IsoBuster.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\030 /VE /D "VLC Player" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\Applications\vlc\vlc-0.8.2-win32.exe /S" /f

REG ADD %KEY%\035 /VE /D "Nero 6" /f
REG ADD %KEY%\035 /V 1 /D "neroinstall.reg" /f
REG ADD %KEY%\035 /V 2 /D "%CDROM%\Applications\Nero\Nero6.exe" /f
REG ADD %KEY%\035 /V 3 /D "neroinstall.reg" /f

REG ADD %KEY%\040 /VE /D "WinAmp" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\Applications\Winamp\winamp.exe /S" /f

REG ADD %KEY%\045 /VE /D "Ulead PhotoImpact" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\Applications\ULEADPI\setup.exe -s" /f

REG ADD %KEY%\050 /VE /D "Daemon Tools" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\Applications\daemon\daemon347.exe /qn /Reboot=Suppress" /f

REG ADD %KEY%\055 /VE /D "DC++ 0.674" /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\Applications\dc++\DCPlusPlus-0.674.exe /S" /f

REG ADD %KEY%\060 /VE /D "Norton AntiVirus 2002" /f
REG ADD %KEY%\060 /V 1 /D "%CDROM%\Applications\Nav2002\setup.exe /qn /norestart" /f

REG ADD %KEY%\065 /VE /D "Creative Surround Mixer" /f
REG ADD %KEY%\065 /V 1 /D "%CDROM%\Applications\Surmix2\Setup.exe /s" /f

REG ADD %KEY%\070 /VE /D "WinRAR" /f
REG ADD %KEY%\070 /V 1 /D "%CDROM%\Applications\WinRAR\wrar342.exe /silent" /f

REG ADD %KEY%\075 /VE /D "Keyboard Drivers" /f
REG ADD %KEY%\075 /V 1 /D "%CDROM%\Applications\Keyboard\Keyboard.exe" /f

REG ADD %KEY%\080 /VE /D "Adobe Acrobat Reader 705" /f
REG ADD %KEY%\080 /V 1 /D "%CDROM%\Applications\Acrobat\AdbeRdr705_enu_full.exe /S/v/qn" /f

REG ADD %KEY%\085 /VE /D "Quicktime 7.0.3" /f
REG ADD %KEY%\085 /V 1 /D "%CDROM%\Applications\QuickTime\QuickTimeInstaller.exe /S/v/qn" /f

REG ADD %KEY%\090 /VE /D "nLite 1.0rc3" /f
REG ADD %KEY%\090 /V 1 /D "%CDROM%\Applications\nLite\nlite1.0rc3i.exe /sp- /silent /norestart" /f

REG ADD %KEY%\095 /VE /D "SiSoft Sandra 2004" /f
REG ADD %KEY%\095 /V 1 /D "%CDROM%\Applications\sandra\sandra2004-989-Win32-G3N.exe /sp- /silent /norestart" /f

REG ADD %KEY%\100 /VE /D "Clearing up" /f
REG ADD %KEY%\100 /V 1 /D "clearup.cmd" /f

pause
exit

which moves into clearup.cmd (placed in system32)

cmdow @ /HID
@echo off
title Clearing Up
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:
sleep.exe 5
start /wait %CDROM%\Applications\WMP\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N DisallowSystemRestore"
sleep.exe 5
taskkill /f /im winamp.exe
taskkill /f /im NAV*.exe /T
taskkill /f /im MBM5.exe
xcopy /S /E /Y %CDROM%\Applications\NUpdate\*.* %programfiles%\Common Files\Symantec Shared\VirusDefs\Incoming\*.*
sleep.exe 1
attrib -R "%programfiles%\Motherboard Monitor 5\" /S
start /wait REGEDIT /S mbm.reg
xcopy /S /E /Y "%CDROM%\Applications\MBM\Files\*.*" "%programfiles%\Motherboard Monitor 5\*.*"
start /wait neroinstall.reg
taskkill /f /im winamp.exe
sleep.exe 10
xcopy /Y %CDROM%\Applications\Winamp\Winamp %programfiles%\Winamp\*.*
sleep.exe 1
mkdir %allusersprofile%\Start Menu\Programs\Isobuster
shortcut /F:"%allusersprofile%\Start Menu\Programs\Startup\Winamp.lnk" /A:C /T:%programfiles%\Winamp\Winamp.exe /W:%programfiles%\Winamp
shortcut /F:"%allusersprofile%\Start Menu\Programs\Startup\mbmstart.lnk" /A:C /T:%programfiles%\Motherboard Monitor 5\mbm5.exe /W:%programfiles%\Motherboard Monitor 5
shortcut /F:"%allusersprofile%\Start Menu\Programs\Isobuster.lnk" /A:C /T:"%programfiles%\Smart Projects\IsoBuster\IsoBuster.exe" /W:"%programfiles%\Smart Projects\IsoBuster"
shortcut /F:"%allusersprofile%\Start Menu\Programs\Excursion.lnk" /A:C /T:%programfiles%\Excursion\mIRC.ExCurSioN.exe /W:%programfiles%\Excursion
sleep.exe 2
net user aspnet /delete
DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"
shortcut /F:"%allusersprofile%\Start Menu\Programs\Startup\install2.lnk" /A:C /T:install2.cmd /W:%%systemdrive%%\WINDOWS\system32
sleep.exe 2
start /wait %CDROM%\Applications\Java\j2re-1_4_2_06-windows-i586-p.exe /s "/v/qn REBOOT=Suppress WEBSTARTICON=0"
sleep.exe 60
shutdown -r -t 00 -f
exit

Looking at that, ive just seen that i have added a OOBEINFO.INI in the system32 folder (in $OEM$\$$\system32 of course). Could that affect it?

Near the end, that creates a shortcut to install2.cmd in the install drive root, which itself is placed in the startup folder, to instal visual studio .net after the last reboot.

@echo off
title Installing Visual Studio .NET
ECHO Locating installation DVD drive letter...
ECHO.
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:
ECHO Located...
ECHO.
ECHO Installing Windows Media Player 10
start /wait %CDROM%\Applications\WMP\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N DisallowSystemRestore"
sleep.exe 1
ECHO Done
ECHO.
sleep.exe 1
ECHO Now installing Visual Studio .NET
start /wait %CDROM%\setup\setup.exe /NO_BSLN_CHECK /unattendfile vssilent.ini
sleep.exe 5
ECHO Installation of Visual Studio .NET
ECHO is complete. The computer shall be
ECHO rebooted once again to finalise the
ECHO computers' setup in one minute.
sleep.exe 60
shutdown -r -t 00 -f
exit

Obviously not hidden by cmdow as it does let you know whats going on.

Thats pretty much it really.

If you can find anything wrong, or make any suggestions, it would be really appreciated!

(if you want to know how i set up visual studio .net in this way, don't hesitate to ask, i have tested this independently).

Link to comment
Share on other sites

Do you have a cmdlines.txt file in you %OEM% folder.

That used at the 12 min mark.

My cmdlines.txt

[COMMANDS]"REGEDIT /S wmp10.reg"

"REGEDIT /S 000.reg"

"REGEDIT /S 020.reg"

"REGEDIT /S 040.reg"

"REGEDIT /S 060.reg"

"REGEDIT /S 080.reg"

"UserAcount.cmd"

"RunOnceEx.cmd"

Link to comment
Share on other sites

Darn, just a couple of things that need sorting. Visual Studio .NET is not installing from the DVD anymore... I have the correct syntax etc etc (I've been over that many a time, not making my last mistake again). I can get the Windows Component Update disk to silently install what I need. Right now I am trying to figure out whether it could be that the vssilent.ini for the unattend file might be pointing to D:\programs\ as the install folder, or the .Net framework is not installed correctly. Can I slipstream .Net 1.0.3705 into windows? It could be that doing it as that might need a reboot to finalise that install. I'm in the library (no proper net connection...) so I can't post my files, so have a stab in the dark (!) Btw, 1.0.3705 seems to be necessary for the install to continue (don't ask me why, VS7 just does...).

Also, is there a way i can just fake a cd from the directories of my XP DVD that are actually on my hard drive? Burning a 4GB DVD (even to an image on a hard drive at 30MB/s) takes ages, and isnt getting practical anymore!

Ooh, Anyway to shrink the "DVD" of Visual Studio? I don't need all that stuff there, and surely I can reduce it down from 2.5GB...?

Edited by DanFraser
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...