Delete Install.ps1

This commit is contained in:
Serghei Cebotari 2023-12-12 23:50:09 +03:00
parent 3043756014
commit 61f679f52e

View File

@ -1,14 +0,0 @@
$object = Invoke-WebRequest -Uri "https://gitea.cebotari.ru/api/v1/repos/chebser/RhSolutions-AddIn/releases/latest" | ConvertFrom-Json
$download_link = $object.assets[1].browser_download_url
Invoke-WebRequest -Uri $download_link -OutFile "$env:appdata\Microsoft\AddIns\RhSolutions-AddIn-packed.xll"
$excel = New-Object -ComObject Excel.Application
foreach ($addin in $excel.AddIns2)
{
$title = $addin.Title
if ($title -eq 'RhSolutions Add-In')
{
$addin.Installed = $true
}
}
$excel.Quit()