I just had the same phenomenon happen to me. It turns out that the reason is 
actually embedded in a comment in wpkg.js: if the program you call from within 
your .JS produces more than approximately 4kb of output to stdout, a buffer 
fills up and that program stalls.

It appears that this has to do with how Microsoft implemented Javascript (I 
didn't look too deeply into it, just found the comment in wpkg.js ).

The solution is to make sure your batch file produces less output than that. 
Look into quiet output and/or redirecting output to >NUL

-----Original Message-----
From: wpkg-users-boun...@lists.wpkg.org 
[mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Mike Morawski
Sent: Saturday, July 10, 2010 7:54 AM
To: wpkg-users@lists.wpkg.org
Subject: [wpkg-users] Program installs fine when calling js, but not when 
through service

  I have a program that uninstalls MSDE 1.0 and reinstalls it after a computer 
name change. This is used for a few computer labs. I'm having a real difficult 
problem (First time user of wpkg and I've spent more time than I'd like to 
admit to get this to work!), first, here is the batch file I'm running:

REM ======REMOVE======

NET STOP "MSSQLServer"

taskkill /F /IM "sqlmangr.exe"

start /wait %systemdrive%\WINDOWS\IsUninst.exe -msql70.mif 
-f"%systemdrive%\MSSQL7\uninst.isu" -C"%systemdrive%\MSSQL7\sqlsun.dll" 
-y -a

REM ======INSTALL=====

copy \\205.189.30.226\WPKG\Programs\msde\mike_msde_setup.iss %windir% 
\\205.189.30.226\WPKG\Programs\msde\x86\setup\setupsql.exe k=Dk -s -m
-f1 "%windir%\mike_msde_setup.iss"

REM ======DONE======

When running the batch file directly on the UNC share, it will complete fine. 
When I run wpkg.js through cscript with the same command in wpkg it will 
complete fine. When I let the service run, it never completes, it gets through 
the uninstall, and I see the install exe running which never ends and just sits 
there. WPKG is set to run as the same account I've tried the batch/direct 
cscript js call from.

Why is this?
-------------------------------------------------------------------------
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

Reply via email to