Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Add force switch to installation file
(1/1)
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 ?
Navigation
[0] Message Index
Go to full version