From c3403d9132bd0d3efc127d310c7bf61f07672828 Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 8 Mar 2021 01:48:34 +0100 Subject: [PATCH] Install.cmd for Cygwin/Windows --- cygwin/Install.cmd | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 cygwin/Install.cmd diff --git a/cygwin/Install.cmd b/cygwin/Install.cmd new file mode 100644 index 0000000..6b5a601 --- /dev/null +++ b/cygwin/Install.cmd @@ -0,0 +1,37 @@ +@echo off + +set VERSION=6.6 +echo. +echo ##################################### +echo # Welcome to ks-tools installer %VERSION% # +echo ##################################### +echo. +echo * Press ENTER to continue or Ctrl+C to exit +pause > nul +echo. +echo * Creating shortchut (%USERPROFILE%\Desktop\ks-tools.lnk) +set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%.vbs" +echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT% +echo sLinkFile = "%USERPROFILE%\Desktop\ks-tools.lnk" >> %SCRIPT% +echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT% +echo oLink.TargetPath = "%~d0%~p0\ks-tools.cmd" >> %SCRIPT% +echo oLink.WorkingDirectory = "%~d0%~p0" >> %SCRIPT% +echo oLink.IconLocation = "%~d0%~p0\prompt\ks-tools.ico" >> %SCRIPT% +echo oLink.Save >> %SCRIPT% +cscript /nologo %SCRIPT% +del %SCRIPT% +rem echo * Creating shortchut (%USERPROFILE%\Desktop\ks-tools (ZUI).lnk) +rem set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%.vbs" +rem echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT% +rem echo sLinkFile = "%USERPROFILE%\Desktop\ks-tools (ZUI).lnk" >> %SCRIPT% +rem echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT% +rem echo oLink.TargetPath = "%~d0%~p0\ks-tools-zui.cmd" >> %SCRIPT% +rem echo oLink.WorkingDirectory = "%~d0%~p0" >> %SCRIPT% +rem echo oLink.IconLocation = "%~d0%~p0\prompt\ks-tools.ico" >> %SCRIPT% +rem echo oLink.Save >> %SCRIPT% +rem cscript /nologo %SCRIPT% +rem del %SCRIPT% +echo. +echo * Shortcuts created! +echo. +pause