aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/core.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-08-03 15:43:30 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-08-04 10:03:57 -0500
commit75d645c6aec0df0e02bd3aaf2fe2571d83316d4c (patch)
tree6ff150562e5c2a208de8fa38aadac4e72b8ab6a7 /src/burn/engine/core.cpp
parent25ae58ec05bec0b97038e98eec9582209c1f9583 (diff)
downloadwix-75d645c6aec0df0e02bd3aaf2fe2571d83316d4c.tar.gz
wix-75d645c6aec0df0e02bd3aaf2fe2571d83316d4c.tar.bz2
wix-75d645c6aec0df0e02bd3aaf2fe2571d83316d4c.zip
Remove unelevation code since clean room changes made it unreachable.
Diffstat (limited to 'src/burn/engine/core.cpp')
-rw-r--r--src/burn/engine/core.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/burn/engine/core.cpp b/src/burn/engine/core.cpp
index 94aaf204..3e45cdfc 100644
--- a/src/burn/engine/core.cpp
+++ b/src/burn/engine/core.cpp
@@ -1086,14 +1086,6 @@ extern "C" HRESULT CoreCreateCleanRoomCommandLine(
1086 ExitOnFailure(hr, "Failed to append /disablesystemrestore."); 1086 ExitOnFailure(hr, "Failed to append /disablesystemrestore.");
1087 } 1087 }
1088 1088
1089#ifdef ENABLE_UNELEVATE
1090 if (pInternalCommand->fDisableUnelevate)
1091 {
1092 hr = StrAllocConcatFormatted(psczCommandLine, L" /%ls", BURN_COMMANDLINE_SWITCH_DISABLE_UNELEVATE);
1093 ExitOnFailure(hr, "Failed to append switch: %ls.", BURN_COMMANDLINE_SWITCH_DISABLE_UNELEVATE);
1094 }
1095#endif
1096
1097 if (pInternalCommand->sczOriginalSource) 1089 if (pInternalCommand->sczOriginalSource)
1098 { 1090 {
1099 hr = StrAllocConcat(psczCommandLine, L" /originalsource", 0); 1091 hr = StrAllocConcat(psczCommandLine, L" /originalsource", 0);
@@ -1646,12 +1638,6 @@ extern "C" HRESULT CoreParseCommandLine(
1646 { 1638 {
1647 pCommand->fPassthrough = TRUE; 1639 pCommand->fPassthrough = TRUE;
1648 } 1640 }
1649 else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, BURN_COMMANDLINE_SWITCH_DISABLE_UNELEVATE, -1))
1650 {
1651#ifdef ENABLE_UNELEVATE
1652 pInternalCommand->fDisableUnelevate = TRUE;
1653#endif
1654 }
1655 else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, BURN_COMMANDLINE_SWITCH_RUNONCE, -1)) 1641 else if (CSTR_EQUAL == ::CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, &argv[i][1], -1, BURN_COMMANDLINE_SWITCH_RUNONCE, -1))
1656 { 1642 {
1657 if (BURN_MODE_UNKNOWN != pInternalCommand->mode) 1643 if (BURN_MODE_UNKNOWN != pInternalCommand->mode)