Installer Exit Code for when already installed
2 posters
Page 1 of 1
Installer Exit Code for when already installed
When running the installer (such as K-Lite_Codec_Pack_1770_Standard.exe) and the installer detects that the version is already installed, upon exiting, the installer returns an exit code of 1.
It would be nice to have the exit code for the case of detecting that it's already installed be changed to something other than 1; something specific for it.
An exit code of 1 is a generic catchall for any error.
If the exit code for "already installed" were changed to be something other than 1, then the user could filter out the error as wanted/needed.
This would be especially useful when running the installer through a package manger (such as chocolatey), which have the ability to set valid exit codes.
Thanks
It would be nice to have the exit code for the case of detecting that it's already installed be changed to something other than 1; something specific for it.
An exit code of 1 is a generic catchall for any error.
If the exit code for "already installed" were changed to be something other than 1, then the user could filter out the error as wanted/needed.
This would be especially useful when running the installer through a package manger (such as chocolatey), which have the ability to set valid exit codes.
Thanks
slycordinator- Posts : 5
Join date : 2023-08-21
Re: Installer Exit Code for when already installed
Admin wrote:I am not going that change that.
If it wasn't clear, my proposed changed is to use exit/error code 1 for general errors and then use exit/error code 7 (or some other number) for the case of finding the version already installed.
Both will produce an error state as now, since non-zero is an error, but this way the error code will be more specific for a special case.
But if you don't wish to change that, I understand.
slycordinator- Posts : 5
Join date : 2023-08-21
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum