Skip to content

Commit

Permalink
Tweak the uninstaller to add support for the --noprompt option.
Browse files Browse the repository at this point in the history
This makes it possible to non-interactively uninstall a product. This may be useful in case it becomes necessary to uninstall the old product before performing an upgrade (but the old product uninstaller has to support it first).
  • Loading branch information
Francois Gouget committed May 23, 2011
1 parent 622047e commit 7e7d9ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/mojosetup_mainline.lua
Expand Up @@ -2074,7 +2074,9 @@ local function uninstaller()
local filelist = flatten_manifest(package.manifest, prepend_dest_dir)
delete_files(filelist, callback, package.delete_error_is_fatal)
run_config_defined_hook(package.postuninstall, package)
MojoSetup.gui.final(_("Uninstall complete"))
if not MojoSetup.cmdline("noprompt") then
MojoSetup.gui.final(_("Uninstall complete"))
end
stop_gui()
end

Expand Down

0 comments on commit 7e7d9ee

Please sign in to comment.