[wpkg-users] My java-7 package keeps reinstalling itself
Frederic Bergeron
FBergeron at rocketmail.com
Sat Nov 22 07:41:50 CET 2014
Hi,
I have upgraded my java-7 package definition in WPKG to version 72. I was previously using version 51.
When I restart a computer, it detects that a newer version is available and installs it successfully. However, when I restart the machine, it keeps reinstalling the latest version (72). How can I prevent that from happening?
I'm wondering if it's because I have removed the package definition for version 51. Do I have to keep all versions of the package definitions in my XML file? Or is it only the latest version that matters?
Here is my package definition:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="java-7"
name="Java Runtime Environment 7"
revision="%version%"
reboot="false"
priority="100">
<variable name="version" value="72" />
<check
type="uninstall"
condition="exists"
path="Java 7 Update %version%" />
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='0' />
<exit code='1' />
<exit code='128' />
</install>
<install cmd='%SOFTWARE%\java-7\jre\jre-7u%version%-windows-i586.exe /s REBOOT=Suppress' />
<!-- remove Java Quick Starter -->
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</install>
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</install>
<!-- Remove Java Auto Updater -->
<install cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}' />
<upgrade cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe' >
<exit code='0' />
<exit code='1' />
<exit code='128' />
</upgrade>
<upgrade cmd='%SOFTWARE%\java-7\jre\jre-7u%version%-windows-i586.exe /s REBOOT=Suppress' />
<!-- remove Java Quick Starter -->
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</upgrade>
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</upgrade>
<!-- Remove Java Auto Updater -->
<upgrade cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}' />
<remove cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe' />
<remove cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832170%version%FF}' />
</package>
</packages>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20141122/1c0426ae/attachment-0002.html>
More information about the wpkg-users
mailing list