cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joep
Engaged Sweeper
Try to manage the 300 different versions of Java installed on our network and would like to be able to just push a package out to all machines to get them updated to the proper/current version. Has anything like that been created? I can't seem to find one. Thanks in advance.
9 REPLIES 9
brandon_jones
Champion Sweeper III
You're welcome 🙂
brandon_jones
Champion Sweeper III
Try that.

<?xml version="1.0" encoding="utf-8"?>
<Package>
<Name>Update - Java 8.0.261</Name>
<Description></Description>
<ShutdownOption>0</ShutdownOption>
<ShutdownTime>0</ShutdownTime>
<MaxDuration>900</MaxDuration>
<Rescan>False</Rescan>
<RunMode>1</RunMode>
<Steps>
<Step>
<Nr>1</Nr>
<Name>Check to see if Java in installed</Name>
<Type>5</Type>
<ReturnCodes></ReturnCodes>
<Success>-2</Success>
<Failure>2</Failure>
<Path></Path>
<Parameters></Parameters>
<MSIParameters></MSIParameters>
<MSIName></MSIName>
<MSIVersion></MSIVersion>
<Command></Command>
<EditMode>False</EditMode>
<Conditions>
<Condition>
<Type>1</Type>
<SpecOne>C:\Program Files (x86)\Java\jre1.8.0_261\bin\</SpecOne>
<SpecTwo>javaw.exe</SpecTwo>
<Operator>1</Operator>
<Value></Value>
</Condition>
</Conditions>
</Step>
<Step>
<Nr>2</Nr>
<Name>Install Java/Uninstall Old Version</Name>
<Type>1</Type>
<ReturnCodes>0,1641,3010</ReturnCodes>
<Success>-2</Success>
<Failure>-3</Failure>
<Path>{PackageShare}\Installers\jre-8u261-windows-i586.exe</Path>
<Parameters>INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Enable SPONSORS=Disable</Parameters>
<MSIParameters>/i /qn /norestart</MSIParameters>
<MSIName></MSIName>
<MSIVersion></MSIVersion>
<Command>"{PackageShare}\Installers\jre-8u261-windows-i586.exe" INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Enable SPONSORS=Disable</Command>
<EditMode>False</EditMode>
<Conditions />
</Step>
</Steps>
<SoftwareVersion>8.1.110.1</SoftwareVersion>
</Package>
Brandon wrote:
Try that.


Actually I take that back, it seems to have worked. Thanks!!!
joep wrote:
Brandon wrote:
Try that.


Actually I take that back, it seems to have worked. Thanks!!!


Make sure on that newly created package you select to re-scan the assets tick box. That will allow it to scan them after the install to show the changes, otherwise it will be picked up on your next scan.
Brandon wrote:
Try that.




Well it allowed me to make the installer. I ran it on a few with success. But those PCs still have older versions installed and don't seem to have the the Java 281 software installed.
brandon_jones
Champion Sweeper III
Here is what use to use. You can the code below as an .xml file and import it into Lansweeper. This was my update deployment, but it will work for installing as well. This is for an older version, so you may have to make some changes to the the file path in step 1. This will also remove older versions I'm Java that are installed in install the latest version. You will need to download the latest Java install and put it in the fall share on your Lansweeper server. Also keep in mind that Java recently changed its licensing model.

<?xml version="1.0" encoding="UTF-8"?>

-<Package>

<Name>Update - Java 8.0.261</Name>

<Description/>

<ShutdownOption>0</ShutdownOption>

<ShutdownTime>0</ShutdownTime>

<MaxDuration>900</MaxDuration>

<Rescan>False</Rescan>

<RunMode>1</RunMode>


-<Steps>


-<Step>

<Nr>1</Nr>

<Name>Check to see if Java in installed</Name>

<Type>5</Type>

<ReturnCodes/>

<Success>-2</Success>

<Failure>2</Failure>

<Path/>

<Parameters/>

<MSIParameters/>

<MSIName/>

<MSIVersion/>

<Command/>

<EditMode>False</EditMode>


-<Conditions>


-<Condition>

<Type>1</Type>

<SpecOne>C:\Program Files (x86)\Java\jre1.8.0_261\bin\</SpecOne>

<SpecTwo>javaw.exe</SpecTwo>

<Operator>1</Operator>

<Value/>

</Condition>

</Conditions>

</Step>


-<Step>

<Nr>2</Nr>

<Name>Install Java/Uninstall Old Version</Name>

<Type>1</Type>

<ReturnCodes>0,1641,3010</ReturnCodes>

<Success>-2</Success>

<Failure>-3</Failure>

<Path>{PackageShare}\Installers\jre-8u261-windows-i586.exe</Path>

<Parameters>INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Enable SPONSORS=Disable</Parameters>

<MSIParameters>/i /qn /norestart</MSIParameters>

<MSIName/>

<MSIVersion/>

<Command>"{PackageShare}\Installers\jre-8u261-windows-i586.exe" INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Enable SPONSORS=Disable</Command>

<EditMode>False</EditMode>

<Conditions/>

</Step>

</Steps>

<SoftwareVersion>8.1.110.1</SoftwareVersion>

</Package>
Brandon wrote:
Here is what use to use. You can the code below as an .xml file and import it into Lansweeper. This was my update deployment, but it will work for installing as well. This is for an older version, so you may have to make some changes to the the file path in step 1. This will also remove older versions I'm Java that are installed in install the latest version. You will need to download the latest Java install and put it in the fall share on your Lansweeper server. Also keep in mind that Java recently changed its licensing model.

<?xml version="1.0" encoding="UTF-8"?>

-<Package>

<Name>Update - Java 8.0.261</Name>

<Description/>

<ShutdownOption>0</ShutdownOption>

<ShutdownTime>0</ShutdownTime>

<MaxDuration>900</MaxDuration>

<Rescan>False</Rescan>

<RunMode>1</RunMode>


-<Steps>


-<Step>

<Nr>1</Nr>

<Name>Check to see if Java in installed</Name>

<Type>5</Type>

<ReturnCodes/>

<Success>-2</Success>

<Failure>2</Failure>

<Path/>

<Parameters/>

<MSIParameters/>

<MSIName/>

<MSIVersion/>

<Command/>

<EditMode>False</EditMode>


-<Conditions>


-<Condition>

<Type>1</Type>

<SpecOne>C:\Program Files (x86)\Java\jre1.8.0_261\bin\</SpecOne>

<SpecTwo>javaw.exe</SpecTwo>

<Operator>1</Operator>

<Value/>

</Condition>

</Conditions>

</Step>


-<Step>

<Nr>2</Nr>

<Name>Install Java/Uninstall Old Version</Name>

<Type>1</Type>

<ReturnCodes>0,1641,3010</ReturnCodes>

<Success>-2</Success>

<Failure>-3</Failure>

<Path>{PackageShare}\Installers\jre-8u261-windows-i586.exe</Path>

<Parameters>INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Enable SPONSORS=Disable</Parameters>

<MSIParameters>/i /qn /norestart</MSIParameters>

<MSIName/>

<MSIVersion/>

<Command>"{PackageShare}\Installers\jre-8u261-windows-i586.exe" INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Enable SPONSORS=Disable</Command>

<EditMode>False</EditMode>

<Conditions/>

</Step>

</Steps>

<SoftwareVersion>8.1.110.1</SoftwareVersion>

</Package>



Hmmm giving me invalid .xml.
Wondering if pasting in the post screwed up formatting without coding quotes?
brandon_jones
Champion Sweeper III
Are you looking for the Java installer or how to create the deployment in Lansweeper?
Brandon wrote:
Are you looking for the Java installer or how to create the deployment in Lansweeper?



Sorry, I'm looking for how to create an installer package via Lansweeper.