[wpkg-users] %SOFTWARE% variable not resolving

Jacob A. Wyatt jwyatt at ggc.usg.edu
Fri Dec 19 17:06:46 CET 2008


The easy fix is to edit your profiles.xml and add:
<variable name="SOFTWARE" value="\\path to stuff"/>

If you have multiple profiles a trick is to add a dependency:
<profile id="app_dir">
	<variable name="SOFTWARE" value="\\path to stuff"/>
</profile>
<profile id="default">
	<depends profile-id="app_dir"/>
	<package ...
	...
</profile>
<profile id="default2">
	<depends profile-id="app_dir"/>
	<package ...
	...
</profile>

It works under <profile>, I didn't try adding the variable to the top level <profiles>.  That may work also.
Hope that helps.

-----Original Message-----
From: W. Chris Shank [mailto:shankwc at acetechgroup.com] 
Sent: Friday, December 19, 2008 10:49 AM
To: Jacob A. Wyatt
Cc: wpkg-users at lists.wpkg.org
Subject: Re: [wpkg-users] %SOFTWARE% variable not resolving

I'm seeing this too. WPKG client 1.2.1 and wpkg.js v 1.0.2.

my settings file has SOFTWARE variable declared and this worked in older version i've been using for over a year. 




----- Original Message -----
From: "Jacob A. Wyatt" <jwyatt at ggc.usg.edu>
To: wpkg-users at lists.wpkg.org
Sent: Wednesday, December 17, 2008 10:28:05 AM GMT -05:00 US/Canada Eastern
Subject: [wpkg-users] %SOFTWARE% variable not resolving

I'm having trouble with packages not installing because of the
%SOFTWARE% environment variable.

Example:
>From http://wpkg.org/Java:
<install cmd='%SOFTWARE%\jre\jre-6u11-windows-i586-p.exe /s IEXPLORER=1
MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0
AUTOUPDATECHECK=0' />

Does NOT work, but...

<install cmd='%comspec% /c %SOFTWARE%\jre\jre-6u11-windows-i586-p.exe /s
IEXPLORER=1 MOZILLA=1 ADDLOCAL=ALL REBOOT=Suppress JAVAUPDATE=0 JU=0
AUTOUPDATECHECK=0' />

Works!

Just adding %comspec% /c causes the %SOFTWARE% variable to expand where
it otherwise isn't.  Weird.  I'm working with a network that someone
else set up and I assume this is not wpkg's fault, but what could it be?


Jacob Wyatt
Associate Enterprise Systems Administrator
ex. 5301


-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

-- 
-- 
W. Chris Shank 
ACE Technology Group 
www.myRemoteITdept.com 
 



More information about the wpkg-users mailing list