/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I am using a script to install some software that requires some dependencies using scripts. I have accomplished the install process. I would rather not leave the files on the workstations (I like to keep things clean). I have not found a good way to remove the dependencies after the process has finished. There does not seem to be an obvious way.

The only thing I have thought of is some type of batch file within a script that runs at a later time after the 1st script (in order to prevent it from running to soon and interrupting the install).

Does anyone have other suggestions on something I have missed?

Thanks
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
hfg,

One thing that you may want to do is delete $(KACE_DEPENDENCY_DIR).

You can do this as part of your script as long as you can verify that the script has completed.

Hope this helps.
Answered 01/27/2011 by: dchristian
Red Belt

Please log in to comment
0
hfg, have you found an easy way of accomplishing this?
Answered 11/15/2011 by: afincher
Purple Belt

Please log in to comment
2
I would most likely run a batch file with the follwing command:

del *.* /F /S /Q
rd "%~dp0" /S /Q

that should delete all files and dirs and sub dirs.



but as dchristian said, only if it is completed =)
Answered 11/16/2011 by: rmeyer
Second Degree Blue Belt

Please log in to comment
0
ORIGINAL: rmeyer
del *.* /F /S /Q
rd "%~dp0" /S /Q



Perfect! Thanks. I've never seen this %~dp0 option before!
Answered 11/17/2011 by: afincher
Purple Belt

Please log in to comment