diff --git a/.gitignore b/.gitignore index 97e52a99b..6bc662642 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,6 @@ Projects/Superalgos/Icons/Thumbs.db *.bat !launch-windows.bat !create-shortcut-windows.bat +!uninstall-shortcut-windows.bat *.exe diff --git a/Launch-Scripts/create-shortcut-windows.bat b/Launch-Scripts/create-shortcut-windows.bat index 8074f5e72..eb9904fe1 100644 --- a/Launch-Scripts/create-shortcut-windows.bat +++ b/Launch-Scripts/create-shortcut-windows.bat @@ -1,9 +1,12 @@ set TARGET='%CD%\launch-windows.bat' set SHORTCUT='%USERPROFILE%\Desktop\Superalgos.lnk' +set STARTMENU='%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Superalgos.lnk' set ICON='%CD%\superalgos.ico' set PWS=powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile %PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%SHORTCUT%); $S.TargetPath = %Target%; $S.IconLocation = %ICON%; $S.Save()" -#Keep terminal open for debug -#cmd /k echo "keep open" \ No newline at end of file +%PWS% -Command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut(%STARTMENU%); $S.TargetPath = %Target%; $S.IconLocation = %ICON%; $S.Save()" + +REM Keep terminal open for debug +cmd /k echo "keep open" \ No newline at end of file diff --git a/Launch-Scripts/uninstall-shortcut-windows.bat b/Launch-Scripts/uninstall-shortcut-windows.bat new file mode 100644 index 000000000..448a2c0a7 --- /dev/null +++ b/Launch-Scripts/uninstall-shortcut-windows.bat @@ -0,0 +1,5 @@ +del "%USERPROFILE%\Desktop\Superalgos.lnk" +del "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Superalgos.lnk" + +REM Keep terminal open for debug +cmd /k echo "keep open" \ No newline at end of file