[Qgis-developer] How to to make auto unisinstall / install / upgrade of Qgis standalone ?

Bo Victor Thomsen bo.victor.thomsen at gmail.com
Wed Mar 11 05:33:43 PDT 2015


Have a look at this article: 
http://www.qgis.nl/2014/04/22/qgis-in-de-klas-onder-windows/?lang=en

It describes how to use the --configpath qualifier to change the 
location of initialisation parameters from the registry to a specific 
directory and the location of plugins.

In short:

 1. Make a standard installation of the new qgis

 2. Make a directory alongside the "bin", "apps" and so on in the
    c:\"program files"\"qgis wien" directory. Call it "inidir"

 3. Edit the c:\"program files"\"qgis wien" \bin\qgis.bat to use the
    --configpath parameter like this:*/
    /
    //*//start "QGIS" /B
    "%OSGEO4W_ROOT%"\bin\qgis-bin.exe//*//--configpath %~dp0..\inidir
    //*//%*//**

    (Second last line in the bat file)*/

    /*
 4. Save the edited qgis.bat as qgis2.bat in same directory as qgis.bat

 5. Start QGIS by doubleclicking on the qgis2.bat file. First time
    around QGIS wil blow up. Next time it will run fine.

You can then "install" the new QGIS by copying the  edited "QGIS wien" 
directory from the original pc to the root of the c-drive on a new pc,  
make a short-cut to qgis2.bat and place it on the desktop

I can't help you with the deinstall of the old qgis.

Regards
Bo Victor Thomsen
AestasGIS
Denmark


Den 11-03-2015 kl. 11:34 skrev aleksei.popoff at asconit.com:
>
> Hello,
>
> I have 50 users with Qgis standalone from 1.8 to 2.6 –  Windows XP to 
> 7 - 32 / 64 bits versions.
>
> Tomorrow, I need to install for those 50 users + 50 new users the 
> latest version.  They don’t have the rights for install or uninstall 
> the standalone version of Qgis.
>
> My first idea was for looking for the .MSI installer but www.qgis.org 
> <http://www.qgis.org> doesn’t have it. I didn’t view in the 
> mailinglist anything related.
>
> I know I can use the standalone with the argument /S but it’s not as 
> clean as a MSI.
>
> Can you describe the best way to uninstall / install the latest 
> version / and upgrade easily ?
>
> Should I use OSGEO with batch files ? How ?
>
> Thanks in advance J
>
> Best regards,
>
> *Alekseï POPOFF*
> Responsable informatique
> aleksei.popoff at asconit.com <mailto:aleksei.popoff at asconit.com>
>
> *ASCONIT Consultants *
> Parc Scientifique Tony Garnier
> 6-8 espace Henry Vallée
> 69366 LYON Cedex 07
> FRANCE
> Tel : +33 (0)4 72 82 35 55     Fax  : +33 (0)4 78 94 11 98
> Web : www.asconit.com <blocked::blocked::http://www.asconit.com/>
>
> ASCONIT Consultants est membre de EA-Pôle de l'eau www.ea-pole-eau.com 
> <blocked::blocked::http://www.ea-pole-eau.com/>
> ______________________________________
> Des consultants au service de la gestion durable des ressources et de 
> l’Environnement
> Les Systèmes et technologies de l’information au service de nos métiers
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150311/ff6e9a4e/attachment.html>


More information about the Qgis-developer mailing list