Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
waterblaze

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.

Share this post


Link to post
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

Share this post


Link to post
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... ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...