Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

CCleaner

hvacmach - January 31, 2006 - 5:35pm

Ok so I read a few post on this and tried a bat file http://portableapps.com/node/151
but i still can not get this app to run from my thumb drive. Did i miss the answer or does anyone have one yet?


( categories: )

...

If you're going to post about something, post in the already existing thread instead of creating a new one. As for your problem, why doesn't it work? What happens when you run it?

You have to put the following in a new file in the application directory named RunCCleaner.bat:

@Echo Off
TITLE CCleaner startup
Echo Registering ActiveX components
cd\Apps\ccleaner
start /WAIT regsvr32.exe /s cchelper.ocx
start /WAIT regsvr32.exe /s CCListView.ocx
start /WAIT regsvr32.exe /s CCSubTimer.dll
start /WAIT regsvr32.exe /s CCTab.ocx
start /WAIT regsvr32.exe /s CCTreeView.ocx
Echo Starting application
start /WAIT ccleaner.exe
Echo Unregistering ActiveX components
start /WAIT regsvr32.exe /u /s cchelper.ocx
start /WAIT regsvr32.exe /u /s CCListView.ocx
start /WAIT regsvr32.exe /u /s CCSubTimer.dll
start /WAIT regsvr32.exe /u /s CCTab.ocx
start /WAIT regsvr32.exe /u /s CCTreeView.ocx
Exit

Rob Loach [Website] [Projects]

I use seperate batch files

I use seperate batch files for Win2k/XP and Win98/ME...

For Win2k/XP:

@ECHO OFF
Echo Registering Components
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
CALL ccleaner.exe
Echo Un-Registering Components
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

For Win98/ME:

@ECHO OFF
Echo Registering Components
c:\windows\system\regsvr32 /s CCHelper.ocx
c:\windows\system\regsvr32 /s ccleaner.dll
c:\windows\system\regsvr32 /s CCListBar.ocx
c:\windows\system\regsvr32 /s CCListView.ocx
c:\windows\system\regsvr32 /s CCSubTimer.dll
c:\windows\system\regsvr32 /s CCSystem.dll
c:\windows\system\regsvr32 /s CCTab.ocx
c:\windows\system\regsvr32 /s CCTreeView.ocx
CALL ccleaner.exe
Echo Un-Registering Components
c:\windows\system\regsvr32 /s /u CCHelper.ocx
c:\windows\system\regsvr32 /s /u ccleaner.dll
c:\windows\system\regsvr32 /s /u CCListBar.ocx
c:\windows\system\regsvr32 /s /u CCListView.ocx
c:\windows\system\regsvr32 /s /u CCSubTimer.dll
c:\windows\system\regsvr32 /s /u CCSystem.dll
c:\windows\system\regsvr32 /s /u CCTab.ocx
c:\windows\system\regsvr32 /s /u CCTreeView.ocx

Thanks, I have used the bat

Thanks, I have used the bat file for XP/2000. Works GREAT! I appreciate the work.

However, I am wondering what files (besides the uninstall file) can I remove from the directory once on the thumbdrive???

You will need all the

You will need all the files.

Also, when using CCleaner from a USB drive you will get a runtime error and be unable to create a backup of any registry entries removed by the registry cleaner.

CCleaner

WOW! That works great.

Many thanks.