Guenael Sanchez wrote:
> Hello all,
> 
> I have a problem with check directives. Each time I run wscript.js, Firefox
> tries to install again and gives an error:

Did you mean "cscript wpkg.js /some /flags"?


> 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" />
> <install cmd='"%SOFTWARE%\firefox\Firefox Setup 2.0.0.1.exe" -ms' />
> <upgrade cmd='"%SOFTWARE%\firefox\Firefox Setup 2.0.0.1.exe" -ms' />
> <remove cmd='"%PROGRAMFILES%\Mozilla Firefox\uninstall\uninstall.exe" /s' />
> </package>
> </packages>
> 
> I also tried other "<check" versions like: uninstall with "Mozilla Firefox (
> 2.0.0.1)" or registry, but the problem is still here.
> 
> Am I missing something, this is my first test.

Could you run it with the /debug flag?

cscript wpkg.js /synchronize /debug



What does your %SOFTWARE% variable point to?
Check with "echo %SOFTWARE%".


-- 
Tomasz Chmielewski

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to