[wpkg-users] Program installs fine when calling js, but not when through service

Mike Morawski webmaster at migee.com
Sat Jul 10 16:53:54 CEST 2010


  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?



More information about the wpkg-users mailing list