-----Original Message----- From: Rainer Meier [mailto:r.meier at wpkg.org] Sent: Monday, October 13, 2008 2:40 PM To: Kevin McMahan Cc: 'wpkg-users at lists.wpkg.org' Subject: Re: [wpkg-users] getting started Hi Kevin, Kevin McMahan wrote: > I am having no luck and not sure what I am missing. Let's see... > I am trying for now to get one program pushed out to our clients. OK. So the goal is to deploy one single package. > Do I need to make changes to wpkg.js initially to get this to work? Any > help is greatly appreciated. No changes to wpkg.js are required. The only thing you "might" change is config.xml but it works with default settings too. So actually no need to change anything. The only thing you need to do is: - Create packages.xml file (and/or multiple package XML definition files within the packages/ subdirectory) - Create profiles.xml file (and/or multiple profile XML definition files within the profiles/ subdirectory) where you assign packages to profiles. - Create hosts.xml file (or multiple xml files within hosts/ subdirectory) where you assign profiles to hosts. > I ran a debug which gave me the following. Let's check. > 2008-10-13 13:26:36, DEBUG : Initialized temporary local log file: > C:\DOCUME~1\K_MCMA~1\LOCALS~1\Temp\wpkg-logInit.log > > 2008-10-13 13:26:37, DEBUG : Initializing new log file: > C:\DOCUME~1\K_MCMA~1\LOCALS~1\Temp\wpkg-awws66.log [...] > 2008-10-13 13:26:38, DEBUG : Trying to read XML file: > \\ahc01\it$\wpkg\profiles.xml <file:///\\ahc01\it$\wpkg\profiles.xml> > > 2008-10-13 13:26:38, DEBUG : Successfully loaded XML file: > \\ahc01\it$\wpkg\profiles.xml <file:///\\ahc01\it$\wpkg\profiles.xml> > > 2008-10-13 13:26:38, DEBUG : Trying to read XML files from directory: > \\ahc01\it$\wpkg\profiles <file:///\\ahc01\it$\wpkg\profiles> > > 2008-10-13 13:26:39, DEBUG : Reading XML file: > //ahc01/it$/wpkg/profiles/dialpad.xml > > 2008-10-13 13:26:39, DEBUG : Reading XML file: > //ahc01/it$/wpkg/profiles/room1.xml Profiles loaded OK. > 2008-10-13 13:26:39, DEBUG : Trying to read XML file: > \\ahc01\it$\wpkg\hosts.xml <file:///\\ahc01\it$\wpkg\hosts.xml> > > 2008-10-13 13:26:40, DEBUG : Successfully loaded XML file: > \\ahc01\it$\wpkg\hosts.xml <file:///\\ahc01\it$\wpkg\hosts.xml> > > 2008-10-13 13:26:40, DEBUG : Trying to read XML files from directory: > \\ahc01\it$\wpkg\hosts <file:///\\ahc01\it$\wpkg\hosts> > > 2008-10-13 13:26:40, DEBUG : Reading XML file: > //ahc01/it$/wpkg/hosts/dialpad.xml > > 2008-10-13 13:26:41, DEBUG : Reading XML file: > //ahc01/it$/wpkg/hosts/room1.xml Hosts loaded OK. However the XML names indicate that they might actually not cointain host definitions (same as profile?). > 2008-10-13 13:26:41, DEBUG : Trying to read XML file: > \\ahc01\it$\wpkg\packages.xml <file:///\\ahc01\it$\wpkg\packages.xml> > > 2008-10-13 13:26:41, DEBUG : Successfully loaded XML file: > \\ahc01\it$\wpkg\packages.xml <file:///\\ahc01\it$\wpkg\packages.xml> > > 2008-10-13 13:26:42, DEBUG : Trying to read XML files from directory: > \\ahc01\it$\wpkg\packages <file:///\\ahc01\it$\wpkg\packages> > > 2008-10-13 13:26:43, DEBUG : Reading XML file: > //ahc01/it$/wpkg/packages/dialpad.xml Packages loaded OK. > 2008-10-13 13:26:43, DEBUG : Profiles applying to the current > host:|dialpad| OK. The "dialpad" profile seems to apply to the current host. > 2008-10-13 13:26:44, DEBUG : Reading settings file: > C:\WINDOWS\system32\wpkg.xml > > 2008-10-13 13:26:44, DEBUG : Trying to read XML file: > C:\WINDOWS\system32\wpkg.xml > > 2008-10-13 13:26:45, DEBUG : Successfully loaded XML file: > C:\WINDOWS\system32\wpkg.xml Local settings is most probably empty - this is OK too. > 2008-10-13 13:26:46, DEBUG : Hosts file contains 3 > hosts:|awws66|awws66|awws66 Strange - it seems that your host definition contains three times the same host. Let's verify that later. > 2008-10-13 13:26:47, DEBUG : Settings file contains 0 packages: As indicated above. The local wpkg.xml file is empty. This is OK at current state. > 2008-10-13 13:26:47, DEBUG : Packages file contains 1 packages:|dialpad OK. One package defined. > 2008-10-13 13:26:48, DEBUG : Profile file contains 1 profiles:|dialpad OK. One profile defined. > 2008-10-13 13:26:48, DEBUG : Using profile(s):|dialpad| OK. Profile 'dialpad' will be applied. > 2008-10-13 13:26:49, DEBUG : Getting profiles which apply to this node. > > 2008-10-13 13:26:49, DEBUG : Applying profile: dialpad OK. 'dialpad' applies to the profile. > 2008-10-13 13:26:50, DEBUG : No more dependencies for profile 'dialpad' Profile 'dialpad' does not have any more (profile-)dependencies. This is OK. > 2008-10-13 13:26:50, DEBUG : Synchronizing: Number of packages > referenced by profile: 0 No packages referenced by profile. This seems to be your problem. Your 'dialpad' profile does not reference any packages. > 2008-10-13 13:26:51, DEBUG : Number of packages to remove: 0 Of course nothing to be removed. > 2008-10-13 13:26:52, DEBUG : Saving sorted settings to > 'C:\WINDOWS\system32\wpkg.xml'. Process done. Writing (empty) wpkg.xml. > **Dialpad.xml (packages.xml is exact same as this) Well, is the following content part of packages.xml or dialpad.xml? You should not duplicate entries. Either you declare all packages within packages.xml or you put the definition into splitted files within the packages/ sub-directory. But not in both - this could lead to confusion. > <?xml version="1.0" encoding="UTF-8"?> > <packages> > <package > id="dialpad" > name="SafeSoft Diapad" > revision="1" > reboot="false" > priority="5"> > <check type="uninstall" condition="exists" path="Dialpad 1.0" /> > <install cmd='"%SOFTWARE%\Mortgage Dialer Client\setup3.exe" > /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\SafeSoft Dialpad"'/> > <remove cmd='"%PROGRAMFILES%\SafeSoft Dialpad\unins000.exe" /VERYSILENT > /NORESTART' /> > </package> > </packages> Not verified in detail, but looks OK. > **Host.xml (made this one machine to just test it ) > <?xml version="1.0" encoding="UTF-8"?> > <!-- Lists host names and associated profile. This file can be edited > directly, or even created automatically depending on your > environment. > For more info, see http://wpkg.org/index.php/Category:Documentation > --> > <wpkg> > <host name="awws66" profile-id="dialpad" /> > </wpkg> OK. This assigns the profile 'dialpad' to the host 'awws66'. Seems to work properly (see above). > **profiles.xml > <?xml version="1.0" encoding="UTF-8"?> > <!-- System profile database. > Lists profiles available to the systems. A profile represents a certain > selection of packages from the packages database. Profiles can > depend on > other profiles, the end result being the sum of all required packages. > THIS IS A SAMPLE FILE > For more info, see http://wpkg.org/index.php/Category:Documentation > --> > <profiles> > <profile id="dialpad"> > <depends profile-id="dialpad" /> > </profile> > </profiles> This seems to be the problem. Your profile 'dialpad' is depending on itself (which actually means it is "including" the profile 'dialpad'), Try changing it to: <profiles> <profile id="dialpad"> <package package-id='dialpad' /> </profile> </profiles> This will include the package 'dialpad' to the profile instead of including itself (recursively). This should solve your problem. Again, from the listing above I see that you use profiles.xml in parallel with profiles/*.xml files. First of all I suggest to remove the (sample) profiles/room1.xml you still have in place. Then I recommend to make sure that the profile mentioned right above is either part of 'dialpad.xml' OR 'packages.xml' but not in both! br, Rainer Thanks a lot for the quick response! I guess I am still a bit confused on why there is host.xml profile.xml and packages.xml if there are folders which should contain these files as well. I finally got it to work by deleting the *.xml file inside of the packages folder and just using the wpkg\packages.xml file for install instead of duplicating it by also using wpkg\packages\*.xml I also renamed the host, profile and package ids to be a bit more descriptive so that I could figure out what was calling what. Thanks again, -Kevin |