Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix packageId and sourceId match check for portable install #2138

Merged
merged 3 commits into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ namespace AppInstaller::CLI::Workflow

if(uninstallEntry.Exists())
{
if (uninstallEntry.IsSamePortablePackageEntry(packageIdentifier, sourceIdentifier))
if (!uninstallEntry.IsSamePortablePackageEntry(packageIdentifier, sourceIdentifier))
{
// TODO: Replace HashOverride with --Force when argument behavior gets updated.
if (!context.Args.Contains(Execution::Args::Type::HashOverride))
Expand Down
1 change: 1 addition & 0 deletions src/AppInstallerCommonCore/PortableARPEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace AppInstaller::Registry::Portable
}
else
{
m_exists = false;
ryfu-msft marked this conversation as resolved.
Show resolved Hide resolved
m_key = Key::Create(root, subKey);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace AppInstaller::Registry::Portable
Registry::Key GetKey() { return m_key; };

private:
bool m_exists;
bool m_exists = false;
Key m_key;
};

Expand Down