diff options
Diffstat (limited to '')
| -rw-r--r-- | src/burn/engine/registration.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/burn/engine/registration.cpp b/src/burn/engine/registration.cpp index 771b9425..85c006f7 100644 --- a/src/burn/engine/registration.cpp +++ b/src/burn/engine/registration.cpp | |||
| @@ -132,9 +132,9 @@ extern "C" HRESULT RegistrationParseFromXml( | |||
| 132 | hr = XmlSelectSingleNode(pixnBundle, L"Registration", &pixnRegistrationNode); | 132 | hr = XmlSelectSingleNode(pixnBundle, L"Registration", &pixnRegistrationNode); |
| 133 | ExitOnRequiredXmlQueryFailure(hr, "Failed to select registration node."); | 133 | ExitOnRequiredXmlQueryFailure(hr, "Failed to select registration node."); |
| 134 | 134 | ||
| 135 | // @Id | 135 | // @Code |
| 136 | hr = XmlGetAttributeEx(pixnRegistrationNode, L"Id", &pRegistration->sczId); | 136 | hr = XmlGetAttributeEx(pixnRegistrationNode, L"Code", &pRegistration->sczCode); |
| 137 | ExitOnRequiredXmlQueryFailure(hr, "Failed to get @Id."); | 137 | ExitOnRequiredXmlQueryFailure(hr, "Failed to get @Code."); |
| 138 | 138 | ||
| 139 | // @Tag | 139 | // @Tag |
| 140 | hr = XmlGetAttributeEx(pixnRegistrationNode, L"Tag", &pRegistration->sczTag); | 140 | hr = XmlGetAttributeEx(pixnRegistrationNode, L"Tag", &pRegistration->sczTag); |
| @@ -305,7 +305,7 @@ extern "C" void RegistrationUninitialize( | |||
| 305 | __in BURN_REGISTRATION* pRegistration | 305 | __in BURN_REGISTRATION* pRegistration |
| 306 | ) | 306 | ) |
| 307 | { | 307 | { |
| 308 | ReleaseStr(pRegistration->sczId); | 308 | ReleaseStr(pRegistration->sczCode); |
| 309 | ReleaseStr(pRegistration->sczTag); | 309 | ReleaseStr(pRegistration->sczTag); |
| 310 | 310 | ||
| 311 | for (DWORD i = 0; i < pRegistration->cDetectCodes; ++i) | 311 | for (DWORD i = 0; i < pRegistration->cDetectCodes; ++i) |
| @@ -371,7 +371,7 @@ extern "C" void RegistrationUninitialize( | |||
| 371 | MemFree(pRegistration->softwareTags.rgSoftwareTags); | 371 | MemFree(pRegistration->softwareTags.rgSoftwareTags); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | ReleaseStr(pRegistration->sczDetectedProviderKeyBundleId); | 374 | ReleaseStr(pRegistration->sczDetectedProviderKeyBundleCode); |
| 375 | ReleaseStr(pRegistration->sczBundlePackageAncestors); | 375 | ReleaseStr(pRegistration->sczBundlePackageAncestors); |
| 376 | RelatedBundlesUninitialize(&pRegistration->relatedBundles); | 376 | RelatedBundlesUninitialize(&pRegistration->relatedBundles); |
| 377 | 377 | ||
| @@ -620,7 +620,7 @@ extern "C" HRESULT RegistrationSessionBegin( | |||
| 620 | // Cache bundle executable. | 620 | // Cache bundle executable. |
| 621 | if (dwRegistrationOptions & BURN_REGISTRATION_ACTION_OPERATIONS_CACHE_BUNDLE) | 621 | if (dwRegistrationOptions & BURN_REGISTRATION_ACTION_OPERATIONS_CACHE_BUNDLE) |
| 622 | { | 622 | { |
| 623 | hr = CacheCompleteBundle(pCache, pRegistration->fPerMachine, pRegistration->sczExecutableName, pRegistration->sczId, wzEngineWorkingPath | 623 | hr = CacheCompleteBundle(pCache, pRegistration->fPerMachine, pRegistration->sczExecutableName, pRegistration->sczCode, wzEngineWorkingPath |
| 624 | #ifdef DEBUG | 624 | #ifdef DEBUG |
| 625 | , pRegistration->sczCacheExecutablePath | 625 | , pRegistration->sczCacheExecutablePath |
| 626 | #endif | 626 | #endif |
| @@ -888,7 +888,7 @@ extern "C" HRESULT RegistrationSessionEnd( | |||
| 888 | hr = RegDelete(pRegistration->hkRoot, pRegistration->sczRegistrationKey, REG_KEY_DEFAULT, TRUE); | 888 | hr = RegDelete(pRegistration->hkRoot, pRegistration->sczRegistrationKey, REG_KEY_DEFAULT, TRUE); |
| 889 | ExitOnPathFailure(hr, fDeleted, "Failed to delete registration key: %ls", pRegistration->sczRegistrationKey); | 889 | ExitOnPathFailure(hr, fDeleted, "Failed to delete registration key: %ls", pRegistration->sczRegistrationKey); |
| 890 | 890 | ||
| 891 | CacheRemoveBundle(pCache, pRegistration->fPerMachine, pRegistration->sczId); | 891 | CacheRemoveBundle(pCache, pRegistration->fPerMachine, pRegistration->sczCode); |
| 892 | } | 892 | } |
| 893 | else // the mode needs to be updated so open the registration key. | 893 | else // the mode needs to be updated so open the registration key. |
| 894 | { | 894 | { |
| @@ -1153,11 +1153,11 @@ static HRESULT SetPaths( | |||
| 1153 | pRegistration->hkRoot = pRegistration->fPerMachine ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; | 1153 | pRegistration->hkRoot = pRegistration->fPerMachine ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; |
| 1154 | 1154 | ||
| 1155 | // build uninstall registry key path | 1155 | // build uninstall registry key path |
| 1156 | hr = StrAllocFormatted(&pRegistration->sczRegistrationKey, L"%ls\\%ls", BURN_REGISTRATION_REGISTRY_UNINSTALL_KEY, pRegistration->sczId); | 1156 | hr = StrAllocFormatted(&pRegistration->sczRegistrationKey, L"%ls\\%ls", BURN_REGISTRATION_REGISTRY_UNINSTALL_KEY, pRegistration->sczCode); |
| 1157 | ExitOnFailure(hr, "Failed to build uninstall registry key path."); | 1157 | ExitOnFailure(hr, "Failed to build uninstall registry key path."); |
| 1158 | 1158 | ||
| 1159 | // build cache directory | 1159 | // build cache directory |
| 1160 | hr = CacheGetCompletedPath(pCache, pRegistration->fPerMachine, pRegistration->sczId, &sczCacheDirectory); | 1160 | hr = CacheGetCompletedPath(pCache, pRegistration->fPerMachine, pRegistration->sczCode, &sczCacheDirectory); |
| 1161 | ExitOnFailure(hr, "Failed to build cache directory."); | 1161 | ExitOnFailure(hr, "Failed to build cache directory."); |
| 1162 | 1162 | ||
| 1163 | // build cached executable path | 1163 | // build cached executable path |
| @@ -1287,7 +1287,7 @@ static HRESULT UpdateResumeMode( | |||
| 1287 | hr = RegCreate(pRegistration->hkRoot, sczResumeKey, KEY_WRITE, &hkRun); | 1287 | hr = RegCreate(pRegistration->hkRoot, sczResumeKey, KEY_WRITE, &hkRun); |
| 1288 | ExitOnFailure(hr, "Failed to create run key."); | 1288 | ExitOnFailure(hr, "Failed to create run key."); |
| 1289 | 1289 | ||
| 1290 | hr = RegWriteString(hkRun, pRegistration->sczId, sczRunOnceCommandLine); | 1290 | hr = RegWriteString(hkRun, pRegistration->sczCode, sczRunOnceCommandLine); |
| 1291 | ExitOnFailure(hr, "Failed to write run key value."); | 1291 | ExitOnFailure(hr, "Failed to write run key value."); |
| 1292 | 1292 | ||
| 1293 | hr = RegWriteString(hkRegistration, REGISTRY_BUNDLE_RESUME_COMMAND_LINE, pRegistration->sczResumeCommandLine); | 1293 | hr = RegWriteString(hkRegistration, REGISTRY_BUNDLE_RESUME_COMMAND_LINE, pRegistration->sczResumeCommandLine); |
| @@ -1304,7 +1304,7 @@ static HRESULT UpdateResumeMode( | |||
| 1304 | { | 1304 | { |
| 1305 | ExitOnFailure(hr, "Failed to open run key."); | 1305 | ExitOnFailure(hr, "Failed to open run key."); |
| 1306 | 1306 | ||
| 1307 | er = ::RegDeleteValueW(hkRun, pRegistration->sczId); | 1307 | er = ::RegDeleteValueW(hkRun, pRegistration->sczCode); |
| 1308 | if (ERROR_FILE_NOT_FOUND == er) | 1308 | if (ERROR_FILE_NOT_FOUND == er) |
| 1309 | { | 1309 | { |
| 1310 | er = ERROR_SUCCESS; | 1310 | er = ERROR_SUCCESS; |
