From 0675467ca19d06fdeae592914bb71d2a2216b679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bere=C5=BCa=C5=84ski?= Date: Tue, 27 Mar 2018 00:52:28 +0200 Subject: [PATCH] remove skype - migrated to chocolatey/chocolatey-coreteampackages --- automatic/skype/skype.nuspec | 22 -------- automatic/skype/tools/chocolateyInstall.ps1 | 50 ------------------- automatic/skype/tools/chocolateyUninstall.ps1 | 17 ------- ketarin/skype.ketarin.xml | 50 ------------------- 4 files changed, 139 deletions(-) delete mode 100644 automatic/skype/skype.nuspec delete mode 100644 automatic/skype/tools/chocolateyInstall.ps1 delete mode 100644 automatic/skype/tools/chocolateyUninstall.ps1 delete mode 100644 ketarin/skype.ketarin.xml diff --git a/automatic/skype/skype.nuspec b/automatic/skype/skype.nuspec deleted file mode 100644 index c2434f006..000000000 --- a/automatic/skype/skype.nuspec +++ /dev/null @@ -1,22 +0,0 @@ - - - - skype - Skype - {{PackageVersion}} - Skype - Rob Reynolds - Skype - VOIP - Skype - Install Skype, add your friends as contacts, then call, video call and instant message with them for free. Call people who aren't on Skype too, at really low rates. - http://www.skype.com - https://github.com/ferventcoder/chocolatey-packages/ - Skype VOIP voice over ip video conferencing admin - http://www.skype.com/intl/en-us/legal/eula/ - false - https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/skype.png - - - - - - diff --git a/automatic/skype/tools/chocolateyInstall.ps1 b/automatic/skype/tools/chocolateyInstall.ps1 deleted file mode 100644 index 6c64dcfaf..000000000 --- a/automatic/skype/tools/chocolateyInstall.ps1 +++ /dev/null @@ -1,50 +0,0 @@ -#Install-ChocolateyPackage 'skype' 'exe' '/SILENT /nogoogle /noie /nodesktopicon' 'http://download.skype.com/3694814915aaa38100bfa0933f948e65/partner/59/SkypeSetup.exe' -#Install-ChocolateyPackage 'skype' 'exe' '/SILENT /nogoogle /noie /nodesktopicon' '{{DownloadUrl}}' -#Install-ChocolateyPackage 'skype' 'exe' '/SILENT /nogoogle /noie /nodesktopicon' 'http://download.skype.com/SkypeSetupFull.exe' - - -function isInstalled() { - return Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -match 'Skype\u2122 [\d\.]+$'} -} - -$packageName = 'skype' -$fileType = 'msi' -# http://community.skype.com/t5/Windows-archive/Unattended-install/td-p/184628s -$silentArgs = '/qn /norestart STARTSKYPE=FALSE TRANSFORMS=:RemoveDesktopShortcut.mst TRANSFORMS=:RemoveStartup.mst' - -$url = '{{DownloadUrl}}' - -try { - - $appInstalled = isInstalled - - if ($appInstalled) { - # If Skype (in any version) is already installed on the computer, remove it first, otherwise the - # installation of Skype will fail with an error. - $msiArgs = $('/x' + $appInstalled.IdentifyingNumber + ' ' + $silentArgs) - Write-Host "Uninstalling previous version of Skype, otherwise installing the new version won’t work." - Start-ChocolateyProcessAsAdmin $msiArgs 'msiexec' - - # This loop checks every 5 seconds if Skype is already uninstalled. - # Then it proceeds with the download and installation of the Skype - # version specified in the package. - do { - Start-Sleep -Seconds 5 - $i += 1 - - # Break if too much time passed - if ($i -gt 12) { - Write-Error 'Could not uninstall the previous version of Skype.' - break - } - - } until (-not (isInstalled)) - } - - Install-ChocolateyPackage $packageName $fileType $silentArgs $url - -} catch { - Write-ChocolateyFailure $packageName $($_.Exception.Message) - throw -} - diff --git a/automatic/skype/tools/chocolateyUninstall.ps1 b/automatic/skype/tools/chocolateyUninstall.ps1 deleted file mode 100644 index 26354507f..000000000 --- a/automatic/skype/tools/chocolateyUninstall.ps1 +++ /dev/null @@ -1,17 +0,0 @@ -$processor = Get-WmiObject Win32_Processor -$is64bit = $processor.AddressWidth -eq 64 - -if ($is64bit) { - $programUninstallEntryName = "Skype" - $uninstallString = (Get-ItemProperty HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select DisplayName, UninstallString | Where-Object {$_.DisplayName -like "$programUninstallEntryName*"}).UninstallString -} else { - $programUninstallEntryName = "Skype" - $uninstallString = (Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | Select DisplayName, UninstallString | Where-Object {$_.DisplayName -like "$programUninstallEntryName*"}).UninstallString -} # get the uninstall string of the installed Skype version from the registry - -$uninstallString = "$uninstallString" -replace '[{]', '`{' # adding escape character to the braces -$uninstallString = "$uninstallString" -replace '[}]', '`} /passive /norestart' # to work properly with the Invoke-Expression command, add silent arguments - -if ($uninstallString -ne "") { - Invoke-Expression "$uninstallString" # start uninstaller -} diff --git a/ketarin/skype.ketarin.xml b/ketarin/skype.ketarin.xml deleted file mode 100644 index 90ad0be15..000000000 --- a/ketarin/skype.ketarin.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19 - - 24993792 - 2013-11-14T18:12:39+01:00 - false - Default - - false - - true - false - false - - - - - - version - - - - false - RegularExpression - (?<="Skype )[\d\.]+(?=") - http://filehippo.com/download_skype/ - version - - - - - - - Batch - Batch - - FixedUrl - C:\Chocolatey\_work\SkypeSetup_6.11.0.102.msi - true - true - - 2014-01-05T01:42:47.7813959+01:00 - C:\Chocolatey\_work\ - https://download.skype.com/msi/SkypeSetup_{version}.msi - skype - - \ No newline at end of file