From 7002b5a510ed970d7afe0ca27617555cba2194c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20=C3=87A=C4=9EDA=C5=9E?= Date: Mon, 29 Dec 2025 16:52:52 +0300 Subject: [PATCH] Explain how to install an older version of ABP Studio --- docs/en/studio/installation.md | 8 +++++ .../switch-abp-studio-version.ps1 | 33 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 tools/abp-studio-version-switcher/switch-abp-studio-version.ps1 diff --git a/docs/en/studio/installation.md b/docs/en/studio/installation.md index 6f12953f99..6b051b4b5c 100644 --- a/docs/en/studio/installation.md +++ b/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 +``` \ No newline at end of file diff --git a/tools/abp-studio-version-switcher/switch-abp-studio-version.ps1 b/tools/abp-studio-version-switcher/switch-abp-studio-version.ps1 new file mode 100644 index 0000000000..a5e1308245 --- /dev/null +++ b/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 "----------------------------------------" \ No newline at end of file