[wpkg-users] settings folders problem:
Tomasz Chmielewski
mangoo at wpkg.org
Wed Sep 13 21:03:14 CEST 2006
Sherwood Botsford wrote:
>
> I'm missing something about the use of settings folders.
> Wpkg doesn't seem to find them.
>
> I'm using wpkg 0.9.10 stable.
>
> I have created a hosts, profiles, and packages folders, and for now,
> have just moved the appropriate xml files into those folders.
>
> I run wpkg from the following script:
>
> set PROGARAMFILES="C:\Program Files"
Normally, you don't need to set your "Program Files" variable.
Besides, you wrote "progAramfiles=" (look at the A).
> set INST=\\conan\Installers
> set WPKGROOT=\\conan\Installers\wpkg
> set PACKAGES=%WPKGROOT%\packages
you don't need to set this variable (PACKAGES).
> set PROFILES=%WPKGROOT%\profiles
this one either (PROFILES)...
> set HOSTS=%WPKGROOT%\hosts
and this one either (HOSTS)...
> set LOG=\\conan\wpkglog
> set DLL=C:\winnt\system32
> set HDWRINSP=\\conan\installers\Hardware\Inspiron1300
> net use L: %LOG%
>
> #Line below is actually a single line -- folded by mailer.
> cscript %WPKGROOT%\wpkg.js /synchronize /debug /nonotify >
> L:\%COMPUTERNAME%.log
>
> net use L: /delete
>
> When I run this script, I get the following message logged:
>
>
>
> Microsoft (R) Windows Script Host Version 5.6
> Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
>
> Reboot-Cmd is standard.
> base directory \\conan\Installers\wpkg.
> Error parsing xml: System error: -2146697210.
>
> File \\conan\Installers\wpkg\hosts.xml
> Line 0
> Linepos 0
> Filepos 0
> srcText
Where did you read that you can set these profiles with variables?
Perhaps the documentation should be corrected.
> So it's still looking for hosts.xml in the base directory.
> Is there a flag I need to include to tell it to use folders?
Yes, you still need hosts.xml, packages.xml and profiles.xml files in
the directory where wpkg.js is.
Check this thread for more info:
http://sourceforge.net/mailarchive/forum.php?thread_id=30198301&forum_id=42940
"You need to also have profiles.xml, packages.xml and hosts.xml files,
in the same directory in which you have wpkg.js.
They can't be totally empty, they must have at least:
* <profiles></profiles> for profiles.xml
* <packages></packages> for packages.xml
* <wpkg></wpkg> for hosts.xml"
It will be commented better in the next release with something like:
DO NOT remove this file, even if all your packages are in
"packages" directory.
This file needs to contain at least the line:
<profiles></profiles>
Perhaps it should be added to the wiki, too.
--
Tomasz Chmielewski
http://wpkg.org
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
More information about the wpkg-users
mailing list