[wpkg-users] help: install if file does not exist
Jacob Jarick
Jacob.Jarick at amdel.com
Thu Sep 17 11:34:24 CEST 2009
Hi all,
I am trying to make a package install on the condition a file exists.
here is my current package:
<package
id="JavaUpdate"
name="Disable Java Update"
revision="1"
reboot="false"
priority="10">
<check type="logical" condition="not">
<check type="file" condition="exists" path="%PROGRAMFILES%\Java\jre6\bin\jusched.exe" />
</check>
<install cmd='cmd /c ren "%PROGRAMFILES%\Java\jre6\bin\jusched.exe" jusched.exe.disable ' />
</package>
unfortunately it returns true, even though the file exists. I have tested the "install cmd" via console and the cmd does work.
More information about the wpkg-users
mailing list