aboutsummaryrefslogtreecommitdiff
path: root/Install.ps1
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2024-01-21 15:08:51 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2024-01-21 15:08:51 +0300
commitf0fca06beb661b17583eb8259c6943f27f04d87a (patch)
treeecf2af4901103f0c9518e5d5c7a1a780ca7f092c /Install.ps1
parented47fd38f652eaa228ca9c66b36d156371af0227 (diff)
parente73c97e1f826697fc0d7236f4a2b109d87716249 (diff)
Merge branch 'master' of https://gitea.cebotari.ru/chebser/RhSolutions-AddIn
Diffstat (limited to 'Install.ps1')
-rw-r--r--Install.ps114
1 files changed, 0 insertions, 14 deletions
diff --git a/Install.ps1 b/Install.ps1
deleted file mode 100644
index edf89c2..0000000
--- a/Install.ps1
+++ /dev/null
@@ -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() \ No newline at end of file