Jump to content


Ultimate Portable C-Cleaning


2 replies to this topic

#1 OFFLINE   Super Fast

    Power Member

  • Members
  • PipPipPipPip
  • 996 posts

Posted 14 June 2007 - 10:11 AM

Portable CCleaners usually have a few problems:

Use .bat files (annoying)
Must detect installed CCleaner before running (inaccurate on non default directories)
Breaks an existing CCleaner installation (inconvenient & time consuming)

Using 4 programs, we can fix these 3 major problems & others not listed also.
______________________________(CCleaner)______________________________

Download & install freeware CCleaner. http://www.CCleaner.com/

Under options & advanced, check hide warning messages & save all settings to ini file
Close CCleaner & create a copy on the desktop.

Delete uninst.exe from the desktop copy of CCleaner
_____________________________(stubbieman)_____________________________

Download & install freeware stubbieman sfx. http://www.snapfiles...et/stubbie.html

Uncheck delete unpack folder..., prompt for unpack folder..., & prompt user before overwriting... on project settings tab
For target, browse to your desktop & save as Reg.exe
For default unpack folder, choose <TEMP> from the drop down list

Enter these commands 1 by 1 under the Run Last tab using ctrl + c to copy & ctrl +v to paste

regsvr32 /s /u CCHelper.ocx
regsvr32 /s /u CCleaner.dll
regsvr32 /s /u CCListBar.ocx
regsvr32 /s /u CCListView.ocx
regsvr32 /s /u CCSubTimer.dll
regsvr32 /s /u CCSystem.dll
regsvr32 /s /u CCTab.ocx
regsvr32 /s /u CCTreeView.ocx

regsvr32 /s CCHelper.ocx
regsvr32 /s CCleaner.dll
regsvr32 /s CCListBar.ocx
regsvr32 /s CCListView.ocx
regsvr32 /s CCSubTimer.dll
regsvr32 /s CCSystem.dll
regsvr32 /s CCTab.ocx
regsvr32 /s CCTreeView.ocx

Under the build it tab, click build sfx
_______________________________(win rar)_______________________________

Download & install a registered version of win rar. (link not provided)

Right-click on desktop & new/compressed folder named Extract.

Copy (NOT move) these files into this zip folder from the program files/CCleaner folder:

cchelper.ocx
CCleaner.dll
cclistbar.ocx
cclistview.ocx
ccsubtimer.dll
ccsystem.dll
cctab.ocx
cctreeview.ocx

Copy Reg.exe that we created with stubbieman to Extract.zip & the desktop CCleaner folder.

Open win rar & browse to the Extract.xip folder. At the top beside file, click commands & scroll to the bottom to convert archive to SFX.
Under the SFX tab, click advanced SFX options & go to the modes tab.
Change Silent Mode to Hide All & Overwrite mode to overwrite all files.

Under General tab, click Create in "Program Files". Path to extract, type in Common Files.
Go down to run after extraction & type Reg.exe in the box.
Click OK. Click OK again.
_______________________________(iexpress)______________________________

Go to start/run & type iexpress. Hit enter.

Click next, next, & type Piriform / C-Cleaner / 1.40 for package title.

Click next, next, & next. For add files, add the contents of the CCleaner folder on the desktop. Click next, & install program 1 is Reg.exe.
Post install is CCleaner. Click next, next, & next again. Checkmark store files using long file name... & hide file extracting progress.
Browse to the Desktop & save as Clean.exe. Click next, checkmark no restart & next, checkmark don't save self extract... & next, then finish.

Reload iexpress same as before. Click next, next, use Piriform / C-Cleaner / 1.40 for package title, & next again.
For confirmation prompt, click prompt user with & type Run C-Cleaner? Click next, next, add files & Clean.exe & Extract.exe.
Click next & Clean.exe is program 1, & post install is Extract.exe. Click next, next, & next again.

Checkmark store files using long file name... & hide file extracting progress. Browse to the desktop & save it as C-Cleaner Portable & click next.
Checkmark no restart & next. Don't save directive file & next. Then next again & finish.
__________________________(Why do it this way?)_________________________

How does this solve my problems?

1- CCleaner & Reg.exe are extracted to a temp dir. Reg.exe replaces a .bat file & registers CCleaner.
2- CCleaner is then run, after which any installed CCleaner is "broken" after you close CCleaner.
3- No check is needed. Extract.exe copies 8 ocx & dll files to common files folder along with Reg.exe & re-registers them when closing CCleaner.

Any CCleaner that is installed on the pc will now work. Be sure to use a registered rar version so "made with trial version" doesn't appear.

#2 OFFLINE   JDPower

    Cydonian Knight

  • Members
  • PipPipPipPipPip
  • 2,952 posts
  • Gender:Male
  • Location:England

Posted 14 June 2007 - 05:11 PM

Think I'd rather just wait for CCleaner 2. Fair play to you though for putting all that work in ;)

#3 OFFLINE   CTskifreak

    Power Member

  • Members
  • PipPipPipPip
  • 1,413 posts
  • Gender:Male
  • Location:CT, USA

Posted 14 June 2007 - 06:16 PM

CCleaner Portable

Sorry..unneeded...

AJ
Unofficial Ambassador to the Maximum PC Forums and Moderator of the Piriform Facebook page