Skip to content

Commit f47ff6d

Browse files
committed
fix: uninstaller now removes .bat shortcut form desktop. Version to fetch updated to 1.0.1
1 parent 3e25a41 commit f47ff6d

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Setup/setup_backend.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# =============================================================================
1414

1515
$INSTALL_DIR = "C:\Program Files\Speech-to-Cobot-Backend"
16-
$RELEASE_TAG = "v1.0.0"
16+
$RELEASE_TAG = "v1.0.1"
1717
$ZIP_URL = "https://github.com/Meisdy/Speech-to-Code-Generation-for-Collaborative-Robots/releases/download/$RELEASE_TAG/stcgcr-backend.zip"
1818
$ZIP_PATH = "C:\Windows\Temp\stcgcr-backend.zip"
1919
$EXTRACT_PATH = "C:\Windows\Temp\stcgcr-backend-extract"

Setup/setup_frontend.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# =============================================================================
1616

1717
$INSTALL_DIR = "C:\Program Files\Speech-to-Cobot"
18-
$RELEASE_TAG = "v1.0.0"
18+
$RELEASE_TAG = "v1.0.1"
1919
$ZIP_URL = "https://github.com/Meisdy/Speech-to-Code-Generation-for-Collaborative-Robots/releases/download/$RELEASE_TAG/stcgcr-frontend.zip"
2020
$ZIP_PATH = "C:\Windows\Temp\stcgcr-frontend.zip"
2121
$EXTRACT_PATH = "C:\Windows\Temp\stcgcr-frontend-extract"

Setup/uninstall_backend.ps1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#
1111
# What this removes:
1212
# - C:\Program Files\Speech-to-Cobot-Backend\ (install directory)
13+
# - Desktop shortcut
1314
# - uv package and Python cache (optional — prompted)
1415
#
1516
# What this does NOT remove:
@@ -67,6 +68,17 @@ if (Test-Path $INSTALL_DIR) {
6768
Write-Warn "$INSTALL_DIR not found — already removed or never installed"
6869
}
6970

71+
# --- Desktop shortcut ---------------------------------------------------------
72+
73+
Write-Step "Removing Desktop shortcut"
74+
$shortcut = "$env:USERPROFILE\Desktop\Speech-to-Cobot Backend.lnk"
75+
if (Test-Path $shortcut) {
76+
Remove-Item -Force $shortcut
77+
Write-OK "Removed $shortcut"
78+
} else {
79+
Write-Warn "Shortcut not found — already removed or never created"
80+
}
81+
7082
# --- uv (optional) ------------------------------------------------------------
7183
# Only prompt if frontend is not installed — removing uv affects both.
7284

@@ -105,4 +117,4 @@ if ($frontendInstalled) {
105117
Write-Host ""
106118
Write-Host "=====================================================" -ForegroundColor Green
107119
Write-Host " Uninstall complete." -ForegroundColor Green
108-
Write-Host "=====================================================" -ForegroundColor Green
120+
Write-Host "=====================================================" -ForegroundColor Green

0 commit comments

Comments
 (0)