News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Add force switch to installation file

Started by olivier sc, November 27, 2024, 06:21:21 PM

Previous topic - Next topic

olivier sc

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.

MichaelAgarkov

After looking it up, NSIS exit code 2 means "Installation aborted by script", and exit code 4 is a custom one.

olivier sc

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.

olivier sc

Or maybe add a real update process by a /update ?