From c3632b79dbf900a932554d0bf2cf4257ffb45f34 Mon Sep 17 00:00:00 2001 From: Barunes Padhy <148685909+barunespadhy@users.noreply.github.com> Date: Wed, 19 Jun 2024 14:56:30 +0300 Subject: [PATCH] Update rangolio_installer.bat --- rangolio_installer.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rangolio_installer.bat b/rangolio_installer.bat index 9fdff81..3c41c83 100644 --- a/rangolio_installer.bat +++ b/rangolio_installer.bat @@ -53,11 +53,11 @@ python manage.py migrate REM Create a desktop shortcut for managing content echo Creating desktop shortcut... -powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:USERPROFILE + '\Desktop\Rangolio - Manage content.lnk'); $s.TargetPath = 'powershell.exe'; $s.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command \"cd ''%CD%''; .env\\Scripts\\activate; python manage.py runserver; Start-Process http://127.0.0.1:8000/\"'; $s.IconLocation = '%CD%\icons\256x256.png'; $s.Save()" +powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:USERPROFILE + '\Desktop\Rangolio - Manage content.lnk'); $s.TargetPath = 'powershell.exe'; $s.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command \"cd ''%CD%''; .env\\Scripts\\activate; python manage.py runserver; Start-Process http://127.0.0.1:8000/\"'; $s.IconLocation = '%CD%\icons\ico\rangolio.ico'; $s.Save()" REM Create a start menu entry for managing content echo Creating start menu entry... -powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:APPDATA + '\Microsoft\Windows\Start Menu\Programs\Rangolio - Manage content.lnk'); $s.TargetPath = 'powershell.exe'; $s.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command \"cd ''%CD%''; .env\\Scripts\\activate; python manage.py runserver; Start-Process http://127.0.0.1:8000/\"'; $s.IconLocation = '%CD%\icons\256x256.png'; $s.Save()" +powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut($env:APPDATA + '\Microsoft\Windows\Start Menu\Programs\Rangolio - Manage content.lnk'); $s.TargetPath = 'powershell.exe'; $s.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command \"cd ''%CD%''; .env\\Scripts\\activate; python manage.py runserver; Start-Process http://127.0.0.1:8000/\"'; $s.IconLocation = '%CD%\icons\ico\rangolio.ico'; $s.Save()" echo Installation completed successfully.