realcapone Posted July 16, 2015 Share Posted July 16, 2015 Hi everyone. I just need help on how to download the Ccleaner Slim version. I am using the slim version so that I can avoid installing the 3rd party applications when I run the installer silently with the script. The full version installer link works fine but when I use the Slim version, it doesn't work at all. Am I missing something? Thank you. Local $UrlDownloader = InetGet("https://www.piriform.com/ccleaner/download/slim", $Directory, 1, 1)Here's the website for the slim version:http://www.piriform.com/ccleaner/download/slimORhttps://www.piriform.com/ccleaner/builds - Full / Portable / Slim Link to comment Share on other sites More sharing options...
JohnOne Posted July 16, 2015 Share Posted July 16, 2015 I thoughta filename had to be passed, not just a page address.Any way try this...http://www.piriform.com/ccleaner/download/slim/downloadfile AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 16, 2015 Moderators Share Posted July 16, 2015 As J1 points out (and the help file clearly states) InetGet gets a file. This works just fine for me:InetGet("http://www.piriform.com/ccleaner/download/slim/downloadfile", @DesktopDir & "\CCleaner.exe") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
realcapone Posted July 16, 2015 Author Share Posted July 16, 2015 Hi guys, thanks for the help. I used the http://www.piriform.com/ccleaner/download/slim because it automatically downloads the file and I didn't notice the download button on that page has a different link so yeah the http://www.piriform.com/ccleaner/download/slim/downloadfile works well. I really did not want to use the main installer for two reasons, the 3rd party apps and also the fact where it would change it's URL if there is an update. I am not yet sure how to go around with that I'm still trying to learn. Again thank you for your help. Link to comment Share on other sites More sharing options...
pcjunki Posted July 16, 2015 Share Posted July 16, 2015 (edited) I use this to download the portable version and extract it to my desktopInetClose(-1) InetGet("http://www.piriform.com/ccleaner/download/portable/downloadfile", "c:\users\public\desktop\ccleaner.zip", 1, 0) InetClose(-1) $vbs = (@DesktopDir & "/extract.vbs") FileOpen($vbs, 0) FileWrite($vbs, 'ZipFile="C:\Users\Public\Desktop\ccleaner.zip"' & @CRLF) FileWrite($vbs, 'ExtractTo="C:\Users\Public\Desktop\ccleaner"' & @CRLF) FileWrite($vbs, 'Set fso = CreateObject("Scripting.FileSystemObject")' & @CRLF) FileWrite($vbs, 'If NOT fso.FolderExists(ExtractTo) Then' & @CRLF) FileWrite($vbs, ' fso.CreateFolder(ExtractTo)' & @CRLF) FileWrite($vbs, 'End If' & @CRLF) FileWrite($vbs, 'set objShell = CreateObject("Shell.Application")' & @CRLF) FileWrite($vbs, 'set FilesInZip=objShell.NameSpace(ZipFile).items' & @CRLF) FileWrite($vbs, 'objShell.NameSpace(ExtractTo).CopyHere(FilesInZip)' & @CRLF) FileWrite($vbs, 'Set fso = Nothing' & @CRLF) FileWrite($vbs, 'Set objShell = Nothing' & @CRLF) FileClose($vbs) Sleep(2000) RunWait(@ComSpec & ' /c ' & 'cscript %userprofile%\desktop\extract.vbs', "", @SW_HIDE) Sleep(8000) FileDelete($vbs) FileDelete("c:\users\public\desktop\ccleaner.zip") MsgBox(-1, "Download complete", "Ccleaner has been downloaded and extracted to the desktop") Edited July 16, 2015 by pcjunki Link to comment Share on other sites More sharing options...
realcapone Posted July 16, 2015 Author Share Posted July 16, 2015 Hey there @pcjunki. Thanks for your input, somehow I'm not able to see the extracted portable Ccleaner but anyway my script is working fine now using the code above. Now I am wondering if there is any way we can perhaps assign or have a permanent link so that whenever a program or a URL would update then we can still download the latest exe without constantly changing the code. Malwarebytes is one example of this. Link to comment Share on other sites More sharing options...
JohnOne Posted July 16, 2015 Share Posted July 16, 2015 Have your url in an external file like an ini or something. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
realcapone Posted July 17, 2015 Author Share Posted July 17, 2015 (edited) Thanks John but is there anything equivalent to wget or apt-get? Trying to search the forum for it as I type this but yeah something similar so that it will just take the exe from a repository and you'll only have to type in specific or unchanged file names. Edited July 17, 2015 by realcapone Link to comment Share on other sites More sharing options...
pcjunki Posted July 17, 2015 Share Posted July 17, 2015 (edited) InetGet("http://www.piriform.com/ccleaner/download/slim/downloadfile" , "c:\users\public\desktop\ccsetup_slim.exe") use this, it doesn't matter about newer versions or not. Edited July 17, 2015 by pcjunki Link to comment Share on other sites More sharing options...
realcapone Posted July 17, 2015 Author Share Posted July 17, 2015 Yeah ccleaner is fine but with Malwarebytes and some other programs that constantly updates their URLs with their app version it's not going to work. I'm still trying to find a workaround for it though. Thanks. Link to comment Share on other sites More sharing options...
realcapone Posted July 20, 2015 Author Share Posted July 20, 2015 (edited) Hi pcjunki, I was trying to use your codes to extract a zipfile but somehow I'm not able to make it work, I am missing something? I'm trying it for CCleaner and TDsskiller. Both are zip files but I don't see it extracted in my desktop though. Thanks Edited July 20, 2015 by realcapone Link to comment Share on other sites More sharing options...
pcjunki Posted July 20, 2015 Share Posted July 20, 2015 pay attention to these 2 lines FileWrite($vbs, 'ZipFile="C:\Users\Public\Desktop\ccleaner.zip"' & @CRLF) FileWrite($vbs, 'ExtractTo="C:\Users\Public\Desktop\ccleaner"' & @CRLF) Link to comment Share on other sites More sharing options...
realcapone Posted July 21, 2015 Author Share Posted July 21, 2015 I did. I had to resort to 7z extraction as I was confused with the Filewrite not working. Hehe. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now