mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
don't uninstall a previously installed section from the installer
This commit is contained in:
parent
124e0fb61f
commit
0098fe27df
1 changed files with 8 additions and 4 deletions
|
@ -147,10 +147,14 @@ Var AR_RegFlags
|
||||||
IntOp $AR_SecFlags $AR_SecFlags & ${SF_SELECTED}
|
IntOp $AR_SecFlags $AR_SecFlags & ${SF_SELECTED}
|
||||||
IntCmp $AR_SecFlags 1 "leave_${SecName}"
|
IntCmp $AR_SecFlags 1 "leave_${SecName}"
|
||||||
;Section is not selected:
|
;Section is not selected:
|
||||||
;Calling Section uninstall macro and writing zero installed flag
|
|
||||||
!insertmacro "Remove_${${SecName}}"
|
; NOTE: The default CPack template calls Section uninstall macro and writes zero installed flag
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@\Components\${SecName}" \
|
; We do not do that here because it would absolutely cause issues with shared dependencies
|
||||||
"Installed" 0
|
|
||||||
|
;!insertmacro "Remove_${${SecName}}"
|
||||||
|
;WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@\Components\${SecName}" \
|
||||||
|
; "Installed" 0
|
||||||
|
|
||||||
Goto "exit_${SecName}"
|
Goto "exit_${SecName}"
|
||||||
|
|
||||||
"leave_${SecName}:"
|
"leave_${SecName}:"
|
||||||
|
|
Loading…
Reference in a new issue