/build/static/layout/Breadcrumb_cap_w.png

Deleting Dependencies

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   [ + ] Show comments

Answers (4)

Posted by: rmeyer 13 years ago
Second Degree Blue Belt
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 =)
Posted by: dchristian 13 years ago
Red Belt
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.
Posted by: afincher 13 years ago
Senior Purple Belt
0
hfg, have you found an easy way of accomplishing this?
Posted by: afincher 13 years ago
Senior Purple Belt
0
ORIGINAL: rmeyer
del *.* /F /S /Q
rd "%~dp0" /S /Q



Perfect! Thanks. I've never seen this %~dp0 option before!
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