[Solved] Automatic Delete Request

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

[Solved] Automatic Delete Request

Post by wrc559 »

Hey, Im trying to automate my tech business as much as possible and i want to try and automatically delete files once im done..

So far i have used these codes.

<Delete>
C:%My Documents%Downloads\TechTools_Encrypted
C:\Documents and Settings\Administrator\My Documents\Downloads\TechTools_Encrypted.zip
C:\Program Files\SUPERAntiSpyware
C:\Program Files\Malwarebytes Anti-Malware

However, whilst the program directories delete, i run into an issue with the first 2 auto delete requests, mainly... the User ID changing between systems automatically. The first attempt was when i was trying to change it around a bit , however still no luck with the coding.

<Run>
C:\Program Files\Malwarebytes Anti-Malware\unins000.exe
--------------------------------------------
<Run>
C:\Program Files\SUPERAntiSpyware\Uninstall.exe

I also initiated uninstalls automatically.

If you need some more information on what im trying to do, please let me know, otherwise assistance required!
Fred
Site Admin
Posts: 2360
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: Automatic Delete Request

Post by Fred »

Hello wrc559.

You need to have a look at the UVK's supported environment variables.
http://www.carifred.com/uvk/help/custom ... _variables

<Delete> moves the files to the recycle bin. In your case, I guess you should use <SDelete> instead.
http://www.carifred.com/uvk/help/custom ... elete_Mode

You need to uninstall the programs and wait until they are fully uninstalled before removing their folders, so you should use <RunWait> instead of <Run>.
http://www.carifred.com/uvk/help/custom ... Wait_modes

Something like this should work:

Code: Select all

;First, uninstall the programs
<RunWait>

%ProgramFiles(x86)%\Malwarebytes Anti-Malware\unins000.exe -silent
%ProgramFiles%\SUPERAntiSpyware\Uninstall.exe -silent


<SDelete>

;On XP, the path of the Downloads folder is different
%MyDocs%\Downloads\TechTools_Encrypted
%MyDocs%\Downloads\TechTools_Encrypted.zip

;Vista+
%UserProfile%\Downloads\TechTools_Encrypted
%UserProfile%\Downloads\TechTools_Encrypted.zip

%ProgramFiles(x86)%\Malwarebytes Anti-Malware
%ProgramFiles%\SUPERAntiSpyware
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
wrc559
Posts: 118
Joined: Sun Mar 22, 2015 2:38 am
Location: Australia
Contact:

Re: Automatic Delete Request

Post by wrc559 »

Your response, fixed my issue, thank you!
Post Reply