Author Topic: Add force switch to installation file  (Read 47 times)

Offline olivier sc

  • Single posting newcomer
  • *
  • Posts: 3
Add force switch to installation file
« on: Today at 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.

Online Михаил Агарков

  • Multiple posting newcomer
  • *
  • Posts: 21
  • Highly sensitive programmer. ☮☯
    • Website
Re: Add force switch to installation file
« Reply #1 on: Today at 06:58:59 pm »
After looking it up, NSIS exit code 2 means "Installation aborted by script", and exit code 4 is a custom one.