Skip to content

Commit 1c04346

Browse files
committed
Fix desktop shortcut creation in installer script
1 parent 847c7e4 commit 1c04346

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Shared/installer/nightly.nsi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,17 +2599,17 @@ FunctionEnd
25992599

26002600
Function MTAInitFileNamesAndPaths
26012601
# Shortcuts names
2602-
StrCpy $ClientShortcutName "MTA San Andreas.lnk"
2603-
StrCpy $ServerShortcutName "MTA Server.lnk"
2604-
StrCpy $UninstallShortcutName "Uninstall MTA San Andreas.lnk"
2602+
StrCpy $ClientShortcutName "MTA San Andreas"
2603+
StrCpy $ServerShortcutName "MTA Server"
2604+
StrCpy $UninstallShortcutName "Uninstall MTA San Andreas"
26052605
# Shostcuts paths
26062606
StrCpy $StartMenuMTAFolderPath "$SMPROGRAMS\MTA San Andreas ${0.0}"
2607-
StrCpy $StartMenuClientShortcutPath "$StartMenuMTAFolderPath\$ClientShortcutName"
2608-
StrCpy $StartMenuServerShortcutPath "$StartMenuMTAFolderPath\$ServerShortcutName"
2609-
StrCpy $StartMenuUninstallShortcutPath "$StartMenuMTAFolderPath\$UninstallShortcutName"
2607+
StrCpy $StartMenuClientShortcutPath "$StartMenuMTAFolderPath\${ClientShortcutName}.lnk"
2608+
StrCpy $StartMenuServerShortcutPath "$StartMenuMTAFolderPath\${ServerShortcutName}.lnk"
2609+
StrCpy $StartMenuUninstallShortcutPath "$StartMenuMTAFolderPath\${$UninstallShortcutName}.lnk"
26102610
# Shortcut names for desktop and start menu are different and can't be safely unified.
26112611
# Obvious fix is to roll 1 update where all shortcuts will be deleted and replaced with a unified names.
2612-
StrCpy $DesktopClientShortcutPath "$DESKTOP\$ClientShortcutName${0.0}"
2612+
StrCpy $DesktopClientShortcutPath "$DESKTOP\${ClientShortcutName} ${0.0}.lnk"
26132613
# Exe names
26142614
StrCpy $ClientExeName "Multi Theft Auto.exe"
26152615
StrCpy $ServerExeName "MTA Server.exe"

0 commit comments

Comments
 (0)