Create desktop shortcuts (for Windows)
This commit is contained in:
parent
0523193ac9
commit
e2fb3772b4
41
install.cmd
Normal file
41
install.cmd
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
echo Creating desktop shortcuts....
|
||||||
|
|
||||||
|
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%.vbs"
|
||||||
|
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
|
||||||
|
echo sLinkFile = "%USERPROFILE%\Desktop\ip2e (daemon).lnk" >> %SCRIPT%
|
||||||
|
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
|
||||||
|
echo oLink.TargetPath = "%~d0%~p0\ip2e-daemon.py" >> %SCRIPT%
|
||||||
|
echo oLink.WorkingDirectory = "%~d0%~p0" >> %SCRIPT%
|
||||||
|
echo oLink.IconLocation = "%~d0%~p0\icon\ip2e.ico" >> %SCRIPT%
|
||||||
|
echo oLink.Save >> %SCRIPT%
|
||||||
|
cscript /nologo %SCRIPT%
|
||||||
|
del %SCRIPT%
|
||||||
|
|
||||||
|
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%.vbs"
|
||||||
|
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
|
||||||
|
echo sLinkFile = "%USERPROFILE%\Desktop\ip2e (config).lnk" >> %SCRIPT%
|
||||||
|
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
|
||||||
|
echo oLink.TargetPath = "%~d0%~p0\ip2e-config.py" >> %SCRIPT%
|
||||||
|
echo oLink.WorkingDirectory = "%~d0%~p0" >> %SCRIPT%
|
||||||
|
echo oLink.IconLocation = "%~d0%~p0\icon\ip2e.ico" >> %SCRIPT%
|
||||||
|
echo oLink.Save >> %SCRIPT%
|
||||||
|
cscript /nologo %SCRIPT%
|
||||||
|
del %SCRIPT%
|
||||||
|
|
||||||
|
copy /Y win32\ip2e-daemon.vbs ip2e-daemon.vbs
|
||||||
|
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%.vbs"
|
||||||
|
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
|
||||||
|
echo sLinkFile = "%USERPROFILE%\Desktop\ip2e (background).lnk" >> %SCRIPT%
|
||||||
|
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
|
||||||
|
echo oLink.TargetPath = "%~d0%~p0\ip2e-daemon.vbs" >> %SCRIPT%
|
||||||
|
echo oLink.WorkingDirectory = "%~d0%~p0" >> %SCRIPT%
|
||||||
|
echo oLink.IconLocation = "%~d0%~p0\icon\ip2e.ico" >> %SCRIPT%
|
||||||
|
echo oLink.Save >> %SCRIPT%
|
||||||
|
cscript /nologo %SCRIPT%
|
||||||
|
del %SCRIPT%
|
||||||
|
|
||||||
|
echo Created!
|
||||||
|
echo Press ENTER to exit
|
||||||
|
pause > nul
|
Loading…
Reference in New Issue
Block a user