Skip to content

Commit 3f6dac6

Browse files
committed
Fix desktop shortcut creation in installer script (part 2)
${...} is for constants.
1 parent 39dc828 commit 3f6dac6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Shared/installer/nightly.nsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,12 +2604,12 @@ Function MTAInitFileNamesAndPaths
26042604
StrCpy $UninstallShortcutName "Uninstall MTA San Andreas"
26052605
# Shostcuts paths
26062606
StrCpy $StartMenuMTAFolderPath "$SMPROGRAMS\MTA San Andreas ${0.0}"
2607-
StrCpy $StartMenuClientShortcutPath "$StartMenuMTAFolderPath\${ClientShortcutName}.lnk"
2608-
StrCpy $StartMenuServerShortcutPath "$StartMenuMTAFolderPath\${ServerShortcutName}.lnk"
2609-
StrCpy $StartMenuUninstallShortcutPath "$StartMenuMTAFolderPath\${$UninstallShortcutName}.lnk"
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}.lnk"
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)