[wpkg-users] WPKG installer 0.80 released

Marco Gaiarin gaio at sv.lnf.it
Tue Dec 12 15:14:24 CET 2006


Mandi! Tomasz Chmielewski
  In chel di` si favelave...

> > ...but seems not so automagically from 0.70. ;(((
> Indeed, you won't upgrade the application; it looks like I announced the 
> feature that didn't make it into the release :(

I make some other experimentation.

I've setup a test environment where i've setup a wpkg package like:

 <package
        id="wpkgtest"
        name="WPKG"
        revision="70"
        priority="100"
        reboot="false">

        <check type="uninstall" condition="exists" path="WPKG" />

        <install cmd='msiexec /qb /i %SOFTWARE%\WPKG\0.70\WPKGSetup.msi SETTINGSFILE=%WPKGROOT%\settings.xml' />
        <upgrade cmd='%WPKGROOT%\wpkg070at.bat' />
        <remove cmd='msiexec /qb /x{BD368683-C6EB-480A-B497-56CE35D59D28}' />
 </package>

where %WPKGROOT%\wpkg070at.bat are:

 :: Extract current time
 ::
 For /f "tokens=1-2 delims=.:" %%i in ('time /t') do (
        set h=%%i
        set m=%%j
 )

 :: do some calculation
 ::
 set /a m += 5
 if %m% GEQ 60 (
        set /a m -= 60
        set /a h += 1
 )
 if %h% GEQ 24 (
        set /a h -= 24
 )

 :: OK, we are now able to reschedule 5 minutes in advance.
 ::
 at %h%:%m% /interactive "\\file\wpkg\wpkg070upg.bat"

 :: We have no chance to verify the installation of the software...
 ::
 exit 0

and last \\file\wpkg\wpkg070upg.bat are:

 :: some environment variable
 ::
 set WPKGROOT=\\FILE\wpkg
 set SOFTWARE=\\MEDIA\Software

 :: first things, for max safety we stop wpkg service
 ::
 net stop "WPKG Service"

 :: then, upgrade!
 :: (really, reinstall)
 ::
 :: msiexec /x{BD368683-C6EB-480A-B497-56CE35D59D28}
 :: msiexec /x %SOFTWARE%\WPKG\0.70\WPKGSetup.msi
 msiexec /i %SOFTWARE%\WPKG\WPKGSetup.msi SETTINGSFILE=%WPKGROOT%\settings.xml

 :: we ignore exit status
 ::
 exit 0

The at script hack work flawlessy, the 'net stop "WPKG Service"'
command too, but still the overall system does not work.

Some info (clearly, after moving version from 70 to 80 and starting
WPKG Service by hand):

1) if i enable 'msiexec /x{BD368683-C6EB-480A-B497-56CE35D59D28}' or
 equally 'msiexec /x %SOFTWARE%\WPKG\0.70\WPKGSetup.msi' the uninstall
fail with some sort of 'package not installed'.
(strange... i've restarted the command by hand and seems work now...
boh...)

2) 'msiexec /i %SOFTWARE%\WPKG\WPKGSetup.msi ...' fail for the same
 reason founded yesterday: for some reason the permission of
%programfiles%\wpkg\ got totally removed, no one ACL listed, and so
there's an error like:

  There's a problem with this windows installer package. A program
  required for this install to complete could not be run. contact your
  support personnel or package vendor.

that i think it is only a mere consequences of ACL removed.


> Sorry for trouble.

Oh, nema problema!

I'm only in doubt if i'm doing something wrong...

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






VDEV
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list