Jump to content











Photo
- - - - -

[ app script ] CCleaner 2.0 via Runscanner


  • Please log in to reply
10 replies to this topic

#1 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 22 August 2007 - 08:14 PM

CCleaner has been recoded in C+ and is now completely portable!

Version 2.0 beta is included in this script for wb and loaded via Runscanner so that you may select a Windows installation to clean. CCleaner may also be used in PE, though that's not the intended use.

The script will work as intended with wb projects using BuildModel by Psc or the Xpe shell by Sherpya. This script may serve as a template for anyone that wants to modify a basic script for their needs. Please report your tests if you like. Here's the link..

CCleaner 2.0 via Runscanner Script

Posted Image

ccleaner beta dl

Info on Runscanner by Paraglider

#2 Drake Sorcerer

Drake Sorcerer

    Newbie

  • Members
  • 11 posts
  •  
    United States

Posted 23 April 2008 - 08:58 PM

CCleaner has been recoded in C+ and is now completely portable!

Version 2.0 beta is included in this script for wb and loaded via Runscanner so that you may select a Windows installation to clean. CCleaner may also be used in PE, though that's not the intended use.


Sounds like a nice script but the link is broken.

#3 TheHive

TheHive

    Platinum Member

  • .script developer
  • 3,654 posts

Posted 23 April 2008 - 10:17 PM

I think its suppose to be

CCleaner 2.0 via Runscanner Script

#4 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 9,912 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 24 April 2008 - 11:38 AM

Hi thuun!

Great to see that you're posting new scripts but this app script will only work with PE XP, can you modify it to work in standard app script format?

Look here:

&#91;process&#93;

Echo,&#34;Adding %Program%..&#34;

unpack

ExtractAllFiles,&#34;%ScriptFile%&#34;,&#34;RunScanr&#34;,&#34;%target_sys%&#34;



hive_load,HKLM

reg_add,0x2,&#34;%reg%\ControlSet001\Control\Session Manager\Environment&#34;,&#34;ProgramFiles&#34;,&#34;%SystemDrive%\%PE_Program%\%ProgramDir%&#34;

hive_unload,HKLM





hive_load,HKU

reg_add,0x1,&#34;%reg%\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open %Program%\command&#34;,&#34;&#34;,&#34;%SystemDrive%\%PE_Program%\%ProgramDir%\%ProgramExe%&#34;

reg_add,0x1,&#34;%reg%\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%&#34;,&#34;&#34;,%SystemDrive%\%PE_Program%\%ProgramDir%\%ProgramExe%&#34;

reg_add,0x1,&#34;%reg%\Microsoft\Windows\CurrentVersion\App Paths\%ProgramExe%&#34;,&#34;Path&#34;,&#34;%SystemDrive%\%PE_Program%\%ProgramDir%&#34;

reg_add,0x1,&#34;%reg%\CCleaner&#34;,&#34;UpdateCheck&#34;,&#34;0&#34;

reg_add,0x1,&#34;%reg%\CCleaner&#34;,&#34;&#34;,&#34;%SystemDrive%\%PE_Program%\%ProgramDir%&#34;

hive_unload,HKU



hive_load,HKCU

reg_add,0x1,&#34;%reg%\Software\VB and VBA Program Settings\CCleaner\Options&#34;,&#34;MSG_CONFIRMCLEAN&#34;,&#34;False&#34;

hive_unload,HKCU



Add_Shortcut


This code was not tested but I hope it can be used as base for your work, inside bartPEcore you can write the Add_Shortcut function to work exclusively with either XPE or NU2MENU - this only requires editing api.script inside your project and all other app scripts will also work there as well.

:lol:

#5 Drake Sorcerer

Drake Sorcerer

    Newbie

  • Members
  • 11 posts
  •  
    United States

Posted 25 April 2008 - 03:14 AM

I think its suppose to be

CCleaner 2.0 via Runscanner Script

Thanks, I will try it soon along with a few other scripts. Good job

#6 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 28 April 2008 - 03:37 PM

CCleaner has been recoded in C+ and is now completely portable!

Version 2.0 beta is included in this script for wb and loaded via Runscanner so that you may select a Windows installation to clean. CCleaner may also be used in PE, though that's not the intended use.

