[wpkg-users] Fatal Error - Missing White-Space
Rainer Meier
r.meier at wpkg.org
Wed May 20 22:44:28 CEST 2009
Hi James,
beadlej wrote:
> Thank you for the reply. I tried the '"' instead of the " " and it
> didn't work either. :(
I've replied and attached the XML file directly. Probably an encoding issue on
your side.
> How would I fix that?
Try different encoding. Personally I've used UTF-8 encoding with UNIX line feeds
(well, Windows linefeeds will work as well for sure).
> How and where do I define variables in the xml files? I just saw it in the
> wpkginst.exe file.
Host-specific variables can be defined as follows:
<?xml version="1.0" encoding="UTF-8"?>
<wpkg>
<host name=".+" profile-id="default" >
<variable name="SOFTWARE" value="\\server..." />
<variable name="SETTINGS" value="\\server..." />
</host>
</wpkg>
On profiles try the following:
<?xml version="1.0" encoding="UTF-8"?>
<profiles>
<profile id="default">
<package package-id="ccleaner" />
<variable name="SOFTWARE" value="\\server..." />
<variable name="SETTINGS" value="\\server..." />
</profile>
</profiles>
On package level try the following:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="cleanup"
name="CCleaner"
revision="1"
reboot="false"
priority="1"
>
<variable name="SOFTWARE" value="\\server..." />
<variable name="SETTINGS" value="\\server..." />
<install cmd="cmd /c ping 127.0.0.1 -n 1" />
<remove cmd="cmd /c ping 127.0.0.1 -n 1" />
</package>
</packages>
Remember to use the latest WPKG 1.1 version (can be found here:
<http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/>) because some
variable-related things have been solved here.
However I still recommend using wpkginst to define basic variables like SOFTWARE
or SETTINGS.
> I completely understand what you mean with autoit. I work for an IT company
> and sometimes wpkg just isn't an option, so I have to use autoit to quickly
> install all the anti-spyware programs and cleaning tools. I would like to
> investigate how to do what you are talking about with extracting or doing a
> reference installation. I have never done that, but I would like to learn.
Good, you've got some hints now. Just practice - most of the software packages
anyway have a silent installer. Some of them (like CCleaner) need some tweaks
after installing. For example like CCleaner needs to move the shortcuts which
seem to be wrongly created for the currently logged in user only to the "all
users" start menu to be accessible to all users of the machine.
> I really want to make this work as I love learning, but also see the benefit
> of having everything auto-installed on everyone's computer :)
Well, it's late and I did not have a close look at your file quotes yet. But the
one I've sent to you might help to solve the CCleaner problem you face.
br,
Rainer
More information about the wpkg-users
mailing list