[GRASS-dev] [GRASS GIS] #1428: WinGRASS 6.4.1 fails to start after installation

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.1
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by mmetz):

Replying to [comment:35 hamish]:
> This hasn't gone away and it can't be ignored -- it's a blocker because
it's a license violation to ship non-GPL libraries alongside grass
binaries. The MS redistributable dlls must be presented by the nsi
installer as independent system libraries. It should be pretty easy, just
add an extra "do you want to install these system libraries* from
Microsoft?" page in the wingrass install wizard. To be totally clear, it
should then download them from the internet the same way that the sample
datasets get downloaded.

How about downloading the latest package from

http://download.osgeo.org/osgeo4w/release/msvcrt/

upon user request?

The latest msvcrt still needs to be included by the osgeo4w packagers,
though.

Markus M

> Bonus points for figuring out the regedit key to see if they're already
registered, but lacking that just plonking them in the grass binary extras
dir as we do now should be better than nothing.

> [*] these are magic words as far as the license is concerned

> Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.1
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by neteler):

Replying to [comment:40 mmetz]:
> How about downloading the latest package from
>
> http://download.osgeo.org/osgeo4w/release/msvcrt/
>
> upon user request?

... or simply always install it?

> The latest msvcrt still needs to be included by the osgeo4w packagers,
though.

Yes.

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.1
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

> Replying to [comment:40 mmetz]:
> > How about downloading the latest package from
> > http://download.osgeo.org/osgeo4w/release/msvcrt/
> > upon user request?

that is exactly what's needed AFAIU. I think it just needs an extra
[Yes,please][No,thanks] page at the end of the installer wizard with a
download option like we already have for the sample datasets.

Replying to [comment:41 neteler]:
> ... or simply always install it?

the "always install it" part is what's the violation. I think that we
can/should make it very easy to be co-installed from a 3rd party (here
osgeo4w, but also I think FrankW keeps one at gdal.org/tmp/) as a
convince, but it has to be presented that way to the end-user as an
independent "system library", not as a part of GRASS itself, and so the
user has to instigate the install (by clicking [Yes]) themselves.

The frustrating thing is that Microsoft hasn't fixed this since W95 days
by just including their own core dlls in OS updates... I can only guess
why.

fun,
Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.1
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

fwiw here is the "OS exemption" text of the GPL2 which we have to satisfy:

{{{
[...] However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
}}}

the key words here are '''unless that component itself accompanies the
executable''', which I read as: we clearly can't bundle it in our all-in-
one grass_installer.exe download. After that what ''accompanies'' means is
up to the lawyers to decide, but between the choices of automatically
download & install vs. ask [Yes][No] then do it (or not), I'm more
comfortable with the "user takes action" option, since then it was the
user's decision not ours.

I don't think the second paragraph above is as relevant, but copied here
in case someone else reads it differently.

fun,
Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.1
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

> "user takes action" option,

words count here, so make that read "user takes positive action".

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------
Changes (by hellik):

  * version: 6.4.1 => 6.4.3 RCs

Comment:

Replying to [comment:42 hamish]:
>
> I think it just needs an extra [Yes,please][No,thanks] page at the end
of the installer wizard with a download option like we already have for
the sample datasets.

are you sure? - regarding the mechanism behind the scene....

[comment:40 mmetz]:
> How about downloading the latest package from
> http://download.osgeo.org/osgeo4w/release/msvcrt/
>upon user request?

the lastest msvcrt-1.0.1-7.tar.bz2 has following content:

{{{
  Verzeichnis von C:\dl\msvcrt\msvcrt-1.0.1-7

14.04.2013 21:25 <DIR> .
14.04.2013 21:25 <DIR> ..
14.04.2013 21:25 <DIR> bin
14.04.2013 21:25 <DIR> etc
}}}

with in \bin

{{{
14.04.2013 21:25 <DIR> .
14.04.2013 21:25 <DIR> ..
30.12.2010 21:58 45.056 dllupdate.exe
13.07.2005 03:50 401.462 msvcp60.dll
13.07.2005 03:50 487.424 msvcp70.dll
10.11.2005 23:48 499.712 msvcp71.dll
10.11.2005 23:48 348.160 msvcr71.dll
13.07.2005 03:50 343.040 msvcrt.dll
04.04.2012 18:08 312 o4w_env.bat
30.12.2010 21:58 53.248 textreplace.exe
14.11.2007 02:38 2.728.104 vcredist_2005_x86.exe
12.01.2009 21:24 4.216.840 vcredist_2008_x86.exe
19.03.2010 18:40 5.073.240 vcredist_2010_x86.exe
01.04.2005 15:01 49.152 xxmklink.exe
               12 Datei(en), 14.245.750 Bytes
                2 Verzeichnis(se), 253.179.424.768 Bytes frei
}}}

