Skip to content

Commit

Permalink
Remove entry from "Apps & features"
Browse files Browse the repository at this point in the history
- remove registry entries left using the installer
  in 'non-portable' mode
  • Loading branch information
pohlymorph committed Jan 11, 2025
1 parent 5dce899 commit 0941038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bucket/beyondcompare-np.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
],
"post_install": [
"$dir_escaped = \"$dir\".Replace('\\', '\\\\')",
"\"install-context-$architecture\", \"uninstall-context\" | ForEach-Object {",
"\"install-context-$architecture\", \"uninstall-context\", \"delete-entry-apps-and-features\" | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\$bucket\\scripts\\$app\\$_.reg\") {",
" $content = Get-Content \"$bucketsdir\\$bucket\\scripts\\$app\\$_.reg\"",
" $content = $content.Replace('$install_dir', $dir_escaped)",
Expand All @@ -75,6 +75,7 @@
"",
"if ($cmd -eq 'install') {",
" Invoke-Command {reg import \"$dir\\install-context.reg\" 2>&1 | Out-Null}",
" Invoke-Command {reg import \"$dir\\delete-entry-apps-and-features.reg\" 2>&1 | Out-Null}",
"}",
"Remove-Item -Path \"$dir\\unins*\" -Force -Recurse"
],
Expand Down
Binary file not shown.

0 comments on commit 0941038

Please sign in to comment.