[wpkg-users] How to synchronize wpkg settings file

Falko Trojahn nospam_ft at smi-softmark.de
Mon Apr 14 16:57:41 CEST 2008


Hello Ronnie,

> I'm dealing with the following situation: I was using the package above 
> to install adobe reader:
> 
> <package id="adobereader" name="Acrobat Reader8" revision="810" 
> reboot="false" priority="2">
>         <depends package-id="ie6"/>
>         <depends package-id="msi"/>
>         <check type="file" condition="versionequalto" 
> path="%PROGRAMFILES%\Adobe\Reader 8.0\Reader\AcroRd32.exe" 
> value="8.1.0.137"/>
>         <install cmd="%SOFTWARE%\adobereader\setup.exe">
>             <exit code="0"/>
>             <exit code="0" reboot="true"/>
>         </install>
>         <remove cmd="MsiExec.exe /q 
> /x{AC76BA86-7AD7-1046-7B44-A80000000002}"/>
>         <upgrade cmd="%SOFTWARE%\adobereader\setup.exe">
>             <exit code="0"/>
>             <exit code="0" reboot="true"/>
>         </upgrade>
>     </package>
> 
> Now, I changed to another one, with new version of adobe:
> 
> <packages>
>     <package
>         id="adobereader"
>         name="Acrobat Reader8"
>         revision="812"
>         reboot="false"
>         priority="2">
>         <depends package-id="ie6"/>
>         <depends package-id="msi"/>
>  <check type="file" condition="versionequalto" 
> path="%PROGRAMFILES%\Adobe\Reader 8.0\Reader\AcroRd32.exe" 
> value="8.1.0.137" />
>   <install cmd='%SOFTWARE%\adobereader\AdbeRdr812_pt_BR.exe /sPB /rs /l 
> /msi"/qb-! /norestart /log c:\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES 
> SUPPRESS_APP_LAUNCH=YES"' />
>   <install cmd='cmd /d /c del /q /f "%ALLUSERSPROFILE%\Menu 
> Iniciar\Programas\Inicializar"\*.lnk' />
>   <install cmd='regedit /s "%SOFTWARE%\adobereader\registryMods.reg"' />
>   <remove cmd="MsiExec.exe /q /x{AC76BA86-7AD7-1046-7B44-A70500000002}" />
>   <upgrade cmd='%SOFTWARE%\adobereader\AdbeRdr812_pt_BR.exe /sPB /rs /l 
> /msi"/qb-! /norestart /log c:\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES 
> SUPPRESS_APP_LAUNCH=YES"' />
> 
> </package>
> 
> The problem is: I increased the revision of the package and wpkg is 
> trying to execute the upgrade command of the wpkg settings file on the 
> machine (c:\windows\system32\wpkg.xml), not the server one. I'd like to 
> synchronize the server wpkg settings file with wpkg clients, so every 
> client will execute the new upgrade command, not the old one.
> 
> Any ideas?
> 

That's strange, didn't see this behavior yet. Could you please provide us:

- Version of wpkg.js
- debug log output (cscript wpkg.js /synchronize /debug >mylogfile.txt) and
- logfile with full loglevel set
- if you use Wpkg client, version of wpkg client, too

BTW: are you sure that your remove cmd is correct (...-A70500...)?

Here's a package definition for 8.1.2 (German) which does work here:

    <package
      id="acrobat8"
      name="Acrobat Reader 8"
      revision="5"
      reboot="false"
      priority="100">
        <check type="uninstall" condition="exists" path="Adobe Reader
8.1.2 - Deutsch" />

        <install
cmd='%SOFTWARE%\packages\adobereader\AdbeRdr812_de_DE.exe /sPB /rs /l
/msi"/qb-! /norestart /log %SystemDrive%\netinst\logs\acrobat8.log
ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES LAUNCH_APP=0" '>
          <exit code="0" />
          <exit code="3010" />
        </install>
        <install cmd='cmd /c regedit /s
%SOFTWARE%\packages\adobereader\acroread-html8.reg ' />

        <remove cmd='MsiExec.exe /q
/x{AC76BA86-7AD7-1031-7B44-A81200000003}' >
          <exit code="0" />
          <exit code="1605" />
        </remove>

        <upgrade
cmd='%SOFTWARE%\packages\adobereader\AdbeRdr812_de_DE.exe /sPB /rs /l
/msi"/qb-! /norestart /log %SystemDrive%\netinst\logs\acrobat8.log
ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES LAUNCH_APP=0" '>
          <exit code="0" />
          <exit code="3010" />
        </upgrade>
        <upgrade cmd='cmd /c regedit /s
%SOFTWARE%\packages\adobereader\acroread-html8.reg ' />

</package>


HTH
Falko



More information about the wpkg-users mailing list