Description:
A K1000 script that will SILENTLY install CCleaner, kill IE and FireFox, run in auto mode and uninstall. This is for 64 bit only.
Prerequisites:
CCleaner Slim
https://www.piriform.com/ccleaner/builds - download “CCleaner - Slim”
Let’s Begin
Download CCleaner Slim from prerequisites section.
You will need to upload this file to the K1000 when creating the script.
Install CCleaner Slim on a test computer.
Open CCleaner
Under Cleaner customize what you want to clean by unchecking items. Use at your discretion/needs.
We uncheck recently typed urls for IE, empty recycle bin, clipboard and memory dumps.
Close CCleaner
Open command prompt and type in the following:
cd \
cd program files\ccleaner
ccleaner.exe /EXPORT
Open folder and navigate to the local drive\Program Files\CCleaner
You will need the 3 files named winapp, winreg, and winsys to upload to the K1000 when creating the script.
Copy to flash drive or by any means etc...
Create the Script
Login to your K1000.
Click Scripting
Click Choose Action – New.
Name – CCleaner Install Run Remove.
Click Enabled
Select your 64 bit Operating System.
Click Logged-in user radio button.
Add Dependencies
winapp.ini
winreg.ini
winsys.ini
ccsetup525_slim.exe (name will change when piriform updates it).
Click New Task
Task 1
On Success click add…
Select run a batch file
Name: Install CCleaner
Enter in the following for the batch file (take note if exe name changes):
START /WAIT ccsetup525_slim.exe /S
copy /Y winapp.ini "C:\Program Files\CCleaner"
copy /Y winreg.ini "C:\Program Files\CCleaner"
copy /Y winsys.ini "C:\Program Files\CCleaner"
Check wait for completion
Click save changes
Click add…
Select kill a process
Name: iexplore.exe
Click save changes
Click add…
Select kill a process
Name: firefox.exe
Click save changes
Click New Task
Task 2
On Success click add…
Select Launch a program
Directory: “C:\Program Files\CCleaner”
File: ccleaner64.exe
Check wait for completion
Parameters: /AUTO
Click save changes
Click New Task
Task 3
On Success click add…
Select Run a batch file
Name: Uninstall CCleaner
Enter in the following for the batch file:
timeout /t 120 /nobreak
"C:\Program Files\CCleaner\uninst" /S
Check wait for completion
Click save changes
Click Save at the very bottom
Test the Script
Navigate back to the script just created.
Under devices: select 1 computer to test to make sure everything works.
Visit a few webpages, leave IE open.
Click Run Now
Observe the test computer.
References
Piriform Command Line Parameters
https://www.piriform.com/docs/ccleaner/advanced-usage/command-line-parameters
Ocean County College Team
Comments