attached a patch for msvcrt-1.0.1-7.tar.bz2 (not tested yet cause no
access to my build box at the moment) by executing only
vcredist_2005_x86.exe, vcredist_2008_x86.exe, vcredist_2010_x86.exe

IMHO sorry I have '''really no''' idea which of these are really needed or
maybe msvcp60.dll, msvcp70.dll, msvcp71.dll, msvcr71.dll, msvcrt.dll
should also be added, it's out of my knowledge ...

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by neteler):

Please upload to devbr6 for testing, thanks!

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:46 neteler]:
> Please upload to devbr6 for testing, thanks!

done by r55817

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

Replying to [comment:45 hellik]:
> Replying to [comment:42 hamish]:
> >
> > I think it just needs an extra [Yes,please][No,thanks] page at the end
of
> > the installer wizard with a download option like we already have for
the
> > sample datasets.
>
> are you sure? - regarding the mechanism behind the scene....

I just mean the technique using wget/curl or whatever it is behind the
scenes to download from a URL, uncompress, and install it. (with nice
checks if there is no network connection or the download fails for some
other reason) Bonus would be md5sum checks on the downloaded file(s).

It seems taken care of by NSISdl::download and untgz::extract in your
patch, thanks.

> done by r55817

wording tweaked a little bit in r55819 to use the magic "system" library
language.

The idea to put the d/l in its own page at the end of the installer wizard
instead of with the sample dataset downloads was because I worry it might
get clicked past by someone hitting Next Next Next Next and not paying
attention, then they wonder why it doesn't work.

Another idea to avoid the registry key search- after figuring out which
dlls are actually needed, we'd to compile a tiny program depending on them
and have it run as part of the startup script and fail with a more
informative error message (or, if we can't do much about the "this process
ended" message, we can at least catch that it failed and the startup
script continuing on from there sees the process return code and aborts
with a more informative error message.) ?

Our next step seems to be some quality time spent exploring with
Dependency Walker..

thanks for the patch!
Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

Hamish:
> Our next step seems to be some quality time spent exploring
> with Dependency Walker..

ok, done a bit of that, it seems that we need the full set of
redistributables.
A small sample from dragging the dlls into depends.exe:
{{{
libgrass_gis6.4.3snv.dll req's msvcrt.dll
libgrass_gis6.4.3snv.dll req's msvcp60.dll
zlib1.dll req's msvcrt.dll
libpq.dll req's msvcrt.dll
libpq.dll req's msvcp60.dll
libpq.dll req's msvcr71.dll
libpq.dll req's msvcr80.dll
libxml2.dll req's msvcp60.dll
zlib_osgeo.dll req's msvcr71.dll
proj.dll req's msvcr71.dll
tk85.dll req's msvcr90.dll
geotiff.dll req's msvcp90.dll
geos_c.dll req's msvcp100.dll
geos_c.dll req's msvcr100.dll
gdal19.dll req's them all
  as does gdal18.dll and gdal15.dll
}}}

(what depends on gdal18.dll and gdal15.dll? can we leave them out saving
10mb?)

So even if Ben's osgeo4w toolchain were all compiled without MS Visual
Studio, we'd still need the redistributables for PgSQL & co. which we
aren't building ourselves.

msvcp60.dll and msvcrt.dll are in my C:\Windows\system32\ already, maybe
they ship with Windows by default? (or maybe I installed them, dunno at
this point)

many things would like to find MSJAVA.DLL, but it isn't there.
But that's not a problem because it's called by MSHTML.DLL which can
deal with it being missing. (see Dependency Walker FAQ)

As Helmut notes in the GRASS-Installer.nsi.tmpl text about the MSVC++
redist. pkg both python.exe and GDAL19.dll require MSVCP100.dll, this is
the error I get on wxGUI startup on an old XP install:
{{{
python.exe - Unable To Locate Component
This application has failed to start because MSVCP100.dll was not found.
Re-installing the application may fix this problem.
[Ok]
}}}

g.region.exe, g.proj.exe, fail since they both depend on libgrass_gproj,
which wants gdal19.dll, which wants msvcp100.dll.. that means the tcl/tk
GUI also fails with:
{{{
g.proj or projection error: child killed: unknown signal
Error setting region (Problem with g.region?): child killed: unknown
signal
}}}

Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

here's MS's download site for MSVCP100.dll,
  http://www.microsoft.com/en-
us/download/details.aspx?displaylang=en&id=5555

It installs to C:\windows\system32. It does not install the 71,80,90 dlls,
they have to be installed separately.

Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hamish):

Replying to [comment:47 hellik]:
> done by r55817

Hi,

tested with the latest nightly build of 6.5:

  - 2010 installer runs ok. (repair mode since I already installed it)
  - 2005 installer is in German, but runs ok.
  - I didn't see anything about the 2008 installer.
  - GRASS 6.5 startup fails badly since it can't find msvcr71.dll.
  - As above, I think 71, 80, and 90 are needed, 60 and "t" may be in
system32 already(?)
  - 71 and earlier ones are in %USER%\Local
Settings\Temp\install_msruntime\bin, but no 80, 90, and rerunning the 2008
installer there (repair mode for me since already installed) doesn't get
me anything new AFAICT. (even after a reboot)

I think we need to request a new version of the osgeo4w package at:
  http://download.osgeo.org/osgeo4w/release/msvcrt/

which have the 80,90,100 dlls in it, then make sure they get copied to
extralib/. That'll be needed for all other osgeo4w packages using
gdal19.dll anyway.

(maybe running the installers isn't needed/doesn't seem to work anyway; on
the otherhand I'm not sure if the msvcr files need to have the user be
presented with the clickthrough license, or if you can just legally copy
them where you like silently)

Hamish

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:50 hamish]:
> here's MS's download site for MSVCP100.dll,
> http://www.microsoft.com/en-
us/download/details.aspx?displaylang=en&id=5555
>

see https://trac.osgeo.org/grass/ticket/1428#comment:45

vcredist_2010_x86.exe should already be there

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:51 hamish]:

> tested with the latest nightly build of 6.5:
>
> - 2010 installer runs ok. (repair mode since I already installed it)

ok

> - 2005 installer is in German, but runs ok.

ok

> - I didn't see anything about the 2008 installer.

?

> - GRASS 6.5 startup fails badly since it can't find msvcr71.dll.

not copied yet, must be added to the nsis-script

> - As above, I think 71, 80, and 90 are needed, 60 and "t" may be in
system32 already(?)

see above

> - 71 and earlier ones are in %USER%\Local
Settings\Temp\install_msruntime\bin, but no 80, 90, and rerunning the 2008
installer there (repair mode for me since already installed) doesn't get
me anything new AFAICT. (even after a reboot)
>
> I think we need to request a new version of the osgeo4w package at:
> http://download.osgeo.org/osgeo4w/release/msvcrt/

maybe yes

>
> which have the 80,90,100 dlls in it, then make sure they get copied to
extralib/. That'll be needed for all other osgeo4w packages using
gdal19.dll anyway.
>
> (maybe running the installers isn't needed/doesn't seem to work anyway;
on the otherhand I'm not sure if the msvcr files need to have the user be
presented with the clickthrough license, or if you can just legally copy
them where you like silently)

no idea

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:51 hamish]:
>
> (maybe running the installers isn't needed/doesn't seem to work anyway;
on the otherhand I'm not sure if the msvcr files need to have the user be
presented with the clickthrough license, or if you can just legally copy
them where you like silently)
>

I've just seen in

msvcrt-1.0.1-7\etc\postinstall\msvcrt.bat

{{{
"%OSGEO4W_ROOT%\bin\vcredist_2005_x86.exe" /q
if errorlevel 3010 echo>%OSGEO4W_ROOT%\etc\reboot
del "%OSGEO4W_ROOT%\bin\vcredist_2005_x86.exe"

"%OSGEO4W_ROOT%\bin\vcredist_2008_x86.exe" /q
if errorlevel 3010 echo>%OSGEO4W_ROOT%\etc\reboot
del "%OSGEO4W_ROOT%\bin\vcredist_2008_x86.exe"

"%OSGEO4W_ROOT%\bin\vcredist_2010_x86.exe" /q
if errorlevel 3010 echo>%OSGEO4W_ROOT%\etc\reboot
del "%OSGEO4W_ROOT%\bin\vcredist_2010_x86.exe"
}}}

?

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:53 hellik]:
>
> > - I didn't see anything about the 2008 installer.
>
> ?
>

should be executed...

{{{
         untar_ok:
         ; execute also vcredist_2005_x86.exe ?
         Exec "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2005_x86.exe"
         ; execute also vcredist_2008_x86.exe ?
         Exec "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2008_x86.exe"
         Exec "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\vcredist_2010_x86.exe"
         Delete "$TEMP\$ARCHIVE_NAME"
         Delete "$TEMP\$ORIGINAL_UNTAR_FOLDER"
         Goto end
}}}

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:54 hellik]:
> Replying to [comment:51 hamish]:
> >
> > (maybe running the installers isn't needed/doesn't seem to work
anyway; on the otherhand I'm not sure if the msvcr files need to have the
user be presented with the clickthrough license, or if you can just
legally copy them where you like silently)
> >
>
> I've just seen in
>
> msvcrt-1.0.1-7\etc\postinstall\msvcrt.bat
>
> {{{
> "%OSGEO4W_ROOT%\bin\vcredist_2005_x86.exe" /q
> if errorlevel 3010 echo>%OSGEO4W_ROOT%\etc\reboot
> del "%OSGEO4W_ROOT%\bin\vcredist_2005_x86.exe"
>
> "%OSGEO4W_ROOT%\bin\vcredist_2008_x86.exe" /q
> if errorlevel 3010 echo>%OSGEO4W_ROOT%\etc\reboot
> del "%OSGEO4W_ROOT%\bin\vcredist_2008_x86.exe"
>
> "%OSGEO4W_ROOT%\bin\vcredist_2010_x86.exe" /q
> if errorlevel 3010 echo>%OSGEO4W_ROOT%\etc\reboot
> del "%OSGEO4W_ROOT%\bin\vcredist_2010_x86.exe"
> }}}
>
> ?

/q ... quiet modus, no status bar, no user interaction
/passive ...status bar, no user interaction

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:51 hamish]:

new patch committed

> - GRASS 6.5 startup fails badly since it can't find msvcr71.dll.

now all *.dll from msvcrt-1.0.1-7\bin are installed/copied in \extralib

>
> (maybe running the installers isn't needed/doesn't seem to work anyway;
on the otherhand I'm not sure if the msvcr files need to have the user be
presented with the clickthrough license, or if you can just legally copy
them where you like silently)

changed to quiet mode

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:48 hamish]:
>
> The idea to put the d/l in its own page at the end of the installer
wizard instead of with the sample dataset downloads was because I worry it
might get clicked past by someone hitting Next Next Next Next and not
paying attention, then they wonder why it doesn't work.

... a first attempt to fix this ... no really time here on my side at the
moment to get closer to this ... any extra help welcomed ...

>
> Another idea to avoid the registry key search- after figuring out which
dlls are actually needed, we'd to compile a tiny program depending on them
and have it run as part of the startup script and fail with a more
informative error message (or, if we can't do much about the "this process
ended" message, we can at least catch that it failed and the startup
script continuing on from there sees the process return code and aborts
with a more informative error message.) ?

... a tiny program/test would be nice ... any hints?

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

#1428: WinGRASS + how to deliver Microsoft Visual C++ Redistributable Package
(vcredist)?
--------------------------+-------------------------------------------------
Reporter: dhastings | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Installation | Version: 6.4.3 RCs
Keywords: wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------+-------------------------------------------------

Comment(by hellik):

Replying to [comment:49 hamish]:

> {{{
> libgrass_gis6.4.3snv.dll req's msvcrt.dll
> libgrass_gis6.4.3snv.dll req's msvcp60.dll
> zlib1.dll req's msvcrt.dll
> libpq.dll req's msvcrt.dll
> libpq.dll req's msvcp60.dll
> libpq.dll req's msvcr71.dll
> libpq.dll req's msvcr80.dll
> libxml2.dll req's msvcp60.dll
> zlib_osgeo.dll req's msvcr71.dll
> proj.dll req's msvcr71.dll
> tk85.dll req's msvcr90.dll
> geotiff.dll req's msvcp90.dll
> geos_c.dll req's msvcp100.dll
> geos_c.dll req's msvcr100.dll
> gdal19.dll req's them all
> as does gdal18.dll and gdal15.dll
> }}}

... it's more than a dll hell ;o)

> (what depends on gdal18.dll and gdal15.dll? can we leave them out saving
10mb?)

...backward compatibility (know idea for what exactly, a osgeo4w-revamp
may be on the way)... gdal 1.10 it's on its way ... maybe better just to
wait for settling down...

Helmut

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