@@ -33,20 +33,20 @@ Var RadioButtonLabel1
3333 ${If} ${UAC_IsInnerInstance}
3434 ${AndIf} ${UAC_IsAdmin}
3535 # inner Process (and Admin) - skip selection, inner process is always used for elevation (machine-wide)
36- Call ${UNINSTALLER_FUNCPREFIX} installMode.AllUsers
36+ !insertmacro setInstallModePerAllUsers
3737 Abort
3838 ${EndIf}
3939
4040 ${GetParameters} $R0
4141 ${GetOptions} $R0 " /allusers" $R1
4242 ${IfNot} ${Errors}
43- Call ${UNINSTALLER_FUNCPREFIX} installMode.AllUsers
43+ !insertmacro setInstallModePerAllUsers
4444 Abort
4545 ${EndIf}
4646
4747 ${GetOptions} $R0 " /currentuser" $R1
4848 ${IfNot} ${Errors}
49- Call ${UNINSTALLER_FUNCPREFIX} installMode.CurrentUser
49+ !insertmacro setInstallModePerUser
5050 Abort
5151 ${EndIf}
5252
@@ -56,11 +56,11 @@ Var RadioButtonLabel1
5656 !ifdef BUILD_UNINSTALLER
5757 ${if} $hasPerUserInstallation == " 1"
5858 ${andif} $hasPerMachineInstallation == " 0"
59- Call un.installMode.CurrentUser
59+ !insertmacro setInstallModePerUser
6060 Abort
6161 ${elseif} $hasPerUserInstallation == " 0"
6262 ${andif} $hasPerMachineInstallation == " 1"
63- Call un.installMode.AllUsers
63+ !insertmacro setInstallModePerAllUsers
6464 Abort
6565 ${endif}
6666
@@ -113,7 +113,7 @@ Var RadioButtonLabel1
113113 ${NSD_CreateLabel} 0u 110u 280u 50u " "
114114 Pop $RadioButtonLabel1
115115
116- ${if} $installMode == " AllUsers " ; setting defaults
116+ ${if} $installMode == " all "
117117 SendMessage $MultiUser .InstallModePage.AllUsers ${BM_SETCHECK} ${BST_CHECKED} 0 ; set as default
118118 SendMessage $MultiUser .InstallModePage.AllUsers ${BM_CLICK} 0 0 ; trigger click event
119119 ${else}
@@ -130,7 +130,7 @@ Var RadioButtonLabel1
130130
131131 ${if} $MultiUser .InstallModePage.ReturnValue = ${BST_CHECKED}
132132 ${if} ${UAC_IsAdmin}
133- Call ${UNINSTALLER_FUNCPREFIX} installMode.AllUsers
133+ !insertmacro setInstallModePerAllUsers
134134 ${else}
135135 !ifdef MULTIUSER_INSTALLMODE_ALLOW_ELEVATION
136136 GetDlgItem $9 $HWNDParent 1
@@ -158,7 +158,7 @@ Var RadioButtonLabel1
158158 !endif
159159 ${endif}
160160 ${else}
161- Call ${UNINSTALLER_FUNCPREFIX} installMode.CurrentUser
161+ !insertmacro setInstallModePerUser
162162 ${endif}
163163
164164 !insertmacro MUI_PAGE_FUNCTION_CUSTOM LEAVE
0 commit comments