microsoft / microsoft/CSS-Exchange

[Issue] FixInstallerCache - Failed to find MSI because of registry mismatch

Open
#661 0 comments 0 reactions 1 assignee View on GitHub

@dpaulson45 is already working on this.

Since Jul 30, 2021.

Issue Setup Setup Assist
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Describe the issue
If we have an MSI in the installer cache && "HKEY_CLASSES_ROOT\Installer\Products'MIS_Number'" are mismatched for the PackageCode/RevisionGuid of the MSI. We fail to copy over the MSI and the install process will always fail asking for the correct MSI.

Expected New behavior

We should call this out when evaluating the information and possibly how to address it.

Will NOT change the registry. Provide a possible option on what and how to change it.

            #Go one more step to see if the package is set with what we want.
            $filePackageInfo = $null
            $foundFile = Test-Path $filePackagePath
            $correctRevisionValue = $false
            if ($foundFile) {
                $filePackageInfo = Get-FileInformation -File $filePackagePath
            }

            if ($foundFile -and
                $null -ne $filePackageInfo) {
                $correctRevisionValue = $filePackageInfo.RevisionNumber.Contains($revisionGuid.ToString().ToUpper())       <----- here is where we might need to figure out some better logic to address this.
            }

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.