From 3b2e2c0e3b66fb0f4c2dc900be400e2915fffcdc Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Tue, 11 May 2021 21:48:03 -0500 Subject: [PATCH 1/4] Finished Windows Shortcut Scripts --- .gitignore | 1 + Launch-Scripts/create-shortcut-windows.bat | 7 +++++-- Launch-Scripts/uninstall-shortcut-windows.bat | 5 +++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Launch-Scripts/uninstall-shortcut-windows.bat 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 From 9d5d2d26718bfca440fbcc89cc4d76943ef9cfc2 Mon Sep 17 00:00:00 2001 From: B Harrell <55707292+harrellbm@users.noreply.github.com> Date: Tue, 11 May 2021 22:03:34 -0500 Subject: [PATCH 2/4] Update Readme for Windows Shortcut Scripts --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 From d2dbddce49a6518b80e36ed86542707f6fd2069a Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Tue, 11 May 2021 22:07:18 -0500 Subject: [PATCH 3/4] Comment out Debug Lines --- Launch-Scripts/create-shortcut-windows.bat | 2 +- Launch-Scripts/uninstall-shortcut-windows.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Launch-Scripts/create-shortcut-windows.bat b/Launch-Scripts/create-shortcut-windows.bat index eb9904fe1..40d28012b 100644 --- a/Launch-Scripts/create-shortcut-windows.bat +++ b/Launch-Scripts/create-shortcut-windows.bat @@ -9,4 +9,4 @@ set PWS=powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfil %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 +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 index 448a2c0a7..8067f9130 100644 --- a/Launch-Scripts/uninstall-shortcut-windows.bat +++ b/Launch-Scripts/uninstall-shortcut-windows.bat @@ -2,4 +2,4 @@ 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 +REM cmd /k echo "keep open" \ No newline at end of file From 2fc5d2f8100de3a40ee56fbf34f6f4bee0722bd0 Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Tue, 11 May 2021 22:19:24 -0500 Subject: [PATCH 4/4] Update Docs for Windows Scripts --- .../launch-scripts-001-launch-scripts.json | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) 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",