Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

chrlauncher (portable)

2.4.3

Package test results are passing.

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.
  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.
Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved as a trusted package on 5/26/2018.

A small and very fast portable launcher and updater for Chromium.

This package:

  • installs chrlauncher, not Chromium.
  • will set chrlauncher to download/install/update Chromium without the need for admin rights.
  • by default, sets the install location for Chromium to be the per-user, %APPDATA% directory. Use the /Shared package parameter (below) to make the Chromium install location be in the chrlauncher directory and have Chromium (and all its settings) shared among all users.

Note

Other (system-wide) chrlauncher settings can be modified in the chrlauncher.ini file located in the same directory as the target of the Chromium Launcher desktop shortcut. Some options include:

  • Auto download updates
  • Show a chrlauncher window when updating (default is a tray icon only)
  • Type of Chromium build
  • Update check period

Package Parameters

The following package parameters can be set:

(Adjust the chrlauncher.ini file to manually change the build after installation)

These parameters can be passed to the installer with the use of -params.
For example:
choco install chrlauncher.portable -params '"/Default"'
choco install chrlauncher.portable -params '"/Type:stable-codecs-sync"'

To install chrlauncher (portable), run the following command from the command line or from PowerShell:

C:\> choco install chrlauncher.portable

To upgrade chrlauncher (portable), run the following command from the command line or from PowerShell:

