Installer Exit Code for when already installed

2 posters

Go down

Installer Exit Code for when already installed Empty Installer Exit Code for when already installed

Post by slycordinator Mon Aug 21, 2023 3:52 am

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

slycordinator

Posts : 5
Join date : 2023-08-21

Back to top Go down

Installer Exit Code for when already installed Empty Re: Installer Exit Code for when already installed

Post by Admin Mon Aug 21, 2023 12:57 pm

I am not going that change that.

Admin
Admin

Posts : 7445
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Installer Exit Code for when already installed Empty Re: Installer Exit Code for when already installed

Post by slycordinator Tue Aug 22, 2023 12:55 am

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

Back to top Go down

Installer Exit Code for when already installed Empty Re: Installer Exit Code for when already installed

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum