Sorba

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Silent installer and uninstaller for Sorba ERP System

As the main executable of the client application doesn't carry any version information, you'll have to rely on the filesize for the check condition. This will change with each new version. The version used in this example is dated per 28.11.2008 (dd.mm.yyyy)

<?xml version="1.0" encoding="UTF-8"?>
<packages>
   <package id="sorba"
	    name="Sorba"
	    revision="20081128"
	    reboot="false"
	    priority="0">
	
   <check type="file" condition="sizeequals" path="C:\Sorba\QWorkSpace.exe" value="147456" />
		
   <install cmd='cmd /c mkdir c:\sorba' />
   <install cmd='cmd /c cacls c:\sorba /E /G Benutzer:W' />
   <install cmd='cmd /c cacls c:\sorba /E /G Benutzer:C' />
   <install cmd='%SOFTWARE%\sorba\setup.exe c:\sorba MultiUser /NoMessages /NoErrors' />
		
   <upgrade cmd='%SOFTWARE%\sorba\setup.exe c:\sorba MultiUser /NoMessages /NoErrors' />
		
   <remove cmd='%SOFTWARE%\sorba\setup.exe c:\sorba /Uninstall' />
		
</package>
</packages>

Notes: This package will install the Network version to the directory c:\sorba. It also grants all local users full control to the directory using the cacls command. If you are using a different OS language than German you'll have to change Benutzer to the apropriate groupname in your language.