Jump to content

saison

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

0 Neutral
  1. I was wondering how to be able to travel with CCleaner on my pen drive between many customers sites, and you give me a direction to work. I have test your solution, and unfortunately, it is not complete. I think someone could do better than me, but here is what i did to be able to run CCleaner from different location that C:\program files\CCleaner. For my tests, I rename CCleaner folder (with CCleaner2 and CCleaner3) that does exactly the same that when you try to launch from a pen drive, with no needed registered files. I have created a batch file that registered all the OCX and DLL files (I made a registry search and discover than both DLL and OCX were registered), launch the program, and unregistered the files. here the script: @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 pause 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 pause It's a very basic script, so feel free to upgrade the code. i did this very quickly to provide an answer. One Note: If you want to keep your settings (delete saved password, and other stuff) be careful to backup HKCU\Software\VB and VBA Program Settings\CCleaner key, and do a regedit /s "yourregnamedfile.reg" before launching CCleaner.exe Hope this help Regards
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.