Changes

Jump to: navigation, search

Ninite

359 bytes added, 15:54, 19 March 2013
A wpkg package to install an individual application
Below is an example of a package which will install the application named in the appSelectName variable (in this case PDFCreator). The names used by the ninite commandline are given on [https://ninite.com/applist/pro.html this page]. The various switches disable the application's own autoupdate features and prevent the installers creating shortcuts on the desktop or quicklaunch bar. For a full list of commandline options see [https://ninite.com/help/features/switches.html this page].
<source lang="xml">
<package id="pdfcreator" name='PDFCreator' revision="2013011720130211.1" reboot="false" notify="false" execute="once" priority="10">
<variable name="appSelectName" value='PDFCreator' />
<variable name="ninitelogfilename" value='wpkg-ninite-%COMPUTERNAME%-%appSelectName%.log' />
<chain package-id="ninite-updater" />
<install cmd='%comspec% /C if exist %temp%\%ninitelogfilename% del %temp%\%ninitelogfilename%' timeout="15" ><exit code="0" /></install> <install cmd='%comspec% /C %SOFTWARE%\ninite\NiniteOne.exe /cachepath %SOFTWARE%\ninite\ninitecache /select %appSelectName% /silent %WPKGLOGStemp%\niniteupdate-%COMPUTERNAMEninitelogfilename%.log /allusers /disableshortcuts /disableautoupdate' timeout="600"><exit code="0" /></install> <install cmd='%comspec% /C %SOFTWARE%\ninite\testninitelogfiles.bat %WPKGLOGStemp%\niniteupdate-%COMPUTERNAMEninitelogfilename%.log' timeout="15" ><exit code="0" /></install> 
<upgrade include="install" />
<remove cmd='%comspec% /C %SOFTWARE%\ninite\NiniteOne.exe /cachepath %SOFTWARE%\ninite\ninitecache /select %appSelectName% /silent /uninstall'/>
</source>
* This could probably be done more elegantly using [http://wpkg.org/Package_Templates wpkg package templates].* For occasions where the appSelectName is not a valid file name (eg ".NET" including the quotes) the ninitelogfilename varible should be updated manually.
= A wpkg package which will update all relevant applications =

Navigation menu