Re: [wpkg-users] how to safely copy wpkg.xml to a central UNC location when using Wpkg Agent (for after-processing with wpkgCreateReport)

2012-01-26 Thread Leon Hedding (ICT)
From: wpkg-users-boun...@lists.wpkg.org 
[mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Urs Rau (UK)
Sent: 26 January 2012 13:04
To: wpkg-users@lists.wpkg.org
Subject: [wpkg-users] how to safely copy wpkg.xml to a central UNC location 
when using Wpkg Agent (for after-processing with wpkgCreateReport)

I am probably missing the tree for the forrest on this one. It seems so easy 
and even the product docs for wpkgCreateReport says under point 2.2


2. Prerequisites

cut some

The prerequisite is that you have copied the wpkg.xml file of every client to a 
central directory, carrying the name of the computer it originates from. This 
can easily be achieved by appending something like the following command line 
at the end of the script file you are calling wpkg from.

copy /Y %windir%\system32\wpkg.xml 
%wpkgshare%\clientStates\%computername%.xml
I can see how this is easily achieved in a deployment where a batch file calls 
up wpkg.js processing, one adds it just after cscript has finished executing 
wpkg.js and returns.

But how do you practically do it when using the wpkg agent, which is a service 
that does not really finish or return in that sense ? It seems that anything I 
try to do from it finds the wpkg.xml locked because the wpkg agent is currently 
processing it. Doohh!

There must be an embarrassingly easy answer to this, surely?

Thanks for pointing out what must be really obvious to most.

Regards,

--
Urs Rau


Operation Mobilisation (OM) - a company limited by guarantee - The Quinta, 
Weston Rhyn, Oswestry, SY10 7LT, United Kingdom
Company reg no: 2564320 (England  Wales) - Charity reg. no: 1008196 (England  
Wales) - SC040988 (Scotland)
Web: http://www.uk.om.org

Urs,

I was just testing this myself. Drove me nuts for a while since it would work 
for me, but not for the agent. The way to get it work (at least on a Windows 7 
64-bit OS) is to map the network drive to a drive letter first. It would not 
work until I mapped the drive letter.

Cheers,

Leon Hedding



OM International Limited - Unit B Clifford Court, Cooper Way - Carlisle CA3 0JG 
- United Kingdom
A company limited by guarantee - Charity reg no: 1112655 - Company reg no: 
5649412 (England and Wales)
-
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


[wpkg-users] WPKG Agent Error

2009-06-03 Thread Leon Hedding (ICT)
On a brand new computer I am getting the following error message when I
install the WPKG Agent and try to sync. The command line I am using is
wpkg.js /synchronize /nonotify /quiet. I have enabled debug logging
but that is not telling me anything more. I don't know what else to try
to figure out why it is failing? I am running WPKG Agent 1.3.6 and
wpkg.js is at 1.1.0.

 

Event Type: Error

Event Source: WSH

Event Category: None

Event ID: 1

Date: 03/06/2009

Time: 15:50:03

User: N/A

Computer: ComputerA

Description:

Message: Unable to notify user that the system was about to begin
updating. Path not found

Description: Unable to notify user that the system was about to begin
updating. Path not found

Error number: 1

Stack: undefined

Line: undefined

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

 

It then exits with the following error:

Event Type: Error

Event Source: WSH

Event Category: None

Event ID: 1

Date: 03/06/2009

Time: 15:50:03

User: N/A

Computer: ComputerA

Description: 

Scrip execution failure. Exit code 1

 

Cheers,

Leon Hedding

 

-
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] WPKG Agent Blocks Shutdown

2008-11-25 Thread Leon Hedding (ICT)
I did not have any replies on this one. Has anyone else experienced this
issue?

 

Cheers,

 

Leon Hedding

 

From: Leon Hedding (ICT) 
Sent: 18 November 2008 18:55
To: wpkg-users@lists.wpkg.org
Subject: WPKG Agent Blocks Shutdown

 

I am running into issues where a package install/upgrade command fails
to complete. It hangs on an setup.exe process indefinitely. In the past
this has not been an issue. I am now using version 1.3.6 which now
causes an issue because the computer no longer allows you to shutdown or
logoff the computer if the wpkginst process is still running. You can
logoff if you are a local administrator, but otherwise the computer
cannot reboot or logoff as a standard user. Is this a design feature? I
had not expected this feature and it has caused some issues for me
because I did not know it was going to occur. I had as well expected a
timeout feature, but that does not seem to have occurred as well.

 

Cheers,

Leon Hedding
Senior IT Engineer

OM - ICT
Clifford Court
Cooper Way
Parkhouse
Carlisle Cumbria
CA3 0JG
United Kingdom
+44 (0)1228 615 124
+44 (0)1228 515 607 fax

 

-
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] WPKG Agent Blocks Shutdown

2008-11-25 Thread Leon Hedding (ICT)
The problem I have with the 1.3.5 client is that it does not work to use
the settings file when it is located on a UNC.

Cheers,

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


[wpkg-users] WPKG Agent Blocks Shutdown

2008-11-18 Thread Leon Hedding (ICT)
I am running into issues where a package install/upgrade command fails
to complete. It hangs on an setup.exe process indefinitely. In the past
this has not been an issue. I am now using version 1.3.6 which now
causes an issue because the computer no longer allows you to shutdown or
logoff the computer if the wpkginst process is still running. You can
logoff if you are a local administrator, but otherwise the computer
cannot reboot or logoff as a standard user. Is this a design feature? I
had not expected this feature and it has caused some issues for me
because I did not know it was going to occur. I had as well expected a
timeout feature, but that does not seem to have occurred as well.

 

Cheers,

Leon Hedding
Senior IT Engineer

OM - ICT
Clifford Court
Cooper Way
Parkhouse
Carlisle Cumbria
CA3 0JG
United Kingdom
+44 (0)1228 615 124
+44 (0)1228 515 607 fax

 

-
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] WPKG Agent 1.3.5 Install Failure

2008-11-03 Thread Leon Hedding (ICT)
The thing is I am not using a script. I am just using the server IP or
name and the script field is greyed out so that I cannot put any
information in for the delay.

Cheers,

Leon Hedding


-Original Message-
From: Tomasz Chmielewski [mailto:[EMAIL PROTECTED] 
Sent: 03 November 2008 13:02
To: Leon Hedding (ICT)
Cc: wpkg-users@lists.wpkg.org
Subject: Re: [wpkg-users] WPKG Agent 1.3.5 Install Failure

Leon Hedding (ICT) schrieb:

This one:

 server-connecting-script-timeout/server-connecting-script-timeout

Should have a value, even if it's not used.

So, just put 3 there, and it should work for you.


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


Re: [wpkg-users] WPKG Agent 1.3.5 Install Failure

2008-10-31 Thread Leon Hedding (ICT)
Tomasz,

I did not have time to test and reply until now. It does matter if I
have spaces in the path. These are the command lines I am using.

msixexec /i \\server\share$\app\wpkg agent\wpkg agent.msi
SETTINGSFILE=\\server\share$\app\wpkg agent\settings.xml /qn ALLUSERS=1
REBOOT=ReallySuppress

AND

msixexec /i \\server\share$\app\wpkg agent\wpkg agent.msi
SETTINGSFILE=\\server\share$\app\wpkg agent\settings.xml /qn
ALLUSERS=1 REBOOT=ReallySuppress

The first one fails and tells me that my command line is incorrect. I
assume this because I have spaces in the UNC. The second one fails
because it cannot find the settings file and gives me the error I told
you about before. I have copied the exact error message below.

Product: WPKG -- Error 1722. There is a problem with this Windows
Installer package. A program run as part of the setup did not finish as
expected. Contact your support personnel or package vendor.  Action
_A9459942_EE79_497A_9080_F39DDA8A7B80, location: C:\Program
Files\wpkg\wpkginst.exe, command:
--SETTINGSFILE=\\server\share$\app\wpkg agent\settings.xml

Cheers,

Leon Hedding

-
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] MS Office 2003 Install

2008-07-09 Thread Leon Hedding (ICT)
The issue is that you need to put quotes around the transform and drop
the path part of the statement.

 

TRANSFORMS=quot;New Custom Setup File.MSTquot;

 

Cheers,

 

Leon Hedding

 

-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG Client 1.3.4 released (testing release), including 64 bit support

2008-07-08 Thread Leon Hedding (ICT)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Falko Trojahn
Sent: 08 July 2008 13:03
To: Rainer Meier
Cc: wpkg
Subject: Re: [wpkg-users] WPKG Client 1.3.4 released (testing release),
including 64 bit support

Yes, this is clear. It's just an idea for convenience: if I restart the
wpkg service on local or remote pc from Wpkginst tool I don't have to
open
event log viewer, connect to the Client, open events, open
application
and have a look through the messages. Easily I could have a look at the
messages in wpkg tool. Perhaps a button / link to open the application
event
log of the pc there I (re)started wpkg would be ok, too.
Opening the event log of the pc and filter for WSH is perhaps easier
to
integrate in wpkginst than opening the log file for the client, isn't
it?
[Leon Hedding] 

I sort this issue by using centralized logging that I can run tail -f
upon. I do this by modifying wpkg.js to not overwrite the log file and
by adding log rotation to wpkg.js. The reason I don't use logrotate is
because WPKG might not be installed on a Windows box which does not have
this installed and because I could not be bothered trying to figure out
how logrotate would work with my logging scheme.


[Leon Hedding] 
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] Package Renaming [SEC=UNCLASSIFIED]

2008-05-20 Thread Leon Hedding (ICT)
So possibly using a GUID as the package could already be done. The main
difficulty with that is that it is not easy to remember and type in.

The advantage is that once a package has been installed you don't ever
have to worry when renaming a package for any reason. It would be an
optional header in the XML that is only checked for upgrades and
uninstalls and only if it did not already meet the requirement of the
package ID.

The upgrade from Gaim to Pidgin was possible, but required two packages.
I bring this point up because I have had difficulties with case
sensitivity in the past and had to perform a rename of all my packages.
I know that wpkg now support non-case sensitive checks so that is a big
bonus. There are places that have run once cmd's which do not create a
residual file that is used for checking. In those instances as well it
would be helpful to have a GUID option as well.

Cheers,

Leon Hedding
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] Profile inconsistency: Package with ID'imageresize' is listed in profile but ...

2008-05-20 Thread Leon Hedding (ICT)
Remove command is incorrect. Should be:

 

msiexec /qb /l* c:\netinst\logs\powertoy.log
/x{1CB92574-96F2-467B-B793-5CEB35C40C29}

 

You missed the /x. Review of the eventvwr usually helps with MSI
packages to see why they failed to install or uninstall.

 

 

Cheers,

 

Leon Hedding

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jose Cortijo
Sent: 20 May 2008 09:27
To: Rainer Meier
Cc: wpkg-users@lists.wpkg.org
Subject: Re: [wpkg-users] Profile inconsitency: Package with
ID'imageresize' is listed in profile but ...

 

Hi again,

this is what I have in packages.xml
package
id=imageresize
name=Image Resize
revision=1
reboot=false
priority=100
notify=false
execute=always


!--
notify=false - does not notify the user (with true user would be
notified)
execute=always - always executes install cmd - sets time in this
example
execute=once - executes only once, and never again
--
check type=uninstall condition=exists path=Image Resizer
Powertoy for Windows XP /

install
cmd=\\delchnpek-fs002\wpkg-1.0.2\software\powertoys\ImageResizerPowerto
ySetup.exe /S /v/qn /
remove cmd='msiexec /qb /l* c:\netinst\logs\powertoy.log
x{1CB92574-96F2-467B-B793-5CEB35C40C29}' /

/package

and this is what I have in imageresize.xml

package
id=imageresize
name=Image Resize
revision=1
reboot=false
priority=100
notify=false
execute=always


!--
notify=false - does not notify the user (with true user would be
notified)
execute=always - always executes install cmd - sets time in this
example
execute=once - executes only once, and never again
--
check type=uninstall condition=exists path=Image Resizer
Powertoy for Windows XP /

install
cmd=\\delchnpek-fs002\wpkg-1.0.2\software\powertoys\ImageResizerPowerto
ySetup.exe /S /v/qn /
remove cmd='msiexec /qb /l* c:\netinst\logs\powertoy.log
x{1CB92574-96F2-467B-B793-5CEB35C40C29}' /

/package

The installation works fine, now I am trying uninstall the software. I
remove the entry in profile.xml and profiles\default.xml but the
software doesnt get uninstalled

some help?

thanks a lot man.
jose

2008/5/20 Jose Cortijo [EMAIL PROTECTED]:

Hi Rainer,
thanks a lot man. You were absolutely right. It is working right now. I
create an imageresize.xml in the packages folder with that lines but I
didnt know I should modify the packages.xml . 
So, the first file is not needed??

Thanks a lot

2008/5/20 Rainer Meier [EMAIL PROTECTED]:

 

Hi Jose,



Jose Cortijo wrote:

But before I tried to run it in my own computer from cmd.
I get an error the wpkg database is empty It should be empty as
far I didnt install any softwarre yet.
I create the variable SOFTWARE with the value path to software
folder in the server and run manually the script.

coudl you give me any suggestion??

 

Sure, let's try to sort it out.



Successfully loaded XML file:
\\DELCHNPEK-FS002\WPKG-1.0.2\profiles.xml

Reading XML file:
//DELCHNPEK-FS002/WPKG-1.0.2/profiles/default.xml


So two profile definition files have been read. Probably
profiles.xml is just the sample one included. You might remove it.





Successfully loaded XML file:
\\DELCHNPEK-FS002\WPKG-1.0.2\hosts.xml

 

OK, it seems to use host.xml. No host definitions stored within
the hosts/ subdirectory.



Successfully loaded XML file:
\\DELCHNPEK-FS002\WPKG-1.0.2\packages.xml

Reading XML file:
//DELCHNPEK-FS002/WPKG-1.0.2/packages/imageresize.xml


Good, here it read pacakges.xml (probably just the sample file
included). You might remove it if you don't need the packages defined
there. Reading imageresize.xml seems to be fine too.





Profiles applying to the current host:
default

 

OK; the profile assigned (look at hosts.xml) ist default.





Hosts file contains 1 hosts:
DELCHNPEK-WIT01

 

Just one host? Hmm, you might consider to use a regular
expression for productive use. Something like .+ will match all hosts.





Settings file contains 0 packages:

 

This is correct - your local wpkg.xml has not been written yet.





Packages file contains 4 packages:
wpkg1
wpkg2
wpkg3
time

 

Looks a bit like the default list of packages. And here the
problem seems to be actually. The default packages.xml includes
exactly these 4 sample packages. It seems that either your
imageresize.xml does not contain any package - or you just copied an
entry and forgot to change the ID to imageresize. Your package
definition within imageresize.xml 

Re: [wpkg-users] Package Renaming [SEC=UNCLASSIFIED]

2008-05-20 Thread Leon Hedding (ICT)
What you describe is exactly what I am thinking. The other bit is as you
say, it is quite difficult to read logs since the GUID would be in the
logs then. That is why I am wondering if having an actual (optional)
GUID value would be of benefit. It might be over kill, but would
certainly help in at least the run once instance.

Cheers,

Leon Hedding


-Original Message-
From: Rainer Meier [mailto:[EMAIL PROTECTED] 
Sent: 20 May 2008 09:37
To: Leon Hedding (ICT)
Cc: wpkg
Subject: Re: [wpkg-users] Package Renaming [SEC=UNCLASSIFIED]

To make it clear again. WPKG uses two attributes within the package 
which can be used:
id:
This attribute is the unique identifier of each package. It cannot be 
changed/renamed without making WPKG think it is a different package. So 
if you put the GUID there it's fine - as long as you don't change the
GUID.

name:
More descriptive name - you can put any string in here. You might also 
change this name later on without affecting WPKG at all.

So to take our Pidgin example again you could create a package like

packages
  package
id={unique-GUID}
name=Gaim
revision=1
reboot=false
priority=100

...

  /package
/packages

After the release of Pidgin you can do the following:

packages
  package
id={unique-GUID}
name=Pidgin
revision=2
reboot=false
priority=100

...

  /package
/packages


This would upgrade the Gaim Package to Pidgin. As long as you do not 
change the GUID within the id field.

I am not fully sure if this is what you meant. So please don't shoot me 
if not. I am sure you could explain it to me if this did not match your 
expectations.


br,
Rainer
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG client upgrade

2008-04-22 Thread Leon Hedding (ICT)
Found this interesting article on myITforum entitled Windows Installer and In 
Use Files. It is dated 2003, but the Windows Installer should still behave 
this way.

http://www.myitforum.com/articles/6/view.asp?id=6107

Cheers,

Leon Hedding

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marco Gaiarin
Sent: 22 April 2008 09:30
To: wpkg-users@lists.wpkg.org
Subject: Re: [wpkg-users] WPKG client upgrade

Mandi! Rainer Meier
  In chel di` si favelave...

 I don't think it is very hidden or a hack. Just did a quick (very quick) 
 Google search and found the following interesting pages:

More links (ss64.com is my gold reference for windows batch and
scripting, please add a link to wpkg.org site!):

http://www.ss64.com/nt/mv.html
http://msdn2.microsoft.com/en-us/library/aa365240(VS.85).aspx
http://support.microsoft.com/?scid=kb%3Ben-us%3B140570x=11y=17

i think the only trouble could be that wscript/cscript interpreters or
the .msi installer framework does not 'export' the MoveFileEx() function,
but i hope this is not the case.

-- 
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  marco.gaiarin(at)sv.lnf.it  tel +39-0434-842711  fax +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
   http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] Thanks for everything - WPKG is nice but it still needs improvement

2008-03-26 Thread Leon Hedding (ICT)
You need to run /force with the other commands as well. So /synchronize /quiet 
/force

Cheers,
 
Leon Hedding


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Handy
Sent: 26 March 2008 22:09
To: Steve Handy; Leon Hedding (ICT); Rainer Meier
Cc: wpkg-users@lists.wpkg.org
Subject: Re: [wpkg-users] Thanks for everything - WPKG is nice but it still 
needs improvement

I tried it and it said no parameters specified.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Handy
Sent: Wednesday, March 26, 2008 5:07 PM
To: 'Leon Hedding (ICT)'; Rainer Meier
Cc: wpkg-users@lists.wpkg.org
Subject: Re: [wpkg-users] Thanks for everything - WPKG is nice but it still 
needs improvement

I was thinking the same thing. So basically if I run cscript 
\\Store1\WPKG\wpkg.js /force it should work?

I will try this


Steve

-Original Message-
From: Leon Hedding (ICT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 5:04 PM
To: Steve Handy; Rainer Meier
Cc: wpkg-users@lists.wpkg.org
Subject: RE: [wpkg-users] Thanks for everything - WPKG is nice but it 
stillneeds improvement

Steve,

From my understanding, once WPKG has confirmed that the software has been 
installed it will add that information to wpkg.xml and no longer check to see 
that the software is installed. To make it always check that the software is 
installed (and not use wpkg.xml) you need to run it with a /force command. 
Read through this http://wpkg.org/WPKG_flags to see what each of the command 
line flags do.

Cheers,

Leon Hedding


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Handy
Sent: 26 March 2008 21:55
To: 'Rainer Meier'
Cc: 'wpkg-users@lists.wpkg.org'
Subject: [wpkg-users] Thanks for everything - WPKG is nice but it stillneeds 
improvement
Importance: High

Gentlemen I want to thank you for everything. We engaged in some great 
conversation today. WPKG is a great tool. I will use it on the LAN level within 
my organization. However at the offsite level, the program still needs some 
improvement. The WPKG still DOES NOT reinstall software when a user removes it. 
Incrementing the revision of course is not the answer. I agree with Rainer on 
this. When a solution is available please let me know.


Thanks guys
Steve Handy

-Original Message-
From: Rainer Meier [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 4:18 PM
To: Steve Handy
Cc: 'Adam Williams'; 'wpkg-users@lists.wpkg.org'
Subject: Re: [wpkg-users] Can WPKG install packages while user is at desktop - 
Lets move on the 2nd problem

Hi Steve,

Steve Handy wrote:
 One more thing though. Why is it that when I uninstall the firefox, and then 
 run the cscript \\ /sync.., the program doesn't install.

As written already many times either you used execute=once or the
checks still evaluated true. In case (parts) of an application is still
running it is quite common that the uninstall entry is not entirely
removed until the next reboot (when uninstall is finished, files are
removed and uninstall entry is cleanded). So WPKG might still find the
uninstall entries unless you reboot and therefore thinks the application
is still installed.


 Let's move on Rainer:

  So basically what I have I good. Great. Okay, now here is the 2nd dilemma.

 We have employees here at my organization. They have offsite laptops. 
 Currently they use the Windows PPTP VPN client to connect to the company from 
 outside. When they initially boot, they DO NOT HAVE a network connection 
 established. (So  WPKG will NOT install software at this point). When they 
 arrive at their respective desktops, they establish a network connection via 
 Sprint broadband air cards they have. They then click the VPN icon to 
 establish a VPN connection into the company.

  Here is where WPKG comes in, I need the WPKG to execute the cscript
\\Store1\WPKG\wkpg.js /Synchronize /quiet and check for packages that
need to be installed. (and install if necessary).
 
  How do I make this happen?

Well, you don't need WPKG to invoke itself as you wrote. You need to
configure your VPN software to run WPKG when the connection is up and
running. I know that some VPN clients (OpenVPN for sure) allows you to
define some scripts to be run after connection establishment. There you
can simply add a batch script to execute WPKG.

Today I wrote already as an answer to another request that you might
simply run the WPKG service from command line instead of manually
invoking the wpkg.js script. Of course this only applies if you
installed WPKG client and the service is available. If yes, then you
might use the command

net start WpkgService

to run the WPKG service again. This works perfectly fine if you
configure WPKG client to terminate after wpkg.js terminated (see
configuration). If not, then you might need to execute 'net stop' before
to terminate the still running service:

net stop