/build/static/layout/Breadcrumb_cap_w.png

Help deleting a folder before installation

Hi i have a program, Meeting Planner for Outlook to be exact that i am wrapping an install into a .cmd file for.
only problem is in order to upgrade safely we need to remove all files within the %appdata%\emergingsoft folder.

i have this code that i am running right now that works for currently logged on users

:KillProcesses
TASKKILL /F /IM OUTLOOK.EXE

GOTO :CHECK

:CHECK

IF EXIST "%appdata%\emergingsoft" GOTO DELETE

GOTO INSTALL

:DELETE
del /f /s /q "%appdata%\emergingsoft\*"

:INSTALL
msiexec /i "MeetingPlanner for Outlook.msi" /norestart /qb

GOTO :END

:END

my question is i have some computers that have multiple users who use it, this will only work for who was logged in at the time it was ran. Is there something i can add to this package to say look in Documents And Settings for every user that was logged in the past and delete this appdata\emergingsoft data?

looking forward to a response

0 Comments   [ + ] Show comments

Answers (2)

Posted by: naveen.packager 13 years ago
Green Belt
0
You can use vbscript for searching and deleting the required folders.
Posted by: anonymous_9363 13 years ago
Red Belt
0
The inference here is that your users have local administrator privileges....scary...

As Naveen implies, there must be a quadzillion examples of scripts which will walk the profiles folder performing an action of one kind or another. Start at http://www.computerperformance.co.uk
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