The script will work as intended with wb projects using BuildModel by Psc or the Xpe shell by Sherpya. This script may serve as a template for anyone that wants to modify a basic script for their needs. Please report your tests if you like. Here's the link..

CCleaner 2.0 via Runscanner Script

Posted Image

ccleaner beta dl

Info on Runscanner by Paraglider

Hi Thunn,

Thanks for the script! Can't wait to use this but I'm getting the following:
wb_setuperr.JPG


RegHiveLoad - Failed to load registry hive&#58; &#91;wb-setup&#93; From file&#58; &#91;%TargetSys32%\setupreg.hiv&#93;

  RegHiveLoad - File&#58; &#91;%BaseDir%\Target\LiveXP\i386\system32\config\default&#93; Section &#91;WB-default&#93;

  RegHiveLoad - File&#58; &#91;%BaseDir%\Target\LiveXP\i386\system32\config\software&#93; Section &#91;WB-software&#93;

  RegWrite - Failed to write REG key in root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x2&#93; Section &#91;wb-setup\ControlSet001\Control\Session Manager\Environment&#93; key &#91;ProgramFiles=%SystemDrive%\Program Files..&#93;

  RegWrite - root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x1&#93; Section &#91;WB-software\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\Shell\Open CCleaner\command&#93; key &#91;=%SystemDrive%\Program Files\CCleaner\CCScanr.exe..&#93;

  RegWrite - root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x1&#93; Section &#91;WB-software\Microsoft\Windows\CurrentVersion\App Paths\CCScanr.exe&#93; key &#91;=%SystemDrive%\Program Files\CCleaner\CCScanr.exe..&#93;

  RegWrite - root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x1&#93; Section &#91;WB-software\Microsoft\Windows\CurrentVersion\App Paths\CCScanr.exe&#93; key &#91;Path=%SystemDrive%\Program Files\CCleaner..&#93;

  RegWrite - root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x1&#93; Section &#91;WB-software\CCleaner&#93; key &#91;UpdateCheck=0..&#93;

  RegWrite - root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x1&#93; Section &#91;WB-software\CCleaner&#93; key &#91;=%SystemDrive%\Program Files\CCleaner..&#93;

  RegWrite - root key&#58; &#91;HKLM&#93; Type&#58; &#91;0x1&#93; Section &#91;WB-default\Software\VB and VBA Program Settings\CCleaner\Options&#93; key &#91;MSG_CONFIRMCLEAN=False..&#93;

  RegHiveUnLoad - Failed to unload registry hive&#58; &#91;wb-setup&#93;

Way over my head, any thoughts? Thanks again :lol:

#7 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 29 April 2008 - 12:04 AM

Hi Thunn,
Thanks for the script! Can't wait to use this but I'm getting the following:

Try this converted to app script
Attached File  CCleaner20.Script   662.36K   432 downloads

#8 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 29 April 2008 - 02:32 AM

Try this converted to app script
Attached File  CCleaner20.Script   662.36K   432 downloads

Thank you! Will test :lol:

#9 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 29 April 2008 - 06:40 AM

Thank you! Will test :lol:

That worked beautifully! I'm looking at your conversion, very clean! Thank you again!! :thumbup:

#10 JonF

JonF

    Gold Member

  • .script developer
  • 1,185 posts
  • Location:Boston, MA
  •  
    United States

Posted 29 May 2008 - 07:26 PM

Unfortunately, the "New API" version does not work in VistaPE. Runscanner pops up a "Creation of target process failed. Insert the diskette for drive %1" error, which usually means that the path to the target executable is invalid.

The attached works in VistaPE and should work in any project. I'd love to hear comments.

Alas, at least when running under VistaPE, CCleaner cleans lots of things but doesn't clean the user's temporary folder on the host system ( <drive>:\Documents and Settings\<username>\Local Settings\Temp or <drive>:\Users\<username>\Appdata\Local\Temp). I don't know why, and I doubt anything can be done about it.

Attached Files



#11 Nuno Brito

Nuno Brito

    Platinum Member

  • Team Reboot
  • 9,912 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 29 May 2008 - 10:44 PM

Good coding, thanks for the update.

;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users