[wpkg-users] LibreOffice 4 and INSTALLLOCATION on Seven x64

le dahut le.dahut at laposte.net
Tue May 14 17:31:39 CEST 2013


Hi,

* When I use :
  <variable name="version" value="4.0" />
  <variable name="version_long" value="4.0.3" />
  <variable name="INSTALLLOCATION" value="C:\blabla %version%" />
  <check type="file" condition="versiongreaterorequal" 
path="%INSTALLLOCATION%\program\soffice.exe" value="%version_long%"/>
  <install cmd='msiexec /qn /I 
"%SOFTWARE%\libreoffice\LibreOffice_%version_long%_Win_x86.msi" 
INSTALLLOCATION="%INSTALLLOCATION%" />

It works.
In logfile :
2013-05-14 16:56:13, DEBUG   : Executing command: 'msiexec /qn /I 
"%SOFTWARE%\libreoffice\LibreOffice_%version_long%_Win_x86.msi" 
INSTALLLOCATION="%INSTALLLOCATION%"' ('msiexec /qn /I 
"\\192.168.230.176\wpkg\softwares\libreoffice\LibreOffice_4.0.3_Win_x86.msi" 
INSTALLLOCATION="C:\blabla 4.0"').
2013-05-14 16:58:29, DEBUG   : File version check for file 'C:\blabla 
4.0\program\soffice.exe' returned true for operation type 
versiongreaterorequal.

* When I use :
  <variable name="version" value="4.0" />
  <variable name="version_long" value="4.0.3" />
  <variable name="INSTALLLOCATION" value="%ProgramFiles%\LibreOffice 
%version%" />
  <check type="file" condition="versiongreaterorequal" 
path="%INSTALLLOCATION%\program\soffice.exe" value="%version_long%"/>
  <install cmd='msiexec /qn /I 
"%SOFTWARE%\libreoffice\LibreOffice_%version_long%_Win_x86.msi" 
INSTALLLOCATION="%INSTALLLOCATION%" />

check fails.
In logfile :
2013-05-14 16:34:10, DEBUG   : Executing command: 'msiexec /qn /I 
"%SOFTWARE%\libreoffice\LibreOffice_%version_long%_Win_x86.msi" 
INSTALLLOCATION="%INSTALLLOCATION%"' ('msiexec /qn /I 
"\\192.168.230.176\wpkg\softwares\libreoffice\LibreOffice_4.0.3_Win_x86.msi" 
INSTALLLOCATION="C:\Program Files\LibreOffice 4.0"').
2013-05-14 16:36:23, DEBUG   : Unable to find the file version for 
'C:\Program Files\LibreOffice 4.0\program\soffice.exe'.

Because Libreoffice was installed in "C:\Program Files (x86)"...


The problem is the same if I don't use "%ProgramFiles%" and put 
"C:\Program Files" explicitly.

any idea ?


I use Wpkg-GP-x64 which installed itself in "C:\Program Files\Wpkg-gp" 
(so not in "C:\Program Files (x86)\Wpkg-gp").




More information about the wpkg-users mailing list