Page 1 of 1

Win Install: silent switch to auto-uninstall old version?

Posted: Mon May 08, 2017 12:48 am
by Vaquero
Hey there! For making my life easier and not missing updates I use chocolatey package manager on windows and built choco packages for jamovi (e.g. https://chocolatey.org/packages/jamovi.install). I noticed that when running the installer with the silent switch, it still prompts an input from the user asking if the old version shall be uninstalled or not, thus making it non-silent. Is there a way to make it auto-uninstall the old version with a silent argument?
Otherwise I would have to work around this with autohotkey, and I'm not really keen on that.

Re: Win Install: silent switch to auto-uninstall old version

Posted: Mon May 08, 2017 10:48 am
by dropmann
Hey! I'll look into this for sure. Working with nsis is a pain but i'll see what i can do. I have to do some installer work in the next days so i'll do this at the same time.

Re: Win Install: silent switch to auto-uninstall old version

Posted: Tue May 09, 2017 6:02 am
by dropmann
Hey,

I have fixed up the installer so that the silent mode works more silently. I have added the following error codes:

ERROR_INSTALL_PLATFORM_UNSUPPORTED - Don't currently support 64bit
ERROR_PRODUCT_VERSION - Version is already installed
ERROR_INSTALL_FAILURE - the jamovi app is currently running
ERROR_ELEVATION_REQUIRED - Admin required

It also launches the uninstaller silently when needed.

These things will be available in the next release. That shouldn't be to far away. :)

damian

Re: Win Install: silent switch to auto-uninstall old version

Posted: Thu May 11, 2017 1:29 pm
by Vaquero
That's great news! Thank you for putting the effort into it. I'll see how it pans out, when my system automatically updates to the next release via the chocolatey package manager.
With choco I'd still have the option to run a script before the new version is installed, so I could uninstall the old version beforehand this way, but I'm not sure if it would be unattended and silent. But when your updated (un)installer does the magic, I won't have to.

Re: Win Install: silent switch to auto-uninstall old version

Posted: Wed May 17, 2017 3:14 am
by dropmann
Hi,

just letting you know that the current version 0.7.3.2 should have the silent installer improvements.

damian

Re: Win Install: silent switch to auto-uninstall old version

Posted: Thu May 18, 2017 7:41 am
by Vaquero
Works like a charm! Thank you very much!