WINSETUP: Fix the Enable Use by All Users checkbox in the installer. The setting wasn't being properly restored.

WINSETUP: Special case the LAUNCHPROGRAM property, if the registry value is an empty string, enable the checkbox.
This commit is contained in:
Rom Walton 2013-04-11 13:38:16 -04:00
parent c084536dce
commit acb3357cf9
5 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ UINT CARestoreSetupState::OnExecution()
}
if (strOverrideLaunchProgram.empty()) {
if (_T("1") == strLaunchProgram) {
if ((_T("1") == strLaunchProgram) || (strLaunchProgram.size() == 0)) {
SetProperty( _T("LAUNCHPROGRAM"), _T("1") );
} else {
SetProperty( _T("LAUNCHPROGRAM"), _T("") );
@ -148,7 +148,7 @@ UINT CARestoreSetupState::OnExecution()
SetProperty( _T("ENABLEPROTECTEDAPPLICATIONEXECUTION3"), strOverrideEnableProtectedApplicationExecution );
}
if (strEnableUseByAllUsers.empty()) {
if (strOverrideEnableUseByAllUsers.empty()) {
if (_T("1") == strEnableUseByAllUsers) {
SetProperty( _T("ENABLEUSEBYALLUSERS"), _T("1") );
} else {