Enables shortcuts to be deselected when installing on Windows.

This commit is contained in:
Steve Dower 2015-05-03 14:54:32 -07:00
parent 2d0a69a456
commit 1d4880db3d
14 changed files with 99 additions and 63 deletions

View file

@ -746,8 +746,8 @@ public: // IBootstrapperApplication
) {
LONGLONG install;
if (wcscmp(wzFeatureId, L"AssociateFiles") == 0) {
if (SUCCEEDED(_engine->GetVariableNumeric(L"AssociateFiles", &install)) && install) {
if (wcscmp(wzFeatureId, L"AssociateFiles") == 0 || wcscmp(wzFeatureId, L"Shortcuts") == 0) {
if (SUCCEEDED(_engine->GetVariableNumeric(wzFeatureId, &install)) && install) {
*pRequestedState = BOOTSTRAPPER_FEATURE_STATE_LOCAL;
} else {
*pRequestedState = BOOTSTRAPPER_FEATURE_STATE_ABSENT;