diff --git a/automatic/mousewithoutborders/README.md b/automatic/mousewithoutborders/README.md new file mode 100644 index 000000000..2e15cdb9a --- /dev/null +++ b/automatic/mousewithoutborders/README.md @@ -0,0 +1,28 @@ +# [Mouse Without Borders](https://chocolatey.org/packages/mousewithoutborders) + +[![Software license](https://img.shields.io/badge/License-proprietary-lightgrey)](https://github.com/dgalbraith/chocolatey-packages/blob/master/automatic/mousewithoutborders/legal/LICENSE.pdf) +[![Maintenance status](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/dgalbraith/chocolatey-packages/graphs/commit-activity) +[![AppVeyor build](https://img.shields.io/appveyor/ci/dgalbraith/chocolatey-packages)](https://ci.appveyor.com/project/dgalbraith/chocolatey-packages) +[![Software version](https://img.shields.io/badge/version-2.1.8.105-blue)](https://www.microsoft.com/download/details.aspx?id=35460) +[![Chocolatey package version](https://img.shields.io/chocolatey/v/mousewithoutborders?label=Chocolatey)](https://chocolatey.org/packages/mousewithoutborders) + +[Mouse Without Borders](http://aka.ms/mm) is a product that makes you the captain of your computer fleet by allowing +you to control up to four computers from a single mouse and keyboard. This means that with Mouse without Borders you +can copy text or drag and drop files across computers. + +## Features + +* Control multiple computers seamlessly using a single mouse and keyboard +* Peer-to-peer system: Any machine can be a master machine +* Multiple mode: Keyboard/mouse repeat in all machines +* Shared clipboard: copy text/image/screenshot from one machine and paste to other machines +* Drag/drop file across machines +* Selective screen capture (**Ctrl+Shift+S**) +* Support on logon/UAC desktop + +![screenshot](https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@172818799a8c19127ae166c7b6168b0f57d256df/automatic/mousewithoutborders/screenshot.png) + +## Notes + +* This package is automatically updated using the [Chocolatey Automatic Package Update Model (AU)](https://github.com/majkinetor/au/blob/master/README.md). +If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly. diff --git a/automatic/mousewithoutborders/legal/LICENSE.pdf b/automatic/mousewithoutborders/legal/LICENSE.pdf new file mode 100644 index 000000000..5c3ed03af Binary files /dev/null and b/automatic/mousewithoutborders/legal/LICENSE.pdf differ diff --git a/automatic/mousewithoutborders/mousewithoutborders.nuspec b/automatic/mousewithoutborders/mousewithoutborders.nuspec index 5c3718945..fbe024bfc 100644 --- a/automatic/mousewithoutborders/mousewithoutborders.nuspec +++ b/automatic/mousewithoutborders/mousewithoutborders.nuspec @@ -1,24 +1,51 @@ - + + mousewithoutborders 2.1.8.105 + https://github.com/dgalbraith/chocolatey-packages/tree/master/automatic/mousewithoutborders + dgalbraith Mouse Without Borders - Microsoft Garage,Truong Do - Anthony Mastrean - http://www.microsoft.com/en-us/download/details.aspx?id=35460 - https://cdn.rawgit.com/AnthonyMastrean/chocolateypackages/98c0ba0689a3cdbfff5cf4298d9ef995018af522/public/icons/mousewithoutborders.png + Truong Do, Mouse Without Borders Contributors, Microsoft Garage, + https://www.microsoft.com/en-us/garage/profiles/mouse-without-borders + https://cdn.jsdelivr.net/gh/dgalbraith/chocolatey-packages@172818799a8c19127ae166c7b6168b0f57d256df/icons/mousewithoutborders.png + Copyright Microsoft Corporation + https://github.com/dgalbraith/chocolatey-packages/blob/master/automatic/mousewithoutborders/legal/LICENSE.pdf false + http://aka.ms/mm http://aka.ms/mm http://aka.ms/mm - https://github.com/AnthonyMastrean/chocolateypackages/ - -New in this release: Bug fixes and improvements. - - Mouse without Borders is a project that allows you to reach across your PCs as if they were part of one single desktop. - -Mouse without Borders is a product that makes you the captain of your computer fleet by allowing you to control up to four computers from a single mouse and keyboard. This means that with Mouse without Borders you can copy text or drag and drop files across computers. - - microsoft garage mouse monitor + mouse keyboard microsoft-garage mouse-without-borders microsoft + Control up to 4 computers using a single mouse and keyboard + + https://www.microsoft.com/download/details.aspx?id=35460 + + + + diff --git a/automatic/mousewithoutborders/screenshot.png b/automatic/mousewithoutborders/screenshot.png new file mode 100644 index 000000000..6d9935e3f Binary files /dev/null and b/automatic/mousewithoutborders/screenshot.png differ diff --git a/automatic/mousewithoutborders/tools/.skipAutoUninstall b/automatic/mousewithoutborders/tools/.skipAutoUninstall new file mode 100644 index 000000000..e69de29bb diff --git a/automatic/mousewithoutborders/tools/chocolateyBeforeModify.ps1 b/automatic/mousewithoutborders/tools/chocolateyBeforeModify.ps1 index 9998f73e2..fa291ceda 100644 --- a/automatic/mousewithoutborders/tools/chocolateyBeforeModify.ps1 +++ b/automatic/mousewithoutborders/tools/chocolateyBeforeModify.ps1 @@ -1,8 +1,13 @@ +$ErrorActionPreference = 'Stop' + # The installer cannot overwrite the current or previous version, so we have # to do this here, unfortunately. -# -Uninstall-ChocolateyPackage ` - -PackageName 'mousewithoutborders' ` - -FileType 'MSI' ` - -ValidExitcodes 0, 1605 ` - -SilentArgs '{D3BC954F-D661-474C-B367-30EB6E56542E} /QN' + +$packageArgs = @{ + packageName = $env:ChocolateyPackageName + fileType = 'msi' + silentArgs = '{D3BC954F-D661-474C-B367-30EB6E56542E} /quiet /qn /norestart' + validExitCodes = @(0, 1605) +} + +Uninstall-ChocolateyPackage @packageArgs | out-null diff --git a/automatic/mousewithoutborders/tools/chocolateyInstall.ps1 b/automatic/mousewithoutborders/tools/chocolateyInstall.ps1 index 76eeceea4..5761fa210 100644 --- a/automatic/mousewithoutborders/tools/chocolateyInstall.ps1 +++ b/automatic/mousewithoutborders/tools/chocolateyInstall.ps1 @@ -1,7 +1,13 @@ -Install-ChocolateyPackage ` - -PackageName 'mousewithoutborders' ` - -Url 'https://download.microsoft.com/download/6/5/8/658AFC4C-DC02-4CB8-839D-10253E89FFF7/MouseWithoutBordersSetup.msi' ` - -Checksum 'c73d373275519de5545824ff20e886e4c2d76770cb77f8b685c0b52a1c07e97d' ` - -ChecksumType 'SHA256' ` - -FileType 'MSI' ` - -SilentArgs '/QN' +$ErrorActionPreference = 'Stop' + +$packageArgs = @{ + PackageName = $env:ChocolateyPackageName + FileType = 'msi' + Url = 'https://download.microsoft.com/download/6/5/8/658AFC4C-DC02-4CB8-839D-10253E89FFF7/MouseWithoutBordersSetup.msi' + Checksum = 'c73d373275519de5545824ff20e886e4c2d76770cb77f8b685c0b52a1c07e97d' + ChecksumType = 'sha256' + SilentArgs = '/quiet /qn /norestart' + ValidExitCodes = @(0, 1605) +} + +Install-ChocolateyPackage @packageArgs diff --git a/automatic/mousewithoutborders/tools/chocolateyUninstall.ps1 b/automatic/mousewithoutborders/tools/chocolateyUninstall.ps1 deleted file mode 100644 index 7b0c235b3..000000000 --- a/automatic/mousewithoutborders/tools/chocolateyUninstall.ps1 +++ /dev/null @@ -1,5 +0,0 @@ -Uninstall-ChocolateyPackage ` - -PackageName 'mousewithoutborders' ` - -FileType 'MSI' ` - -ValidExitcodes 0, 1605 ` - -SilentArgs '{D3BC954F-D661-474C-B367-30EB6E56542E} /QN' diff --git a/automatic/mousewithoutborders/update.ps1 b/automatic/mousewithoutborders/update.ps1 new file mode 100644 index 000000000..63225717b --- /dev/null +++ b/automatic/mousewithoutborders/update.ps1 @@ -0,0 +1,46 @@ +import-module au + +$base = 'https://www.microsoft.com/download/' +$productId = '35460' + +$detail = "${base}details.aspx?id=${productId}" +$download = "${base}confirmation.aspx?id=${productId}" + +$reChecksum = "(?<=Checksum\s*=\s*')((?([^']+)))" +$reInstaller = '(?((?<=p>)(.+\.msi)))' +$reUrl = '(?(h.+\.msi))' +$reVersion = '(?([\d]+\.[\d]+\.[\d]+\.[\d]+))' + +function global:au_BeforeUpdate { + $Latest.Checksum = Get-RemoteChecksum $Latest.Url +} + +function global:au_SearchReplace { + @{ + ".\README.md" = @{ + "$($reVersion)" = "$($Latest.Version)" + } + + 'tools\ChocolateyInstall.ps1' = @{ + "$($reChecksum)" = "$($Latest.Checksum)" + "$($reUrl)" = "$($Latest.Url)" + } + } +} + +function global:au_GetLatest { + $detailPage = Invoke-WebRequest -UseBasicParsing -Uri $detail + $downloadPage = Invoke-WebRequest -UseBasicParsing -Uri $download + + $version = $detailPage.Content -match $reVersion | foreach-object { $Matches.Version } + $filename = $detailPage.Content -match $reInstaller | foreach-object { $Matches.Installer} + + $url = $downloadPage.Links | where-object { $_ -match $filename } | select-object -ExpandProperty href | select-object -First 1 + + @{ + Version = $version + Url = $url + } +} + +update -ChecksumFor none -NoReadme diff --git a/icons/mousewithoutborders.png b/icons/mousewithoutborders.png index 9dfbd115f..685a7c5a5 100644 Binary files a/icons/mousewithoutborders.png and b/icons/mousewithoutborders.png differ