Jump to content

removing Office 2003 setup files after unattended install


Recommended Posts

Hi all,

I've finally managed to get my 1st unattended installation of Win2K3 and Office2K3 with all the hotfixes.

I've used the following cmd line method to install Office (which works just fine)

ECHO Installing Office 2003 Professional

ECHO Please wait...

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

Now that the installation is done, I would like to remove the Office installation folder that I don't need anymore.

Any help would be much appreciated.

Thanks.

W.

Link to comment
Share on other sites


Hi all,

I've finally managed to get my 1st unattended installation of Win2K3 and Office2K3 with all the hotfixes.

I've used the following cmd line method to install Office (which works just fine)

ECHO Installing Office 2003 Professional

ECHO Please wait...

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

Now that the installation is done, I would like to remove the Office installation folder that I don't need anymore.

Any help would be much appreciated.

Thanks.

W.

I assume your referring to the MSOCache directory? If you are, go into the FILES\SETUP folder of your source and you will see a SETUP.INI with Pro version or a SETUPPRO.INI if your using a select CD. Scroll down the INI and you will see a CACHE section.

You have two options to accomplish your goal:

PURGE=1

or

CDCACHE=0

Here is a page that tells you all about SETUP.INI:

http://office.microsoft.com/en-us/ork2003/...1513671033.aspx

Edited by snooz
Link to comment
Share on other sites

Hi all,

I've finally managed to get my 1st unattended installation of Win2K3 and Office2K3 with all the hotfixes.

I've used the following cmd line method to install Office (which works just fine)

ECHO Installing Office 2003 Professional

ECHO Please wait...

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

Now that the installation is done, I would like to remove the Office installation folder that I don't need anymore.

Any help would be much appreciated.

Thanks.

W.

you can do it

by adding a cleanup.cmd to your setup

such as

ECHO Installing Office 2003 Professional
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-

ECHO Cleaning Up
ECHO PLease Wait.....
%systemdrive%\install\cleanup.cmd
EXIT

and your cleanup.cmd shold contain all you removable files

//- here represents comments ( remove that from the file, only for you understanding)

cleanup.cmd

cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."
net user aspnet /delete

DEL "%systemroot%\system32\dllcache\*.scr" //- deletes all screensavers
DEL "%systemroot%\system32\*.scr" //- deletes all screensavers

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%systemdrive%\install\Applications\Office2003\setup.exe" // - removes your office 2003 setup files

RD /S /Q %systemdrive%\install\Applications

EXIT

I hope you will understand now, if you have any doubts ask me... ;)

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