[wpkg-users] Check directives not working

Falko Trojahn nospam_ft at smi-softmark.de
Sun Jan 21 19:04:09 CET 2007


Hello,

Guenael Sanchez --> 19.01.2007 14:55:
> Hello all,
> 
> I have a problem with check directives. Each time I run wscript.js, Firefox
> tries to install again and gives an error:
> 
> There were the following errors:
> 
> Package name: Mozilla Firefox 2
> 
> Could not install Mozilla Firefox 2.
> Failed checking after installation.
> 
> Here is my packages.xml
> 
> <packages>
> <package id="firefox" name="Mozilla Firefox 2" revision="1" reboot="false"
> priority="0">
> <ckeck type="file" condition="exists" path="%PROGRAMFILES%\Mozilla
> Firefox\firefox.exe" />

Is this "ckeck" instead of "check" only in your mail or really in your
packages.xml?

I use this for FF 2.0 btw.:

        <package
           id="firefox20"
           name="Mozilla Firefox 2.0"
           revision="2001"
           reboot="false"
           priority="99">

           <check type="uninstall" condition="exists" path="Mozilla
Firefox (2.0)" />
	   <check type="file" condition="exists" path="%programfiles%\mozilla
firefox\defaults\profile\prefs.js" />

           <install cmd='cmd /c if exist "%programfiles%\mozilla
firefox\firefox.exe" move /y "%programfiles%\mozilla firefox"
"%programfiles%\mozilla firefox.bak"' >
             <exit code="1" />
           </install>
           <install cmd='"w:\packages\mozilla\firefox-2000-deu.exe" -ms'>
             <exit code="0" />
           </install>
           <install cmd='cmd /c if exist "%programfiles%\mozilla
firefox.bak\searchplugins" copy /y "%programfiles%\mozilla
firefox.bak\searchplugins\*" "%programfiles%\mozilla
firefox\searchplugins\"' >
             <exit code="1" />
             <exit code="0" />
           </install>

           <install cmd='xcopy /v /s /i /e /h /c /y /q
"w:\packages\mozilla\fx_profile\*" "%programfiles%\mozilla
firefox\"' >
             <exit code="1" />
           </install>

           <install cmd='"%PROGRAMFILES%\Mozilla Firefox\firefox.exe"
-CreateProfile default '>
             <exit code="0" />
           </install>

           <upgrade cmd='"w:\packages\mozilla\firefox-2000-deu.exe" -ms'>
             <exit code="0" />
           </upgrade>
           <upgrade cmd='xcopy /v /s /i /e /h /c /y /q
"w:\packages\mozilla\fx_profile\*" "%programfiles%\mozilla
firefox\"' >
             <exit code="1" />
           </upgrade>

           <remove cmd='"%programfiles%\mozilla
firefox\uninstall\uninst.exe" /s' >
             <exit code="20" />
           </remove>

        </package>


For each of the extensions I have a package like this:

     <package
         id="firefox2-ext-adblockplus"
         name="firefox extension adblock"
         revision="8"
         reboot="false"
         priority="99">

        <depends package-id="firefox20" />

         <check type="file" condition="exists"
path="%programfiles%\mozilla
firefox\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}\chrome\adblockplus.jar"
/>
         <install cmd='w:\tools\pskill.exe firefox.exe'>
             <exit code="-1" />
         </install>

         <install cmd='%programfiles%\mozilla firefox\firefox.exe
-install-global-extension
w:\packages\mozilla\fx_extensions\AdblockPlus_0.7.2.2_fx+tb+sm+fl+sg_de-DE.xpi'>
             <exit code="0" />
         </install>
         <upgrade cmd='%programfiles%\mozilla firefox\firefox.exe
-install-global-extension
w:\packages\mozilla\fx_extensions\AdblockPlus_0.7.2.2_fx+tb+sm+fl+sg_de-DE.xpi'>
             <exit code="0" />
         </upgrade>
         <remove  cmd='cmd /c del /q /s "%programfiles%\Mozilla
Firefox\extensions\{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}"' />
     </package>


I can send you the whole firefox2.xml file if you want.

Falko






_______________________________________________
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