Closed Nael-Sayegh closed 3 weeks ago
Does this function already exist @SaschaCowley ?
@Nael-Sayegh Not as far as I know.
NVDA can be uninstalled silently through uninstall.exe /S, but please note:
@wmhn1872265132 Is this documented anywhere?
This is a function provided by NSIS. NVDA has not found any documentation describing this function.
Thanks, @wmhn1872265132.
This is a duplicate of https://github.com/nvaccess/nvda/issues/16150, however it could be better documented. @Qchristensen
Per @wmhn1872265132's Comment above, it sounds like this already works using the /S switch as an administrator, except for the %appdata%\NVDA folder. There are several issues which reference this:
So, two or possibly three actions for this:
Can anyone confirm, are these (config & add-ons not being removed) the issues referred to about running uninstall with /S as a regular user rather than administrator, or are there more?
1) If the routine needs to run as administrator, can we prompt for admin access when running it?
2) Document in https://www.nvaccess.org/files/nvda/documentation/userGuide.html#CommandLineOptions the silent uninstall switch.
3) Should we consider an uninstall option (and associated command-line switch) to force deletion of add-ons and configuration files. This may resolve #9596, but in any case, is also likely the behaviour expected by corporate users.
It should be pointed out that NVDA's uninstaller does not support clearing user configuration files, so whether it is uninstalled through the command line or through the GUI, the configuration cannot be deleted.
@Qchristensen I think the default user directory should either be removed upon uninstallation, as this is the behavior expected by many users, or, as proposed, an option should be added to choose to remove it, which should also be possible via CMD. I believe that uninstallation via CMD should be indicated in the documentation, as it would make the work easier for IT services for the deployment of NVDA. One thing I haven't tested yet: is it possible to install NVDA via CMD by specifying a configuration to load for the user?
I think the default user directory should either be removed upon uninstallation, as this is the behavior expected by many users, or, as proposed, an option should be added to choose to remove it, which should also be possible via CMD.
I would vote for the latter. Many programs leave their user config present upon uninstallation to make things like repair installs easier. Nevertheless, a complete uninstall that removes all (reasonable) traces of NVDA should be an option.
I believe that uninstallation via CMD should be indicated in the documentation, as it would make the work easier for IT services for the deployment of NVDA.
Absolutely agreed. @coderabbitai please open an issue to document command line uninstallation of NVDA in the user guide.
One thing I haven't tested yet: is it possible to install NVDA via CMD by specifying a configuration to load for the user?
I don't know, but I doubt it. One thing that might work as a work around is to create a portable copy, configure as desired, then install from portable keeping the config. I think this is possible from the GUI, but I'm not sure about from the CLI.
[!TIP] For best results, initiate chat on the files or code changes.
@SaschaCowley, I've opened an issue to document the command line uninstallation of NVDA in the user guide. This will help IT services in deploying NVDA more efficiently. You can find the new issue here: Issue #16966.
Regarding the installation via CMD by specifying a configuration to load for the user, it might be possible to create a portable copy, configure it as desired, and then install from the portable copy while keeping the configuration. However, this needs to be verified for CLI usage.
@SaschaCowley It is true that many programs leave their configuration behind, and NVDA would do well to follow this way of functioning. Adding an option to delete it seems like a good alternative. I think your solution of installing a portable copy could work, thanks to the --copy-portable-config argument which seems to copy the portable configuration of NVDA to the new installation. What do you think?
Yes, I believe that's currently the only option to install with a custom config (short of making your own build that does what so).
@SaschaCowley Yes, I think we can close this ticket since @coderabbitai has created another issue to document the uninstallation function.
[!TIP] For best results, initiate chat on the files or code changes.
@Nael-Sayegh, that sounds like a good plan. Closing this ticket makes sense now that the documentation issue has been created. If there's anything else you need, feel free to reach out!
Closed as this is currently possible. Documentation recommended, see https://github.com/nvaccess/nvda/issues/16966 for progress.
Is your feature request related to a problem? Please describe.
NVDA offers a silent installer that can be used by specifying a configuration, which is very convenient for deployments on remote computers, such as with WAPT. However, it does not provide a silent uninstaller, which poses a problem if you want to uninstall it remotely when the user doesn't need it, as WAPT would. .Or it is not documented
Describe the solution you'd like
It would be practical to have a silent uninstall key available or to provide an argument to the uninstall.exe file to specify that it should be silent and remove the user's configuration.
Describe alternatives you've considered
None
Additional context