NSIS: Show hint when user installs 32bit Cockatrice on 64bit Windows (#3331)
* hint for 32bit * final wording
This commit is contained in:
parent
d37d73017f
commit
c12c3c071f
1 changed files with 9 additions and 3 deletions
|
@ -45,14 +45,20 @@ Page Custom PortableModePageCreate PortableModePageLeave
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
|
|
||||||
${If} ${NSIS_IS_64_BIT} == 1
|
${If} ${NSIS_IS_64_BIT} == 1 #NSIS 64bit
|
||||||
${IfNot} ${RunningX64}
|
${IfNot} ${RunningX64}
|
||||||
MessageBox MB_OK|MB_ICONEXCLAMATION "This version of Cockatrice requires a 64-bit Windows system."
|
MessageBox MB_OK|MB_ICONSTOP "This version of Cockatrice requires a 64-bit Windows system."
|
||||||
Abort
|
Abort
|
||||||
${EndIf}
|
${EndIf}
|
||||||
StrCpy $NormalDestDir "$ProgramFiles64\Cockatrice"
|
StrCpy $NormalDestDir "$ProgramFiles64\Cockatrice"
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
${Else}
|
${Else} #NSIS 32bit
|
||||||
|
${If} ${RunningX64}
|
||||||
|
MessageBox MB_OK|MB_ICONEXCLAMATION \
|
||||||
|
"You are about to install a 32-bit version of Cockatrice on a 64-bit Windows system.$\n\
|
||||||
|
We advise you to use the correct 64-bit installer instead to get around potential issues.$\n$\n\
|
||||||
|
Download from our webpage: https://cockatrice.github.io"
|
||||||
|
${EndIf}
|
||||||
StrCpy $NormalDestDir "$ProgramFiles\Cockatrice"
|
StrCpy $NormalDestDir "$ProgramFiles\Cockatrice"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue