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

Recuva File Recovery (Portable)

1.52.1086

Package test results are passing.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

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 by moderator ferventcoder on 6/3/2015.

Recuva (portable) recovers files deleted from your Windows computer, Recycle Bin, digital camera card, or MP3 player.

To install Recuva File Recovery (Portable), run the following command from the command line or from PowerShell:

C:\> choco install recuva.portable

To upgrade Recuva File Recovery (Portable), run the following command from the command line or from PowerShell:

C:\> choco upgrade recuva.portable

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $packageName      = 'recuva.portable' # nuget ID
    $url              = 'http://www.piriform.com/recuva/download/portable/downloadfile' # download url
    $shortcutLocation = 'Chocolatey'
    $shortcutDescription = 'Recuva File Recovery'
    # if we could get to the command line options, we could set this properly 
    [bool]$forceX86 = $false
    
    $appBase             = Split-Path -Parent `
                                      -Path (Split-Path -Parent $MyInvocation.MyCommand.Definition)
    $installlocation     = Join-Path -Path $appBase -ChildPath 'App'
    $shortcutRegistry    = Join-Path -Path $appBase -ChildPath 'shortcuts.txt'
    Install-ChocolateyZipPackage $packageName $url $installlocation
    
    $bitness = Get-ProcessorBits
    
    Get-ChildItem -name $installlocation -filter '*.exe' `
    | ForEach-Object {
        [System.IO.FileInfo]$exe = Join-Path -Path $installlocation -ChildPath $_
        [bool]$publish = $false
        [string]$shortcutName=''
        if ($exe.BaseName -like '*64')
        {
          $shortcutName = 'Recuva (64bit).lnk'
          # we got the 64 bit executable
          $publish = $bitness -eq 64
        }
        else
        {
          # we got the 32-bit executable
          $shortcutName = 'Recuva.lnk'
          $publish = $bitness -eq 32
        }
        
        if ($publish)
        {
          # Inform chocolatey that this is exe has gui
          echo '' >"$($exe.FullName).gui"
          
          ## install a shortcut to the start menu to make this app discoverable
          [string]$shortcutFolder = Join-Path -Path "$($env:APPDATA)\Microsoft\Windows\Start Menu\Programs" `
                                              -ChildPath $shortcutLocation 
          [string]$shortcut       = Join-Path -Path $shortcutFolder `
                                              -ChildPath $shortcutName
          # register shortcut for removal on uninstall
          Out-File -InputObject $shortcut `
                   -Append `
                   -FilePath $shortcutRegistry
          if (![System.IO.Directory]::Exists( $shortcutFolder))
          {
            [System.IO.Directory]::CreateDirectory($shortcutFolder) >$null
          }
          Install-ChocolateyShortcut -ShortcutFilePath $shortcut `
                                     -Targetpath $exe.FullName `
                                     -WorkingDirectory $exe.DirectoryName `
                                     -Description $shortcutDescription
        }
        else
        {
          # ignore executable if is not for current platform
          echo '' >"$($exe.FullName).ignore"
        }
      }
  • tools\chocolateyUninstall.ps1 Show
    $appBase          = Split-Path -Parent `
                                   -Path (Split-Path -Parent $MyInvocation.MyCommand.Definition)
    $installlocation  = Join-Path -Path $appBase -ChildPath 'App'
    $shortcutRegistry = Join-Path -Path $appBase -ChildPath 'shortcuts.txt'
    
    Get-Content -LiteralPath $shortcutRegistry -ErrorAction:SilentlyContinue `
    | Where-Object { -not [string]::IsNullOrEmpty($_) } `
    | ForEach-Object {
        Write-Host "Removing Shortcut: $_"
        Remove-Item -LiteralPath $_ -ErrorAction:SilentlyContinue
      }
      
    Write-Host "Cleaning up $appBase ..."
    Remove-Item -Force `
                -Recurse `
                -Exclude '*.nupkg','*install.ps1' `
                -LiteralPath $appBase

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

Package Maintainer(s)

Software Author(s)

  • Piriform

Copyright

© Copyright 2005-2015 Piriform Ltd - All rights reserved

Tags

Version History

Version Downloads Last updated Status
Recuva File Recovery (Portable) 1.51.1063 229 Wednesday, March 4, 2015 approved

Discussion for the Recuva File Recovery (Portable) Package

Ground rules:

  • This discussion is only about Recuva File Recovery (Portable) and the Recuva File Recovery (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 Recuva File Recovery (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