mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-05 04:53:54 -07:00
More 32bit and cleanup
This commit is contained in:
parent
2ce9168afb
commit
73626c98a6
2 changed files with 22 additions and 30 deletions
|
|
@ -170,11 +170,11 @@ SetShellVarContext all
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "QuietUninstallString"
|
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "QuietUninstallString"
|
||||||
|
|
||||||
StrCmp $R0 "" done64
|
StrCmp $R0 "" done
|
||||||
DetailPrint "Removing previous version (64-bit)..."
|
DetailPrint "Removing previous version..."
|
||||||
ExecWait '$R0'
|
ExecWait '$R0'
|
||||||
|
|
||||||
done64:
|
done:
|
||||||
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
|
@ -226,7 +226,7 @@ ${If} $PortableMode = 0
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
|
|
||||||
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "UninstallString"
|
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "UninstallString"
|
||||||
StrCmp $R0 "" done64
|
StrCmp $R0 "" done
|
||||||
|
|
||||||
${If} $ReinstallMode = 0
|
${If} $ReinstallMode = 0
|
||||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "A previous version of Cockatrice must be uninstalled before installing the new one." IDOK uninst64
|
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "A previous version of Cockatrice must be uninstalled before installing the new one." IDOK uninst64
|
||||||
|
|
@ -235,11 +235,11 @@ ${If} $PortableMode = 0
|
||||||
Goto uninst64
|
Goto uninst64
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
uninst64:
|
uninst:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ExecWait "$R0"
|
ExecWait "$R0"
|
||||||
|
|
||||||
done64:
|
done:
|
||||||
|
|
||||||
${Else}
|
${Else}
|
||||||
Abort
|
Abort
|
||||||
|
|
@ -302,21 +302,13 @@ ${If} $PortableMode = 0
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "VersionMajor" "@CPACK_PACKAGE_VERSION_MAJOR@"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "VersionMajor" "@CPACK_PACKAGE_VERSION_MAJOR@"
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "VersionMinor" "@CPACK_PACKAGE_VERSION_MINOR@"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Cockatrice" "VersionMinor" "@CPACK_PACKAGE_VERSION_MINOR@"
|
||||||
|
|
||||||
IfFileExists "$INSTDIR\vc_redist.x86.exe" VcRedist86Exists PastVcRedist86Check
|
IfFileExists "$INSTDIR\vc_redist.x64.exe" VcRedistExists PastVcRedistCheck
|
||||||
VcRedist86Exists:
|
VcRedistExists:
|
||||||
ExecWait '"$INSTDIR\vc_redist.x86.exe" /passive /norestart'
|
|
||||||
DetailPrint "Wait to ensure unlock of vc_redist file after installation..."
|
|
||||||
Sleep 3000
|
|
||||||
Delete "$INSTDIR\vc_redist.x86.exe"
|
|
||||||
PastVcRedist86Check:
|
|
||||||
|
|
||||||
IfFileExists "$INSTDIR\vc_redist.x64.exe" VcRedist64Exists PastVcRedist64Check
|
|
||||||
VcRedist64Exists:
|
|
||||||
ExecWait '"$INSTDIR\vc_redist.x64.exe" /passive /norestart'
|
ExecWait '"$INSTDIR\vc_redist.x64.exe" /passive /norestart'
|
||||||
DetailPrint "Sleep to ensure unlock of vc_redist file after installation..."
|
DetailPrint "Sleep to ensure unlock of vc_redist file after installation..."
|
||||||
Sleep 3000
|
Sleep 3000
|
||||||
Delete "$INSTDIR\vc_redist.x64.exe"
|
Delete "$INSTDIR\vc_redist.x64.exe"
|
||||||
PastVcRedist64Check:
|
PastVcRedistCheck:
|
||||||
|
|
||||||
${Else}
|
${Else}
|
||||||
; Create the file the application uses to detect portable mode
|
; Create the file the application uses to detect portable mode
|
||||||
|
|
|
||||||
|
|
@ -426,6 +426,7 @@ if(Qt6_FOUND)
|
||||||
${cockatrice_MOC_SRCS}
|
${cockatrice_MOC_SRCS}
|
||||||
MANUAL_FINALIZATION
|
MANUAL_FINALIZATION
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
cockatrice
|
cockatrice
|
||||||
|
|
@ -439,7 +440,6 @@ if(Qt6_FOUND)
|
||||||
libcockatrice_settings
|
libcockatrice_settings
|
||||||
${COCKATRICE_QT_MODULES}
|
${COCKATRICE_QT_MODULES}
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue