Add scripts for all remaining apps
This commit is contained in:
parent
458c46575c
commit
198e984bcd
16 changed files with 508 additions and 3 deletions
scripts/Windows/Software/reWASD
22
scripts/Windows/Software/reWASD/Manage.ps1
Normal file
22
scripts/Windows/Software/reWASD/Manage.ps1
Normal file
|
@ -0,0 +1,22 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
Write-Host "Downloading reWASD…";
|
||||
$dir = New-TemporaryDirectory;
|
||||
$file = Start-BrowserDownload -URL "https://rewasd.com/" -ButtonSelector 'a.btn-default[href="#"]' -OutDir $dir;
|
||||
|
||||
Write-Host "Installing reWASD…";
|
||||
Start-Process -Wait -FilePath $($file.FullName) -ArgumentList "/S";
|
||||
Remove-Item -Recurse $dir;
|
||||
Remove-DesktopIcon "*reWASD*";
|
||||
};
|
||||
|
||||
# ToDo: Add restoration
|
Loading…
Add table
Add a link
Reference in a new issue