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..40d28012b 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 +REM 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..8067f9130 --- /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 +REM cmd /k echo "keep open" \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/launch-scripts-001-launch-scripts.json b/Projects/Superalgos/Schemas/Docs-Topics/launch-scripts-001-launch-scripts.json index 017c7dc88..fdafba90b 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/launch-scripts-001-launch-scripts.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/launch-scripts-001-launch-scripts.json @@ -99,8 +99,8 @@ }, { "style": "Text", - "text": "Currently this script only places a shortcut on the user's desktop. Revision in progress to also place shortcut in the start menu.", - "updated": 1620053366379 + "text": "This script places shortcuts within the user's start menu and desktop. The start menu shortcut is also searchable using the start menu search bar.", + "updated": 1620789169171 }, { "style": "Subtitle", @@ -193,18 +193,27 @@ }, { "style": "Title", - "text": "Uninstall Shortcut Scripts", - "updated": 1620053489270 + "text": "Uninstall Shortcuts", + "updated": 1620789208012 }, { - "style": "Important", - "text": "No scripts started yet. Manual deletion required.", - "updated": 1620053525531 + "style": "Subtitle", + "text": "Windows", + "updated": 1620789368194 }, { - "style": "Title", - "text": "Manually Unistall Shortcuts", - "updated": 1620506058024 + "style": "Text", + "text": "Open a file browser and navigate to the Superalgos directory." + }, + { + "style": "Text", + "text": "Under the folder titled Launch-Scripts double-click the script:", + "updated": 1620789459938 + }, + { + "style": "Json", + "text": "uninstall-shortcut-windows.bat", + "updated": 1620789508304 }, { "style": "Subtitle", diff --git a/README.md b/README.md index c0e25c436..c75f231fd 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ Open a file browser and navigate to the Superalgos Directory. Under the folder titled `Launch-Scripts` double-click the script `create-shortcut-windows.bat`. -You will see a shortcut added to your desktop. You can use it to launch Superalgos like any other program on your computer. +After running this script there will be two shortcuts added. One to your start menu and one to your desktop. You can now lauch Superalgos from any of these shortcuts, or search `Superalgos` in the start menu search bar. ## For **Ubuntu** Users @@ -164,7 +164,7 @@ cd Superalgos/Launch-Scripts bash create-shortcut-ubuntu.sh ``` -After running these commands there will be two shortcuts added. One to your launcher and one to your desktop. The launcher shortcut will work out of the box. The desktop shortcut, however, requires a few additional steps to set up.The following section will walk you through these steps. +After running these commands there will be two shortcuts added. One to your launcher and one to your desktop. The launcher shortcut will work out of the box. The desktop shortcut, however, requires a few additional steps to set up. The following section will walk you through these steps. **A.** Enable Desktop Shortcut @@ -241,7 +241,9 @@ If you have installed shortcuts for Superalgos you can remove them as follows: ## For **Windows** Users -Right-click desktop shortcut and select delete. +Open a file browser and navigate to the Superalgos directory. + +Under the folder titled `Launch-Scripts` double-click the script `uninstall-shortcut-windows.bat`. ## For **Ubuntu** Users