Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: olivier sc on November 27, 2024, 06:21:21 pm
-
Hello Dear All,
As you know, we use more and more silent installations for deployments and updates.
Would it be possible to add a /force option to prevent the setup from complaining because there are already files in the destination folder?
We have "non-zero exit status" in 2 or sometimes 4.
And nothing more is done.
It would be good to be able to upgrade versions without necessarily worrying about this detail.
Thanking you in advance.
-
After looking it up (https://nsis.sourceforge.io/Docs/AppendixD.html#errorlevels), NSIS exit code 2 means "Installation aborted by script", and exit code 4 is a custom one.
-
Yes we have CalledProcessErrorOutput: Command '"codeblocks-20.03mingw-setup.exe" /S' returned non-zero exit status 2.
Just because old "codeblocks" is in place.
So add a /force option make sens to complet the update by overwriting.
-
Or maybe add a real update process by a /update ?