Skip to content

Conversation

@SuperJMN
Copy link
Owner

Summary

  • create a slim uninstaller copy by stripping the embedded payload before registration
  • enable single-file compression when publishing the installer stub

Testing

  • dotnet test (fails: Flatpak CLI not available; MSBuild terminal logger throws when formatting error output)

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +20 to +24
var payloadStart = PayloadExtractor.GetAppendedPayloadStart(installerPath);
if (payloadStart.HasValue)
{
CopyWithoutPayload(installerPath, uninstallerPath, payloadStart.Value);
Log.Information("Uninstaller written without embedded payload at {Path}", uninstallerPath);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Slim uninstaller removes required payload/metadata

The new slim-copy logic truncates the installer at the appended payload (CreateSlimCopy strips everything past the payload start), but the uninstall flow still relies on payload metadata being available alongside the uninstaller. Installer.RegisterUninstaller writes metadata.json only to the installation root, and MetadataFilePayload.FromProcessDirectory looks for it next to Uninstall.exe; without the embedded payload either, DefaultInstallerPayload cannot supply metadata, so UninstallWelcomeViewModel never becomes valid and the wizard cannot proceed when the user launches the registered uninstaller. Please either keep the payload for the uninstall binary or also place the metadata where the slim copy runs.

Useful? React with 👍 / 👎.

@SuperJMN SuperJMN merged commit ffb109b into master Nov 20, 2025
1 check passed
@SuperJMN SuperJMN deleted the codex/refactor-uninstaller-to-exclude-payload branch December 9, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants