Browse Source

Explain how to install an older version of ABP Studio

pull/24499/head
İsmail ÇAĞDAŞ 5 months ago
parent
commit
7002b5a510
  1. 8
      docs/en/studio/installation.md
  2. 33
      tools/abp-studio-version-switcher/switch-abp-studio-version.ps1

8
docs/en/studio/installation.md

@ -65,3 +65,11 @@ When you see the "New Version Available" window, follow these steps to upgrade A
2. A progress indicator will display the download status.
3. Once the download is complete, a new modal will appear with the "Install and Relaunch" buttons.
4. Click on the "Install and Relaunch" button to complete the installation process.
## Installing a Specific Version
If you want to install an older version of ABP Studio, you can download [Abp Studio Version Switcher](https://github.com/abpframework/abp/tree/dev/tools/abp-studio-version-switcher/abp-studio-version-switcher.ps1) script and run it as shown below;
```bash
./switch-abp-studio-version.ps1 2.0.0
```

33
tools/abp-studio-version-switcher/switch-abp-studio-version.ps1

@ -0,0 +1,33 @@
param (
[string]$version = "0.7.6",
[string]$channel = "beta"
)
$installdir = "$env:LOCALAPPDATA\abp-studio\"
Write-Host "----------------------------------------"
Write-Host "Switching to ABP Studio version $version on channel $channel..."
Write-Host "----------------------------------------"
Write-Host "Installing to $installdir"
$url = "https://abp.io/api/abp-studio/download/r/windows/abp-studio-$version-$channel-full.nupkg"
$output = "abp-studio-$version-$channel-full.nupkg"
$outputPath = "$installdir\packages\$output"
if (Test-Path $outputPath) {
Write-Host "File $output already exists. Skipping download."
} else {
Write-Host "Downloading $url to $outputPath"
Invoke-WebRequest -Uri $url -OutFile $outputPath
}
Write-Host "----------------------------------------"
$installdirUpdate = "$installdir\Update.exe"
Write-Host "Running $installdirUpdate apply --package $outputPath"
Invoke-Expression "$installdirUpdate apply --package $outputPath"
Write-Host "----------------------------------------"
Write-Host "ABP Studio version $version on channel $channel installed successfully."
Write-Host "----------------------------------------"
Loading…
Cancel
Save