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
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)
Please log in to answer
Posted by:
naveen.packager
13 years ago
Posted by:
anonymous_9363
13 years ago
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
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.
so that the conversation will remain readable.