[GRASS-dev] [GRASS GIS] #1080: Windows native installer: reinstall

#1080: Windows native installer: reinstall
--------------------------+-------------------------------------------------
Reporter: martinl | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: major | Milestone: 6.4.0
Component: Installation | Version: svn-releasebranch64
Keywords: wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
--------------------------+-------------------------------------------------
It would be useful to improve Windows native installer by adding
'''reinstall''' method. Currently already installed GRASS is removed
(including user settings) and afterwards installed the new version. It
would be nice to add "reinstall" option when only modified (size-based or
marked) files would be replaced. The user configuration should be
untouched which is the key point.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1080&gt;
GRASS GIS <http://grass.osgeo.org>

#1080: Windows native installer: reinstall
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: major | Milestone: 6.4.0
Component: Installation | Version: svn-releasebranch64
Resolution: | Keywords: wingrass
  Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Comment (by hellik):

hi,

Replying to [ticket:1080 martinl]:
> It would be useful to improve Windows native installer by adding
'''reinstall''' method. Currently already installed GRASS is removed
(including user settings) and afterwards installed the new version. It
would be nice to add "reinstall" option when only modified (size-based or
marked) files would be replaced. The user configuration should be
untouched which is the key point.

actual the wingrass-installer does following
(see
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/mswindows/
GRASS-Installer.nsi#L160)

{{{
         ;.onInit Function (called when the installer is nearly finished
initializing)

         ;Check if GRASS is already installed on the system and, if yes,
what version and binary release;
         ;depending on that, select the install procedure:

         ;1. first installation = if GRASS is not already installed
         ;install GRASS asking for the install PATH

         ;2. upgrade installation = if an older release of GRASS is already
installed
         ;call the uninstaller of the currently installed GRASS release
         ;if the uninstall procedure succeeded, call the current installer
without asking for the install PATH
         ;GRASS will be installed in the same PATH of the previous
installation

         ;3. downgrade installation = if a newer release of GRASS is
already installed
         ;call the uninstaller of the currently installed GRASS release
         ;if the uninstall procedure succeeded, call the current installer
without asking for the install PATH
         ;GRASS will be installed in the same PATH of the previous
installation

         ;4. repair installation = if the same release of GRASS is already
installed
         ;call the uninstaller of the currently installed GRASS release
         ;if the uninstall procedure succeeded, call the current installer
asking for the install PATH
}}}

so asked is rather an upgrade/update of the installation with a newer
version '''and''' keeping the user configuration than a reinstall of
several changed/newer files?

just replacing modified files (size-based or marked) could maybe
problematic, if for example the underlying build system has changed with
newer version of the dependecies?

best regards
Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1080#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1080: Windows native installer: reinstall
--------------------------+-------------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 6.4.2
Component: Installation | Version: svn-releasebranch64
Keywords: wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
--------------------------+-------------------------------------------------
Changes (by hellik):

  * milestone: 6.4.0 => 6.4.2

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1080#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1080: Windows native installer: reinstall
--------------------------+-------------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: major | Milestone: 6.4.2
Component: Installation | Version: svn-releasebranch64
Keywords: wingrass | Platform: MSWindows XP
      Cpu: Unspecified |
--------------------------+-------------------------------------------------

Comment(by hamish):

I agree that trying to figure out a file-diff would be problematic. The
current auto-uninstall the old ver & install from fresh the new ver isn't
so bad if you aren't doing it every day.

the grassrc6 file is preserved for all but the msys startup (which has
it's own /home/ somewhere other than the user's main one [is that safe for
those with no write access to Program Files?])

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1080#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>