Page 1 of 1
run configurations remove and uninstall
Published: July 23, 2020 - 12:05 PM
by florentR2
Hi,
just to confirm the difference between
Remove and
Uninstall

. Does Remove execute the uninstall command based on the registry key, or is it specified in uninstallkey[xxx] or with install_exe_if_needed?
In the case of a non-silent uninstaller, if the uninstall() function is overridden, will this function be launched if Run Configuration / Uninstall is clicked?
Re: run configurations remove and uninstall
Published: August 5, 2020 - 4:18 PM
by Patrice_minagri
Hello,
From what I understand:
option `remove` does indeed execute the package uninstallation key if one is provided. But it also executes the uninstall part if that function is used.
If no key is provided, the `def_uninstall()` function replaces it. And if a key is provided, the `def_uninstall()` function completes the processing performed by the `remove` command.
If someone could confirm or correct me, I would be grateful.
Patrice
Re: run configurations remove and uninstall
Published: August 5, 2020 - 4:40 PM
by Gaetan
Hello,
`remove` is used to uninstall the package if it is installed.
`uninstall` only runs the uninstall function for the package.
Re: run configurations remove and uninstall
Published: August 5, 2020 - 5:25 PM
by Malo
Good morning,
I saw that the issue was not resolved, so I will try to rephrase it.
For me, the Remove function calls Uninstall, in addition to using information from Install.
Remove is the function used in the console when you want to uninstall a package from a machine.
Uninstall is used during uninstallation tests in PyScripter.
More specifically, if you overload Uninstall during your tests
After To use the Install function, you must run Uninstall, not Remove! Remove is saved at the same time as Install. So don't be surprised if Remove doesn't change its behavior; you need to run Uninstall and then Install again to save Remove and finally test it.
One last thing: if you want to override the Uninstall function and you previously specified the uninstallkey, you must do the following at the end of the Install process:
Code: Select all
uninstallkey.remove('CLE-DE-REGISTRE')
so that Remove calls Uninstall.