use protocol instead of exe path
This commit is contained in:
parent
b098de64ad
commit
70557a37a9
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ fltmc >NUL 2>&1 || (
|
|||
)
|
||||
|
||||
SET "collapse=%LOCALAPPDATA%\CollapseLauncher\current"
|
||||
SET "exe=CollapseLauncher.exe"
|
||||
SET "protocol=collapse://"
|
||||
SET "iconpath=Assets\Images\GameIcon"
|
||||
SET "shortcutpath=%ProgramData%\Microsoft\Windows\Start Menu\Programs\Collapse Launcher Team"
|
||||
SET "args=open --region \"Global\" --play --game"
|
||||
|
@ -20,7 +20,7 @@ ECHO Genshin shortcut creation...
|
|||
PowerShell -Command "" ^
|
||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||
"$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Genshin Impact.lnk');" ^
|
||||
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
||||
"$Shortcut.TargetPath = '!protocol!';" ^
|
||||
"$Shortcut.Arguments = '!args! \"Genshin Impact\"';" ^
|
||||
"$Shortcut.IconLocation = '!collapse!\!iconpath!\icon-genshin.ico';" ^
|
||||
"$Shortcut.Save()"
|
||||
|
@ -30,7 +30,7 @@ ECHO Honkai shortcut creation...
|
|||
PowerShell -Command "" ^
|
||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||
"$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Honkai Star Rail - HSR.lnk');" ^
|
||||
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
||||
"$Shortcut.TargetPath = '!protocol!';" ^
|
||||
"$Shortcut.Arguments = '!args! \"Honkai: Star Rail\"';" ^
|
||||
"$Shortcut.IconLocation = '!collapse!\!iconpath!\icon-starrail.ico';" ^
|
||||
"$Shortcut.Save()"
|
||||
|
@ -40,7 +40,7 @@ ECHO ZZZ shortcut creation...
|
|||
PowerShell -Command "" ^
|
||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||
"$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Zenless Zone Zero - ZZZ.lnk');" ^
|
||||
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
||||
"$Shortcut.TargetPath = '!protocol!';" ^
|
||||
"$Shortcut.Arguments = '!args! \"Zenless Zone Zero\"';" ^
|
||||
"$Shortcut.IconLocation = '!collapse!\!iconpath!\icon-zenless.ico';" ^
|
||||
"$Shortcut.Save()"
|
||||
|
|
Loading…
Reference in a new issue