Notices: This section not yet converted to new layout. Download stats are rolling back out.

WiremockUI

1.0.2

Package test results are passing.

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

This package was approved by moderator flcdrg on 1/22/2018.

Wiremock UI - Tool for creating mock servers, proxies servers and proxies servers with the option to save the data traffic from an existing API or Site.

To install WiremockUI, run the following command from the command line or from PowerShell:

C:\> choco install wiremockui

To upgrade WiremockUI, run the following command from the command line or from PowerShell:

C:\> choco upgrade wiremockui

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $packageName = 'wiremockui'
    $title = 'WiremockUI'
    $exeName = 'WiremockUI.exe'
    $url = 'https://github.com/juniorgasparotto/WiremockUI/releases/download/1.0.2/WiremockUI.zip'
    $binRoot = Get-ToolsLocation
    $installPath = Join-Path $binRoot $packageName
    $oldVersionPath = Join-Path $installPath ".old"
    $checksum = '957A88FF008297170FBB5A8A41007999B98517AE47B4F326B1EFD2F4CF0AAE62'
    $checksumType = 'sha256'
    
    # Create backup of old version
    if (Test-Path $installPath) {
        Write-Host "Create backup old version"
        if (!(Test-Path $oldVersionPath)) {
            New-Item $oldVersionPath -type directory
            Get-ChildItem $installPath |
            Foreach-Object {
                if ($_.Name -ne ".old") {            
                    Move-Item $_.FullName $oldVersionPath
                }        
            }
        }
    }
    
    # Download and unzip file
    Install-ChocolateyZipPackage -PackageName $packageName `
                                 -Url $url `
                                 -UnzipLocation $installPath `
    							 -Checksum $checksum `
                                 -ChecksumType $checksumType
    
    #Create shortcut in desktop
    Write-Host "Create Desktop ShortCurt..."
    $desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))
    $desktop = Join-Path $desktop "$title.lnk"
    Write-Host $desktop
    Install-ChocolateyShortcut  -shortcutFilePath $desktop `
                                -targetPath "$installPath/$exeName" `
                                -workingDirectory $installPath
    
    #Create shortcut in start menu
    Write-Host "Create StartMenu ShortCurt..."
    $programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
    $programs = Join-Path $programs "$title.lnk"
    Write-Host $programs
    Install-ChocolateyShortcut -shortcutFilePath $programs `
                               -targetPath "$installPath/$exeName" `
                               -workingDirectory $installPath
  • tools\chocolateyuninstall.ps1 Show
    $packageName = 'wiremockui'
    $title = 'WiremockUI'
    $toolsPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
    $unPath = Join-Path $toolsPath 'Uninstall-ChocolateyPath.psm1'
    $binRoot = Get-ToolsLocation
    $installPath = Join-Path $binRoot $packageName
    
    # Remove environment path windows
    Import-Module $unPath
    
    # Remove folder
    Write-Host "Remove Folder $installPath"
    if (Test-Path $installPath) {
        Remove-Item -Path $installPath -Recurse -Force
    }
    
    # Remove shortcut in desktop
    Write-Host "Remove Desktop ShortCurt..."
    $desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))
    $desktop = Join-Path $desktop "$title.lnk"
    Write-Host $desktop
    if (Test-Path $desktop) {   
       Remove-Item -Path $desktop
    }
    
    # Remove shortcut in start menu
    Write-Host "Remove StartMenu ShortCurt..."
    $programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
    $programs = Join-Path $programs "$title.lnk"
    Write-Host $programs
    if (Test-Path $programs) {
       Remove-Item -Path $programs
    }
  • tools\Uninstall-ChocolateyPath.psm1 Show
    function Uninstall-ChocolateyPath {
    param(
      [string] $pathToUninstall,
      [System.EnvironmentVariableTarget] $pathType = [System.EnvironmentVariableTarget]::User
    )
      Write-Debug "Running 'Uninstall-ChocolateyPath' with pathToUninstall:`'$pathToUninstall`'";
    
      #get the PATH variable
      $envPath = $env:PATH
      #$envPath = [Environment]::GetEnvironmentVariable('Path', $pathType)
      if (!$envPath.ToLower().Contains($pathToUninstall.ToLower())) {
        Write-Host "PATH environment variable does not have $pathToUninstall in it."
        return
      }
    
      Write-Host "PATH environment variable has $pathToUninstall in it. Removing..."
      $actualPath = [Environment]::GetEnvironmentVariable('Path', $pathType)
    
      # escape regex metachars, match possible backslash and item separator at eol
      $pathToUninstallRegex = ($pathToUninstall -replace '([\\().])', '\$1') + '\\?(;|$)'
    
      # remove pathToUninstall from actualPath
      $actualPath = $actualPath -replace "$pathToUninstallRegex", ''
    
      if ($pathType -eq [System.EnvironmentVariableTarget]::Machine) {
        $psArgs = "[Environment]::SetEnvironmentVariable('Path',`'$actualPath`', `'$pathType`')"
        Start-ChocolateyProcessAsAdmin "$psArgs"
      } else {
        [Environment]::SetEnvironmentVariable('Path', $actualPath, $pathType)
      }
    
      # remove from path of current powershell session
      $envPSPath = $env:PATH
      $env:Path = $envPSPath -replace "$pathToUninstallRegex", ''
    }

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)

  • Glauber D. Gasparotto Junior

Tags

Version History

Version Downloads Last updated Status

Discussion for the WiremockUI Package

Ground rules:

  • This discussion is only about WiremockUI and the WiremockUI 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 WiremockUI, 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