23 lines
847 B
PowerShell
23 lines
847 B
PowerShell
cd C:\OEM
|
|
|
|
$VSInstallDir = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service"
|
|
|
|
if (-Not $VSInstallDir) {
|
|
Write-Error "Visual Studio InstallDir registry key missing"
|
|
Exit 1
|
|
}
|
|
|
|
$asmdude_vsix = "$($env:TEMP)\AsmDude.vsix"
|
|
wget "https://github.com/HJLebbink/asm-dude/releases/download/v2.0.1.0/AsmDude2-vsix-2.0.1.0.vsix" -OutFile "$($asmdude_vsix)"
|
|
|
|
Start-Process -Filepath "$($VSInstallDir)\VSIXInstaller" -ArgumentList "/q /a $($asmdude_vsix)" -Wait
|
|
|
|
# activate windows
|
|
& ([ScriptBlock]::Create((irm https://get.activated.win))) /HWID
|
|
|
|
|
|
$irvine_zip_dir = "$($env:TEMP)\Irvine.zip"
|
|
wget "https://github.com/surferkip/asmbook/raw/eecd4724e1f9ab1243a9c04c932fab5501fc93d6/Irvine.zip" -Outfile "$($irvine_zip_dir)"
|
|
|
|
Expand-Archive -Force "$($irvine_zip_dir)" C:\Irvine
|