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

Jason Taylor jtaylor at morrislaing.com
Tue May 14 18:19:07 CEST 2013


> 
> 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 ?
> 

%PROGRAMFILES% points to 'C:\Program Files', if you're on an X64 OS you can use %PROGRAMFILES(X86)% to refer to the (x86) version. Use %PROGRAMFILES(X86)% if you know a program is 32-bit only.

If you have a mixed environment like me (32 and 64 OS's), since I wanted to be able to use %PROGRAMFILES(X86)% for all known 32-bit programs, I added this profile to all my hosts:

	<profile id="variables">
		<!-- Root dir containing software -->
		<variable name="SOFTWARE" value="\\server\software" />

		<!-- Use this variable for 32bit programs, needs to be created on x86 systems -->
		<variable name="PROGRAMFILES(x86)" value="C:\Program Files">
			<condition>
				<check type="host" condition="architecture" value="x86" />
			</condition>
		</variable>
	</profile>


Jason Taylor
Morris, Laing, Evans, Brock & Kennedy
300 N Mead Ste 200
Wichita, KS 67202
316-262-2671
jtaylor at morrislaing.com





More information about the wpkg-users mailing list