Re: [wpkg-users] Trouble installing Registry entries

2008-09-24 Thread Rainer Meier
Hi,

Christopher Leslie wrote:
 Here's the .xml and the .reg
 
 packages
  package
  id=morrisoncert
  name=Security Cert for IV4
  revision=1
  priority=100
  execute= always
 check type=registry condition=exists
 path=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\ROOT\Certificates\910C309AD02F637DE043158A04ADDBE468E0422A
 install cmd='regedit /s %SOFTWARE%\Software\morrisoncert.reg' /
  /package
 /packages

Try changing the check to check for the existens of the written Blob
value instead of the plain key:

check type=registry condition=exists
path=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\ROOT\Certificates\910C309AD02F637DE043158A04ADDBE468E0422A\Blob
/

In addition it looks a bit to me like the XML sniplet you used above is
not valid XML (closing tag of check node missing). Well, I might be too
tired at the moment...


br,
Rainer
-
wpkg-users mailing list archives  http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] Trouble installing Registry entries

2008-09-23 Thread Christopher Leslie
Well, getting closer on this one. After a week off due to a server
changeover I've had a chance to play with this more in my test environment.
Getting hits on the log file now, but the edits still aren't applying.
I've tried as both SYSTEM and using Administrator Cridentials with the
same results.

2008-09-23 14:05:50, DEBUG  : Initialized temporary local log file:
C:\WINDOWS\TEMP\wpkg-logInit.log
2008-09-23 14:05:50, DEBUG  : Initializing new log file:
C:\WINDOWS\TEMP\wpkg-chrisxpprovm.log
2008-09-23 14:05:50, DEBUG  : Reboot-Cmd is standard.
2008-09-23 14:05:50, DEBUG  : WPKG 1.0.2 starting...
2008-09-23 14:05:50, DEBUG  : Base directory is '\\arabis-red\wpkg'.
2008-09-23 14:05:50, DEBUG  : Log level is 255
2008-09-23 14:05:50, DEBUG  : Trying to read XML file:
\\arabis-red\wpkg\profiles.xml
2008-09-23 14:05:50, DEBUG  : Successfully loaded XML file:
\\arabis-red\wpkg\profiles.xml
2008-09-23 14:05:50, DEBUG  : Trying to read XML files from directory:
\\arabis-red\wpkg\profiles
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/profiles/standard.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/profiles/test.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/profiles/regedit.xml
2008-09-23 14:05:51, DEBUG  : Trying to read XML file:
\\arabis-red\wpkg\hosts.xml
2008-09-23 14:05:51, DEBUG  : Successfully loaded XML file:
\\arabis-red\wpkg\hosts.xml
2008-09-23 14:05:51, DEBUG  : Trying to read XML files from directory:
\\arabis-red\wpkg\hosts
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/hosts/chrixpprovm.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/hosts/standard.xml
2008-09-23 14:05:51, DEBUG  : Trying to read XML file:
\\arabis-red\wpkg\packages.xml
2008-09-23 14:05:51, DEBUG  : Successfully loaded XML file:
\\arabis-red\wpkg\packages.xml
2008-09-23 14:05:51, DEBUG  : Trying to read XML files from directory:
\\arabis-red\wpkg\packages
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/morrisoncert.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/windowsupdate.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/thunderbird.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/flashplayrfirefox.xml
2008-09-23 14:05:51, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/firefox.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/java.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/off2007fmtconv.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/bitdefender.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/flashplayerie.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/adobe-reader.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/dotnet1.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/dotnet20.xml
2008-09-23 14:05:52, DEBUG  : Reading XML file:
//arabis-red/wpkg/packages/officexp.xml
2008-09-23 14:05:52, DEBUG  : Profiles applying to the current host:|test|
2008-09-23 14:05:52, DEBUG  : Reading settings file:
C:\WINDOWS\system32\wpkg.xml
2008-09-23 14:05:52, DEBUG  : Trying to read XML file:
C:\WINDOWS\system32\wpkg.xml
2008-09-23 14:05:52, DEBUG  : Successfully loaded XML file:
C:\WINDOWS\system32\wpkg.xml
2008-09-23 14:05:52, DEBUG  : Getting profiles which apply to this node.
2008-09-23 14:05:52, DEBUG  : Applying profile: test
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'windowsupdate' to
profile packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Auto Updates From WSUS
Server (windowsupdate) in package database
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'morrisoncert' to
profile packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Security Cert for IV4
(morrisoncert) in package database
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'firefox' to
profile packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Mozilla Firefox 3
(firefox) in package database
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'thunderbird' to
profile packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Mozilla Thunderbird
(thunderbird) in package database
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'adobe-reader' to
profile packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Adobe Reader 7.0.9
(adobe-reader) in package database
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'office' to profile
packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Microsoft Office XP
(office) in package database
2008-09-23 14:05:52, DEBUG  : Adding package with ID 'off2007fmtconv' to
profile packages.
2008-09-23 14:05:52, DEBUG  : Found package node 'Compatibility Pack for
the 2007 Office System (off2007fmtconv) in package database
2008-09-23 14:05:52, 

Re: [wpkg-users] Trouble installing Registry entries

2008-09-23 Thread Rainer Meier
Hi Christopher,

Christopher Leslie wrote:
 Well, getting closer on this one. After a week off due to a server
 changeover I've had a chance to play with this more in my test environment.
 Getting hits on the log file now, but the edits still aren't applying.
 I've tried as both SYSTEM and using Administrator Cridentials with the
 same results.
 2008-09-23 14:05:54, DEBUG  : Executing command : regedit /s
 %SOFTWARE%\Software\morrisoncert.reg
 2008-09-23 14:05:56, DEBUG  : Command in installation of Security Cert
 for IV4 returned exit code [0]. Success.
 2008-09-23 14:05:56, DEBUG  : Checking existence of package: Security
 Cert for IV4
 2008-09-23 14:05:56, DEBUG  : The registry path
 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\ROOT\Certificates\910C309AD02F637DE043158A04ADDBE468E0422A'
 does not exist: the check failed
 2008-09-23 14:05:56, ERROR  : Could not process (install) Security Cert
 for IV4.|Failed checking after installation.

The message is actually quite clear here. The registry key does not seem
to exist. Could you please post the content of morrisoncert.reg as
well as the package definition (XML sniplet) of the 'morrisoncert' package?


br,
Rainer
-
wpkg-users mailing list archives  http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] Trouble installing Registry entries

2008-09-14 Thread Rainer Meier
Hi Tomasz,

Tomasz Chmielewski wrote:
 packages
  package
  id=autoup
  name=Auto Updates From WSUS Server
  revision=0
 
 Hmm, revision 0? Will that work?

Yes, it should actually work. The revision just needs to be any integer
number (and 0 is a valid integer).

Well, the OP uses regedit.exe /s. I usually use the reg tool to
directly manipulate registry keys.

It might be that regedit.exe cannot read the reg file from %SOFTWARE%
since it is an UNC path or it contains spaces. Probably the OP should
try to quote the commands:

 install cmd='regedit.exe /s %SOFTWARE%\autoupdates.reg' /


br,
Rainer
-
wpkg-users mailing list archives  http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] Trouble installing Registry entries

2008-09-12 Thread Tomasz Chmielewski
Christopher Leslie schrieb:
 I've been trying to  install some registry keys using a .reg file to set
 the PC to use our WSUS server.
 All other packages that I am installing seem to go off without a hitch,
 but for some reason this one is consistently skipped. Included  is the
 log file and copies of my profile.xml, package.xml for this particular
 package. Is there some base setting that I am missing that is causing
 the registry edit to be skipped?
 
 -Chris
 
 packages
  package
  id=autoup
  name=Auto Updates From WSUS Server
  revision=0

Hmm, revision 0? Will that work?


-- 
Tomasz Chmielewski
http://wpkg.org
-
wpkg-users mailing list archives  http://lists.wpkg.org/pipermail/wpkg-users/
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users