diff options
Diffstat (limited to 'src/burn/engine/registration.cpp')
-rw-r--r-- | src/burn/engine/registration.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/burn/engine/registration.cpp b/src/burn/engine/registration.cpp index 01ed30d7..fd8a32a4 100644 --- a/src/burn/engine/registration.cpp +++ b/src/burn/engine/registration.cpp | |||
@@ -299,7 +299,7 @@ LExit: | |||
299 | } | 299 | } |
300 | 300 | ||
301 | /******************************************************************* | 301 | /******************************************************************* |
302 | RegistrationUninitialize - | 302 | RegistrationUninitialize - |
303 | 303 | ||
304 | *******************************************************************/ | 304 | *******************************************************************/ |
305 | extern "C" void RegistrationUninitialize( | 305 | extern "C" void RegistrationUninitialize( |
@@ -550,7 +550,7 @@ LExit: | |||
550 | } | 550 | } |
551 | 551 | ||
552 | /******************************************************************* | 552 | /******************************************************************* |
553 | RegistrationDetectRelatedBundles - finds the bundles with same | 553 | RegistrationDetectRelatedBundles - finds the bundles with same |
554 | upgrade/detect/addon/patch codes. | 554 | upgrade/detect/addon/patch codes. |
555 | 555 | ||
556 | *******************************************************************/ | 556 | *******************************************************************/ |
@@ -761,7 +761,7 @@ extern "C" HRESULT RegistrationSessionBegin( | |||
761 | else if (BURN_REGISTRATION_MODIFY_DISABLE_BUTTON != pRegistration->modify) // if support modify (aka: did not disable anything) | 761 | else if (BURN_REGISTRATION_MODIFY_DISABLE_BUTTON != pRegistration->modify) // if support modify (aka: did not disable anything) |
762 | { | 762 | { |
763 | // ModifyPath: [path to exe] /modify | 763 | // ModifyPath: [path to exe] /modify |
764 | hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_MODIFY_PATH, L"\"%ls\" /%ls /modify", pRegistration->sczCacheExecutablePath, BURN_COMMANDLINE_SWITCH_CLEAN_ROOM); | 764 | hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_MODIFY_PATH, L"\"%ls\" /modify", pRegistration->sczCacheExecutablePath); |
765 | ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_MODIFY_PATH); | 765 | ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_MODIFY_PATH); |
766 | 766 | ||
767 | // NoElevateOnModify: 1 | 767 | // NoElevateOnModify: 1 |
@@ -793,14 +793,14 @@ extern "C" HRESULT RegistrationSessionBegin( | |||
793 | } | 793 | } |
794 | 794 | ||
795 | // QuietUninstallString: [path to exe] /uninstall /quiet | 795 | // QuietUninstallString: [path to exe] /uninstall /quiet |
796 | hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_QUIET_UNINSTALL_STRING, L"\"%ls\" /%ls /uninstall /quiet", pRegistration->sczCacheExecutablePath, BURN_COMMANDLINE_SWITCH_CLEAN_ROOM); | 796 | hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_QUIET_UNINSTALL_STRING, L"\"%ls\" /uninstall /quiet", pRegistration->sczCacheExecutablePath); |
797 | ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_QUIET_UNINSTALL_STRING); | 797 | ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_QUIET_UNINSTALL_STRING); |
798 | 798 | ||
799 | // UninstallString, [path to exe] | 799 | // UninstallString, [path to exe] |
800 | // If the modify button is to be disabled, we'll add "/modify" to the uninstall string because the button is "Uninstall/Change". Otherwise, | 800 | // If the modify button is to be disabled, we'll add "/modify" to the uninstall string because the button is "Uninstall/Change". Otherwise, |
801 | // it's just the "Uninstall" button so we add "/uninstall" to make the program just go away. | 801 | // it's just the "Uninstall" button so we add "/uninstall" to make the program just go away. |
802 | LPCWSTR wzUninstallParameters = (BURN_REGISTRATION_MODIFY_DISABLE_BUTTON == pRegistration->modify) ? L"/modify" : L" /uninstall"; | 802 | LPCWSTR wzUninstallParameters = (BURN_REGISTRATION_MODIFY_DISABLE_BUTTON == pRegistration->modify) ? L"/modify" : L" /uninstall"; |
803 | hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_UNINSTALL_STRING, L"\"%ls\" /%ls %ls", pRegistration->sczCacheExecutablePath, BURN_COMMANDLINE_SWITCH_CLEAN_ROOM, wzUninstallParameters); | 803 | hr = RegWriteStringFormatted(hkRegistration, REGISTRY_BUNDLE_UNINSTALL_STRING, L"\"%ls\" %ls", pRegistration->sczCacheExecutablePath, wzUninstallParameters); |
804 | ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_UNINSTALL_STRING); | 804 | ExitOnFailure(hr, "Failed to write %ls value.", REGISTRY_BUNDLE_UNINSTALL_STRING); |
805 | 805 | ||
806 | if (pRegistration->softwareTags.cSoftwareTags) | 806 | if (pRegistration->softwareTags.cSoftwareTags) |
@@ -1281,7 +1281,7 @@ static HRESULT UpdateResumeMode( | |||
1281 | if ((BURN_RESUME_MODE_ACTIVE == resumeMode || fRestartInitiated) && !pRegistration->fDisableResume) | 1281 | if ((BURN_RESUME_MODE_ACTIVE == resumeMode || fRestartInitiated) && !pRegistration->fDisableResume) |
1282 | { | 1282 | { |
1283 | // append RunOnce switch | 1283 | // append RunOnce switch |
1284 | hr = StrAllocFormatted(&sczRunOnceCommandLine, L"\"%ls\" /%ls /%ls", pRegistration->sczCacheExecutablePath, BURN_COMMANDLINE_SWITCH_CLEAN_ROOM, BURN_COMMANDLINE_SWITCH_RUNONCE); | 1284 | hr = StrAllocFormatted(&sczRunOnceCommandLine, L"\"%ls\" /%ls", pRegistration->sczCacheExecutablePath, BURN_COMMANDLINE_SWITCH_RUNONCE); |
1285 | ExitOnFailure(hr, "Failed to format resume command line for RunOnce."); | 1285 | ExitOnFailure(hr, "Failed to format resume command line for RunOnce."); |
1286 | 1286 | ||
1287 | // write run key | 1287 | // write run key |