Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Ok here is the senario. I am trying to write a batch that will uninstall a program, then, delete the extra folders that were not deleted during the uninstall, then, install the new program and delete any extra icons from the desktop. I will doing this on multiple users machines but using my login for adminstration purposes. I have three seperate batch files that all seem to do what I need now I just need them to work as one. I would like to log in to computer double click my batch file and have the above mentioned actions to happen. Here is what I have so far:
uninstall batch =
start msiexec /x {5783F2D7-8001-0409-0002-0060B0CE6BBA} /qClean up Folders batch =
:: @echo off
rmdir /s "C:\Program Files\AutoCAD 2010"cd /d "%AllUsersProfile%\.."
set Docs=%CD%
for /d %%a in (*.*) do call :Del %%a
goto :eof
:Del
echo Cleaning up user "%*"
rmdir /s "%Docs%\%*\Local Settings\Application Data\Autodesk\AutoCAD 2010"Install batch=
start \\Ns01\CAD\AutoDesk2010\AutoCAD2010\AdminImage\setup.exe /qb /I \\Ns01\CAD\AutoDesk2010\AutoCAD2010\AdminImage\AutoCAD 2010.ini /language en-us
del /q "%AllUsersProfile%\Desktop\AutoCAD 2010 - English.lnk"These three work separatley, might be some extra stuff in these lines for testing purposes but they seem to work ok.
How do I get them to work as one?
Thanks everyone

![]() |
removing first chars from...
|
SIF Agent
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |