Added 64 bits code for generating the installer

This commit is contained in:
Manuel Cortez 2022-01-01 16:00:54 -06:00
parent d671854453
commit f4eea98a4b
No known key found for this signature in database
GPG Key ID: 262CC30FA01B5CBF

View File

@ -1,11 +1,12 @@
!include "MUI2.nsh" !include "MUI2.nsh"
!include "LogicLib.nsh" !include "LogicLib.nsh"
!include "x64.nsh"
Unicode true Unicode true
CRCCheck on CRCCheck on
ManifestSupportedOS all ManifestSupportedOS all
XPStyle on XPStyle on
Name "Socializer" Name "Socializer"
OutFile "socializer_0.24_setup.exe" OutFile "socializer_setup.exe"
InstallDir "$PROGRAMFILES\socializer" InstallDir "$PROGRAMFILES\socializer"
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "InstallLocation" InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\socializer" "InstallLocation"
RequestExecutionLevel admin RequestExecutionLevel admin
@ -37,7 +38,11 @@ var StartMenuFolder
Section Section
SetShellVarContext All SetShellVarContext All
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
File /r socializer\* ${If} ${RunningX64}
File /r program64\*
${Else}
File /r program32\*
${EndIf}
CreateShortCut "$DESKTOP\socializer.lnk" "$INSTDIR\socializer.exe" CreateShortCut "$DESKTOP\socializer.lnk" "$INSTDIR\socializer.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN startmenu !insertmacro MUI_STARTMENU_WRITE_BEGIN startmenu
CreateDirectory "$SMPROGRAMS\$StartMenuFolder" CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
@ -67,4 +72,7 @@ RMDir /r "$SMPROGRAMS\$StartMenuFolder"
SectionEnd SectionEnd
Function .onInit Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY !insertmacro MUI_LANGDLL_DISPLAY
${If} ${RunningX64}
StrCpy $instdir "$programfiles64\socializer"
${EndIf}
FunctionEnd FunctionEnd