GithubHelp home page GithubHelp logo

segih / ccleaner-updater Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 299 KB

C# based application that will automatically update CCleaner silently whenever there's an update for CCleaner

C# 100.00%

ccleaner-updater's Introduction

CCleaner-Updater is an application that can run silently in the background and will check the CCleaner website for an update.

If an update is found it will be downloaded and silently installed. If you have User Access Control enabled in Windows, UAC may still prompt you before the installation starts.

Installation instructions:

Open the project in Visual Studio Install these NuGet packages if they are not installed: jint,NSoup,System.Threading.Tasks Compile and run

The project also includes an installer project if you want to develop an installer for this application although it isn't needed because it can run as a standalone application. If you do want to use it as a standalone application, make sure the necessary dll files (NSoup.dll and jint.dll) are in the same folder as the executable.

Usage:

This app can be used in one of 2 different ways.

  1. Manual way: Running the app normally will show you the main CC Updater window where you can specify whether you want to be prompted or not before updating and lets you choose the location of CCleaner.exe if it is not installed in one of the standard locations (C:\Program Files\CCleaner or C:\Program Files (x86)\CCleaner). You can click on the "Check for updates now" button to manually check if there is an update. If there is, you will be prompted to install it if you checked on the setting to prompt you. I recommend to leave this setting unchecked.

  2. Automatic way: This app can be run from the command line with the parameter /S or /s to run silently in the background. If there is an update, it will be installed silently without prompting you (Unless you checked on the setting in the application to prompt you before installing an update).

Note: If you have UAC (User Access Control) enabled in Windows 8 or newer (which is enabled by default), you will see a UAC prompt asking you to confirm that you want to install this app every time that an update is installed. That prompt is part of Windows which I can't prevent from happening but there is a workaround for this to make the app run completely silently by running CCleaner Updater as a scheduled task in Windows.

  1. Open the Task Scheduler application that comes with Windows.
  2. Click on create task on the right hand side under Actions.
  3. Give the task a name on the General tab like CCleaner Updater Task.
  4. Click on Triggers tab and click on New to add a schedule. I choose to run this once a day.
  5. Click on Actions and click on New.
  6. For Program/script: enter the full path to CCleaner.exe. If the path has a space in it, make sure to wrap the entire path with quotation marks "C:\Program Files\CCleaner Updater\CCleaner Updater.exe".
  7. For Add Arguments: Enter /S.
  8. Click on OK.
  9. Click on OK again to save this task.

ccleaner-updater's People

Contributors

segih avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.