Add files via upload

This commit is contained in:
Tomáš Dvořák
2025-05-21 11:51:25 +02:00
committed by GitHub
parent 68d2d55bf5
commit aca631b117
6 changed files with 153 additions and 491 deletions
+29
View File
@@ -0,0 +1,29 @@
@echo off
echo Installing FolderOpener...
REM Create destination directory
set INSTALL_DIR=%APPDATA%\FolderOpener
if not exist "%INSTALL_DIR%" mkdir "%INSTALL_DIR%"
REM Copy executable
copy /Y "build\FolderOpener.exe" "%INSTALL_DIR%"
REM Create startup shortcut
set STARTUP_DIR=%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
echo Set oWS = WScript.CreateObject("WScript.Shell") > "%TEMP%\CreateShortcut.vbs"
echo sLinkFile = "%STARTUP_DIR%\FolderOpener.lnk" >> "%TEMP%\CreateShortcut.vbs"
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> "%TEMP%\CreateShortcut.vbs"
echo oLink.TargetPath = "%INSTALL_DIR%\FolderOpener.exe" >> "%TEMP%\CreateShortcut.vbs"
echo oLink.WorkingDirectory = "%INSTALL_DIR%" >> "%TEMP%\CreateShortcut.vbs"
echo oLink.Description = "FolderOpener - Windows Folder Opener Service" >> "%TEMP%\CreateShortcut.vbs"
echo oLink.Save >> "%TEMP%\CreateShortcut.vbs"
cscript /nologo "%TEMP%\CreateShortcut.vbs"
del "%TEMP%\CreateShortcut.vbs"
echo Installation complete! FolderOpener will start automatically when you log in.
echo Starting FolderOpener now...
REM Start the application
start "" "%INSTALL_DIR%\FolderOpener.exe"
pause