and now for something that actually builds...
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5402 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a4cda75489
commit
d858c7c2f1
1 changed files with 19 additions and 8 deletions
|
@ -39,11 +39,6 @@ RequestExecutionLevel admin
|
|||
!define SHCNE_ASSOCCHANGED 0x8000000
|
||||
!define SHCNF_IDLIST 0
|
||||
|
||||
;--------------------------------
|
||||
;Variables
|
||||
|
||||
Var ReinstallPageCheck
|
||||
|
||||
;--------------------------------
|
||||
;Configuration
|
||||
|
||||
|
@ -915,6 +910,8 @@ FunctionEnd
|
|||
|
||||
!ifdef VER_MAJOR & VER_MINOR & VER_REVISION & VER_BUILD
|
||||
|
||||
Var ReinstallPageCheck
|
||||
|
||||
Function PageReinstall
|
||||
|
||||
ReadRegStr $R0 HKLM "Software\NSIS" ""
|
||||
|
@ -970,11 +967,11 @@ Function PageReinstall
|
|||
|
||||
${NSD_CreateRadioButton} 0 0 100% 24u $R2
|
||||
Pop $R2
|
||||
${NSD_OnClick} $R2 PageReinstall_UninstallRB
|
||||
${NSD_OnClick} $R2 PageReinstallUpdateSelection
|
||||
|
||||
${NSD_CreateRadioButton} 0 0 100% 24u $R3
|
||||
Pop $R3
|
||||
${NSD_OnClick} $R3 PageReinstall_UninstallRB
|
||||
${NSD_OnClick} $R3 PageReinstallUpdateSelection
|
||||
|
||||
${If} $ReinstallPageCheck == 1
|
||||
SendMessage $R2 ${BM_SETCHECK} ${BST_CHECKED} 0
|
||||
|
@ -986,9 +983,23 @@ Function PageReinstall
|
|||
|
||||
FunctionEnd
|
||||
|
||||
Function PageReinstallUpdateSelection
|
||||
|
||||
Pop $R1
|
||||
|
||||
${NSD_GetState} $R2 $R1
|
||||
|
||||
${If} $R1 == ${BST_CHECKED}
|
||||
StrCpy $ReinstallPageCheck 1
|
||||
${Else}
|
||||
StrCpy $ReinstallPageCheck 2
|
||||
${EndIf}
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function PageLeaveReinstall
|
||||
|
||||
SendMessage $R2 ${BM_GETCHECK} 0 0 $R1
|
||||
${NSD_GetState} $R2 $R1
|
||||
|
||||
StrCmp $R0 "1" 0 +2
|
||||
StrCmp $R1 "1" reinst_uninstall reinst_done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue