Jump to content

Unattended installs start from C:?


Recommended Posts

Greetings again,

I'm having a little bit of trouble with some unattended install of program's

At the bottom of this post is a copy of my batch_file_cmd.bat witch rests in

D:\AIO-DVD\Setup\XP\Professional\$OEM$\$1\Install

The problem is that all program's (like msn etc.) tend to want to install from C:/install/msn......

Witch is weird because I use the %systemdrive command as you can see below,

I'm new to this so I aplogize if it's a stupid question..

(Some program's use wrong switches , that was merely to test what it does)

The batch_file_cmd.bat :

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 Wallpapers and Screensavers...

DEL "%systemroot%\*.bmp"

DEL "%systemroot%\Web\Wallpaper\*.jpg"

DEL "%systemroot%\system32\dllcache\*.scr"

DEL "%systemroot%\system32\*.scr"

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 Installing MSN Messenger 7.5 Beta

ECHO Please wait...

start /wait %systemdrive%\install\MSN\Msnmessenger.exe /qn

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 Nero Burning ROM v6

ECHO Please wait...

start /wait %systemdrive%\install\Nero 6\setupx.exe /silent /noreboot

ECHO.

ECHO Installing Winrar

ECHO Please wait...

start /wait %systemdrive%\install\Winrar\wrar342.exe

ECHO.

ECHO Installing Java

ECHO Please wait...

start /wait %systemdrive%\install\Java\java.exe

ECHO.

ECHO Installing Office 2003 Proffesional

ECHO Please wait...

start /wait %systemdrive%\install\Office2003\setup.exe TRANSFORMS=Unattended.mst /qb-

ECHO.

ECHO Installing Adobe

ECHO Please wait...

start /wait %systemdrive%\Adobe\adobefullNLD.exe

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

Link to comment
Share on other sites


Greetings again,

I'm having a little bit of trouble with some unattended install of program's

At the bottom of this post is a copy of my batch_file_cmd.bat witch rests in

D:\AIO-DVD\Setup\XP\Professional\$OEM$\$1\Install

The problem is that all program's (like msn etc.) tend to want to install from C:/install/msn......

Witch is weird because I use the %systemdrive command as you can see below,

I'm new to this so I aplogize if it's a stupid question..

Maybe it's just too early in the morning for me, but I don't understand the question. If you are burning everything within the Professional\ subfolder to your DVD, then the contents of the $OEM$\$1\Install folder will be copied to %systemdrive%\Install (which is typically C: and therefore, C:\Install) during the DOS (bluescreen) portion of the install. Is your boot drive something other than C:?

Are you getting errors (such as file not found)?

Link to comment
Share on other sites

Second that - %systemdrive% IS the C: drive, and your $1\Install will be copied to %systemdrive%\install, hence C:\Install. Not entirely sure what the problem is here - things are working as intended. Perhaps you need to modify your $1 folder structure?

Link to comment
Share on other sites

Bwoah ! never mind this !! Made some typo's

I think that we've all been there and done that. I spent about five hours debugging my unattended script this weekend because of sill typos

SET x=y

NOT

SET x = y

AND

If a Then (
echo b [c]
) Else (
echo d
)

NOT

If a Then (
echo b (c)
) Else (
echo d
)

Stupid nested parens, that one took the longest.

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