C:\> choco upgrade chrlauncher.portable

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'  # stop on all errors
    
    $ToolsDir   = Join-Path $env:ChocolateyPackageFolder 'tools'
    
    # Remove previous versions
    $Previous = Get-ChildItem $env:ChocolateyPackageFolder | 
                   Where-Object{($_.name -match '(chrlauncher)|(v[0-9.]+)') -and $_.PSIsContainer }
    if ($Previous) {
       $Previous | ForEach-Object { Remove-Item $_.FullName -Recurse -Force }
    }
    
    $InstallArgs = @{
       packageName  = $env:ChocolateyPackageName
       FileFullPath = (Get-ChildItem $ToolsDir -Filter "*.zip").FullName
       Destination  = (Join-path $env:ChocolateyPackageFolder  "v$env:ChocolateyPackageVersion")
    }
    
    Get-ChocolateyUnzip @InstallArgs
    
    $BitLevel = Get-ProcessorBits
    $target   = (Get-ChildItem $InstallArgs.Destination -filter "*.exe" -Recurse |
                   Where-Object {$_.Directory -match "$BitLevel`$"}).FullName
    $shortcut = Join-Path ([System.Environment]::GetFolderPath('Desktop')) 'Chromium Launcher.lnk'
    
    Install-ChocolateyShortcut -ShortcutFilePath $shortcut -TargetPath $target
    
    # Capturing Package Parameters.
    $UserArguments = @{}
    if ($env:chocolateyPackageParameters) {
       $match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
       $option_name = 'option'
       $value_name = 'value'
    
       if ($env:chocolateyPackageParameters -match $match_pattern ){
          $results = $env:chocolateyPackageParameters | Select-String $match_pattern -AllMatches
          $results.matches | ForEach-Object {$UserArguments.Add(
                               $_.Groups[$option_name].Value.Trim(),
                               $_.Groups[$value_name].Value.Trim())
                            }
       } else { Throw 'Package Parameters were found but were invalid (REGEX Failure)' }
    } else { Write-Debug 'No Package Parameters Passed in' }
    
    if ($UserArguments.ContainsKey('Default')) {
       $msgtext = 'You want chrlauncher as the system default browser.'
       Write-Host $msgtext -ForegroundColor Cyan
       $Bat = Join-Path $InstallArgs.unzipLocation "$BitLevel\SetDefaultBrowser.bat"
       $NoPauseBat = Join-Path (Split-Path $Bat) 'NoPauseSetDefaultBrowser.bat'
       (Get-Content $Bat) -ne 'pause' | Out-File $NoPauseBat -Encoding ascii -Force
       & $NoPauseBat
    }
    
    if ($UserArguments.ContainsKey('Shared')) {
       $msgtext = 'You want chrlauncher to install/update/launch a single instance of Chromium to be shared (including settings, bookmarks, etc.) among all users.'
       Write-Host $msgtext -ForegroundColor Cyan
       $Acl = get-acl $InstallArgs.UnzipLocation
       $InheritanceFlag = [System.Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [System.Security.AccessControl.InheritanceFlags]::ObjectInherit
       $PropagationFlag = [System.Security.AccessControl.PropagationFlags]::InheritOnly
       $rule = New-Object  system.security.accesscontrol.filesystemaccessrule('BUILTIN\Users','Modify',$InheritanceFlag,$PropagationFlag,'Allow')
       $Acl.setaccessrule($rule)
       set-acl $InstallArgs.UnzipLocation $Acl
    } else {
       $msgtext = 'chrlauncher will install/update/launch Chromium independently for each user.'
       Write-Host $msgtext -ForegroundColor Cyan
       $INIfile = Join-Path (Split-Path $target) 'chrlauncher.ini'
       (Get-Content $INIfile) -replace "^(ChromiumDirectory=).*$",'$1%LOCALAPPDATA%\Chromium\bin' | Set-Content $INIfile
    }
    
    if ($UserArguments.ContainsKey('Type')) {
       $msgtext = 'You want to use a Chromium build other than the unofficial development builds with codecs.'
       Write-Host $msgtext -ForegroundColor Cyan
       $NotValid = $false
       switch ($UserArguments['Type']) {
          'dev-official'         { $ValidType = 'dev-official'; break }
          'stable-codecs-sync'   { $ValidType = 'stable-codecs-sync'; break }
          'dev-codecs-nosync'    { $ValidType = 'dev-codecs-nosync'; break }
          'stable-codecs-nosync' { $ValidType = 'stable-codecs-nosync'; break }
          'ungoogled-chromium'   { $ValidType = 'ungoogled-chromium'; break }
          default                { $NotValid = $true; $ValidType = 'dev-codecs-sync' }
       }
       if ($NotValid) {
          $msgtext = "The value '" + $UserArguments['Type'] + "' is not a Chromium build that chrlauncher recognizes." +
                      "`nFalling back to use the default, unofficial development builds with codecs."
          Write-Warning $msgtext
       } else {
          $INIfile = Join-Path (Split-Path $target) 'chrlauncher.ini'
          (Get-Content $INIfile) -replace "^(ChromiumType=).*$","`$1$ValidType" | Set-Content $INIfile
          $msgtext = "chrlauncher will install/update/launch the '$ValidType' Chromium build."
          Write-Host $msgtext -ForegroundColor Cyan
       }
    }
    
    
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop'  # stop on all errors
    
    # If ChrLauncher was made the default browser, turn that off
    if (Test-Path 'HKLM:\Software\Clients\StartMenuInternet\chrlauncher') {
    $version = (get-childitem -filter "chrlauncher*" | 
                   Where-Object {$_.psiscontainer} | 
                   ForEach-Object {[version]($_.name -replace 'chrlauncher','')} |
                   Sort-Object)[-1]
    $InstallDir = join-path $env:ChocolateyPackageFolder "chrlauncher$($version.tostring())"
    $BitLevel = Get-ProcessorBits
       Write-Debug 'Removing registry keys that set chrlauncher as the default browser.'
       $Regfile = Join-Path $InstallDir "$BitLevel\RegistryCleaner.reg"
       regedit /s $Regfile
    }
    
    $shortcut = Join-Path ([System.Environment]::GetFolderPath('Desktop')) 'Chromium Launcher.lnk'
     
    if ([System.IO.File]::Exists($shortcut)) {
        Write-Debug 'Found the desktop shortcut. Deleting it...'
        [System.IO.File]::Delete($shortcut)
    }
    
    
  • tools\chrlauncher-2.4.3-bin.zip Show
    md5: 8C48D62291C334A905AABCF41457244F | sha1: F5AE0F5467CA0133DD1E9487F9E6250C74E6A2A2 | sha256: 3E76E3071EAAF042B7373603FAC96118205ACAD59D8E2A4011A423263ECC2998 | sha512: 798C5D365BFA6DA9A5F8AFE549D49D13685FCA4AB3C5FEFEF3B1709623C5722106E67BE175FDB1C041DD5B7CDBC7971E16D1EA0E5235F72EFE0006ABF134D83B
  • tools\LICENSE.txt Show
    Source:  https://github.com/henrypp/chrlauncher/blob/master/LICENSE
    -------------------------------------
    
    Copyright (c) 2015-2017, Henry++.
    
    Permission is hereby granted, free of charge, to any person obtaining
    a copy of this software and associated documentation files (the
    "Software"), to deal in the Software without restriction, including
    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:
    
    The above copyright notice and this permission notice shall be included
    in all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • tools\VERIFICATION.txt Show
    VERIFICATION
    Verification is intended to assist the Chocolatey moderators and community
    in verifying that this package's contents are trustworthy.
    
    Direct download: 
    Version  : 2.4.3
    URL      : https://github.com/henrypp/chrlauncher/releases/download/v.2.4.3/chrlauncher-2.4.3-bin.zip
    Checksum : 3E76E3071EAAF042B7373603FAC96118205ACAD59D8E2A4011A423263ECC2998
    
    An independent Checksum is in this file:
    https://github.com/henrypp/chrlauncher/releases/download/v.2.4.3/chrlauncher-2.4.3.sha256
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Henry++

Copyright

Copyright (c) 2016, Henry++

Tags

Release Notes

https://github.com/henrypp/chrlauncher/blob/master/CHANGELOG.md

Version History

Version Downloads Last updated Status
chrlauncher (portable) 2.4.1 331 Saturday, August 5, 2017 approved
chrlauncher (portable) 2.3 311 Tuesday, February 14, 2017 approved
chrlauncher (portable) 2.2.0.20170208 134 Wednesday, February 8, 2017 approved
chrlauncher (portable) 2.2 154 Monday, February 6, 2017 approved
chrlauncher (portable) 1.9.4 212 Tuesday, November 15, 2016 approved
chrlauncher (portable) 1.9.1 237 Tuesday, May 10, 2016 approved

Discussion for the chrlauncher (portable) Package

Ground rules:

  • This discussion is only about chrlauncher (portable) and the chrlauncher (portable) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or chrlauncher (portable), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok