Re: [wpkg-users] Script execution: failure. Exit code: 1

2011-03-28 Thread Geoff Brown
I have found that often the installation of some Development IDE or Dreamweaver 
will often take ownership of .js and .vbs files.

Setting a startup script that runs before WPKG can help remedy the situation:

-->script below<--

regsvr32 vbscript /s
regsvr32 jscript /s

-->script above<--

Try manually running those command lines on a single problem system to see if 
it fixes you!

Hope this helps.

On 2011-03-27, at 2:25 PM, David Petterson wrote:

> On one of my computers running Windows XP Home edition and WPKG Client 1.3.9 
> get this error:
> "Script execution: failure. Exit code: 1"
> 
> Every time the service run on system startup it fails, but when I start the 
> service manually everything works fine.
> 
> Anyone got a clue how to fix this?
> 
> /David
> 
> --
> David Petterson Phone: +46(0)13-28 2617
> Systems Administrator
> Department of Physics, Chemistry and Biology at Linköping University
> Office: F F202
> SE 581 83 Linköping, Sweden
> -
> 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


---
Geoff Brown
IT Services, SFU Surrey Campus
Phone : 778-782-7472
Cellular: 604-786-7757
IM: geoff...@jabber.sfu.ca
___
Simon Fraser University Surrey
250 - 13450 102nd Avenue
Surrey, BC
V3T 0A3

-
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] Script execution: failure. Exit code: 1

2011-03-28 Thread David Petterson
I have a dropbox sync for all packages, so the wpkg root with all
xml-files are shared as \\127.0.0.1\wpkg$
(software files are downloaded from a web share)

I'll try to add a delay script and see if that works.
XP Home is also lacks taskkill, so I had to copy that from another
computer to make sure my packages work as they should.

Thank you all!


David Petterson   Phone: +46(0)13-28 2617
Systems Administrator
Department of Physics, Chemistry and Biology at Linköping University
Office: F F202
SE 581 83 Linköping, Sweden

On 2011-03-28 13:30, Malte Starostik wrote:
> Am Montag, 28. März 2011, 12:53:20 schrieb David Petterson:
>>> Did you configure the user/password for the service to use.  Can this
>>> account access the server?
>>> You can try to run cmd via psexec as the same user (SYSTEM?) that WPKG
>>> Client runs as and see if you can access the server from that shell.
>>
>> It uses the same (SYSTEM) user account as on my other computers running
>> XP Pro and Windows 7. When I start the service manually it works fine.
> 
> Not sure if this applies to XP Home and if this fix works.  In the registry, 
> under HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows 
> NT\CurrentVersion\Winlogon\ try setting the value of SyncForegroundPolicy to 
> 1 
> (or add it as a REG_DWORD if it doesn't exist).
> If that fails, you could maybe delay the WPKG execution by some other means - 
> a local script to execute before the action wpkg run, a local wrapper script 
> or just a connect script with a long delay.  Anything that runs locally to 
> waste some time for the network to come up.
> 
> HTH,
> Malte
-
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] Script execution: failure. Exit code: 1

2011-03-28 Thread Malte Starostik
Am Montag, 28. März 2011, 12:53:20 schrieb David Petterson:
> > Did you configure the user/password for the service to use.  Can this
> > account access the server?
> > You can try to run cmd via psexec as the same user (SYSTEM?) that WPKG
> > Client runs as and see if you can access the server from that shell.
> 
> It uses the same (SYSTEM) user account as on my other computers running
> XP Pro and Windows 7. When I start the service manually it works fine.

Not sure if this applies to XP Home and if this fix works.  In the registry, 
under HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows 
NT\CurrentVersion\Winlogon\ try setting the value of SyncForegroundPolicy to 1 
(or add it as a REG_DWORD if it doesn't exist).
If that fails, you could maybe delay the WPKG execution by some other means - 
a local script to execute before the action wpkg run, a local wrapper script 
or just a connect script with a long delay.  Anything that runs locally to 
waste some time for the network to come up.

HTH,
Malte
-
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] Script execution: failure. Exit code: 1

2011-03-28 Thread David Petterson
> Did you configure the user/password for the service to use.  Can this account 
> access the server?
> You can try to run cmd via psexec as the same user (SYSTEM?) that WPKG Client 
> runs as and see if you can access the server from that shell.
> 
> Good luck,
> Malte

It uses the same (SYSTEM) user account as on my other computers running
XP Pro and Windows 7. When I start the service manually it works fine.


> Run a verbose in CMD.
> Like cscript \\server-ip\wpkg\wpkg.js /synchronise /debug
> The output must explain more much more.

> Greetz, WK

Manual sync works fine, only the system service wont work when auto
started on system startup.

/David
-
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] Script execution: failure. Exit code: 1

2011-03-28 Thread Malte Starostik
Am Sonntag, 27. März 2011, 23:25:35 schrieb David Petterson:
> On one of my computers running Windows XP Home edition and WPKG Client
> 1.3.9 get this error:
> "Script execution: failure. Exit code: 1"
> 
> Every time the service run on system startup it fails, but when I start
> the service manually everything works fine.
> 
> Anyone got a clue how to fix this?

Did you configure the user/password for the service to use.  Can this account 
access the server?
You can try to run cmd via psexec as the same user (SYSTEM?) that WPKG Client 
runs as and see if you can access the server from that shell.

Good luck,
Malte
-
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] Script execution: failure. Exit code: 1

2010-10-27 Thread Malte Starostik
Hi Ulli,

I was recently bitten by an uninstall of Adobe CS3 which badly messed up the 
.js file association - presumably because of Dreamweaver which registers 
itself for those files.
It was not a matter of assuring .js files run with [cw]script.exe, because 
somehow CS3 managed to completely break the thing - when running sth. like 
"cscript /nologo somescript.js", WSH complained that it has no scripting 
engine for files with the extension .js.
The simple fix was to set the (default) value of the registry key HKCR\.js to 
"JSFile" (w/o the quotes).

HTH,
Malte

Am Mittwoch, 27. Oktober 2010, 14:28:41 schrieb Ulli Conrad:
> Hi there,
> 
> had this problem on one machine. WPKG works perfect on all other
> machines in our department.
> 
> Since I saw (while searching the list archive) that a lot of people
> have/had this problem too, here's the solution (for this particular
> machine):
> 
> Another application (Apple Quicktime) has claimed handling of .js
> files (for whatever reason), so Windows Scripting Host didn't
> executed the wpkg.js file on the server...
> Solution is to reassign file type .js to WSH (in Windows Explorer -
> folder options - file types) and/or reinstall WSH (by right click on
> %windir%\inf\wsh.inf and select "Install").
> 
> Just posting this in case someone else have the same problem ;-)
-
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] Script execution: failure. Exit code: 1

2010-10-27 Thread trple . dragon
Hi Troy,

Yes I installed the
WPKG32.msi
it on all workstations
default installation path...

Thank You

On Wed, Oct 27, 2010 at 3:16 PM, Troy Hamilton wrote:

> On Wed, Oct 27, 2010 at 11:04 AM,  wrote:
>
>> Hi Troy,
>>
>> Thats what I was thinking but I can't find a wpkg.bat file ..
>> I can see wpkginst.exe and WPKGMessage.exe and those are compiled file so
>> they can't be edited ...
>> There isn't really a spot to add that line anywhere  I looked before
>> asking
>>
>>
> Are using WPKG Client (where you install the msi on each workstation)?
>
>
> --Troy
>
>
> -
> 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 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] Script execution: failure. Exit code: 1

2010-10-27 Thread Troy Hamilton
On Wed, Oct 27, 2010 at 11:04 AM,  wrote:

> Hi Troy,
>
> Thats what I was thinking but I can't find a wpkg.bat file ..
> I can see wpkginst.exe and WPKGMessage.exe and those are compiled file so
> they can't be edited ...
> There isn't really a spot to add that line anywhere  I looked before asking
>
>
Are using WPKG Client (where you install the msi on each workstation)?


--Troy
-
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] Script execution: failure. Exit code: 1

2010-10-27 Thread Troy Hamilton
On Wed, Oct 27, 2010 at 6:28 AM, Ulli Conrad <
ulli.con...@bio.uni-goettingen.de> wrote:
>
> Another application (Apple Quicktime) has claimed handling of .js
> files (for whatever reason), so Windows Scripting Host didn't
> executed the wpkg.js file on the server...
> Solution is to reassign file type .js to WSH (in Windows Explorer -
> folder options - file types) and/or reinstall WSH (by right click on
> %windir%\inf\wsh.inf and select "Install").
>
>
Another way to avoid this problem without having to install that inf on each
machine is to explicitly specify the script type when you call wpkg.js:

cscript.exe //nologo /E:JScript %WPKGROOT%\wpkg.js /synchronize


--Troy
-
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] Script execution failure

2010-08-10 Thread Falko Trojahn
Hello James,


> I am currently testing WPKG so as we can deploy it across our network.
> Have run into a problem when using with wpkgExpress.
>
for all problems related to wpkgExpress, please use the wpkg-Express
mailing list:
http://groups.google.com/group/wpkgexpress-support?hl=en

> In our set up we are using the latest version of WPKG, WPKG client and
> wpkgExpress. After setting up the config file to pull the xml files
> from the correct location, I managed to get the client to update and
> install software when using the command "cscript \\server\wpkg\wpkg.js
>  /synchronize /debug", however
> it will not synchronise using the WPKG client service. In the event
> log I get the following message:
>
Perhaps it's better to have a look into the debug log file - if you did
not set "log_file_path" parameter in config.xml, then have a look at
your %TEMP% directory.

>  
>
> Event TypeError
>
> Event Source WpkgService
>
> Event Category  None
>
> Event ID1
>
> Date 10082010
>
> Time 85642 AM
>
> User NA
>
> Computer  YWPKGCLIENT
>
> Description
>
> Script execution failure. Exit code 1
>
>  
>
> I thought this might be something to do with wpkgExpress, as I had not
> set up the default xml files in the base WPKG dir. However, even when
> I had these files set up, I received the same error on the client.
>
>
In your config.xml, what did you set for web_packages_file_name,
web_profiles_file_name, web_hosts_file_name?

Have a look at what wpkgExpress gives you as XML outputs - e.g.

http://yourserver/wpkgexpress/packages.xml
http://yourserver/wpkgexpress/profiles.xml
http://yourserver/wpkgexpress/hosts.xml


To differentiate between wpkgExpress and wpkg errors save these to
"normal" xml files and try with wpkg.js on command line.

I hope I could give you an idea, where to have a closer look.

Best regards,
Falko


-
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