Computing.Net > Forums > Programming > Almost have what I am looking for

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Almost have what I am looking for

Reply to Message Icon

Name: Thomas Glidewell
Date: April 15, 2009 at 13:58:20 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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} /q

Clean 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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


removing first chars from... SIF Agent



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Almost have what I am looking for

I am Looking for a great ASP book!!! www.computing.net/answers/programming/i-am-looking-for-a-great-asp-book/522.html

BATCH auto-increasing Folder # www.computing.net/answers/programming/batch-autoincreasing-folder-/14553.html

A fun project for software engineer www.computing.net/answers/programming/a-fun-project-for-software-engineer/9389.html