[wpkg-users] %SOFTWARE% variable not resolving

W. Chris Shank shankwc at acetechgroup.com
Fri Dec 19 17:38:56 CET 2008


thanks for this. i found out that the variable directive also works if placed in the individual package declaration. it more useful to put it in the profile i suppose, that way you only need it once for each profile instead of once for every package.

does anyone know if the download package directive works with wpkg 1.0.2? I looks like it's being completely ignored.



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

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 
 

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