MikTeX

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

This is a silent installer for MikTeX a TeX software. More infos from here

Version 2.8 changed some of the setup options.

<package 
	id="miktex28" 
	name="MikTeX 2.8" 
	revision="1.0" 
	reboot="false" 
	priority="0">

	<check type="uninstall" condition="exists" path="MiKTeX 2.8" />
  
	<install cmd='%SOFTWARE%\Miktex\2.8\setup-2.8.3553.exe --auto-install=yes --install-from-local-repository --local-package-repository=%SOFTWARE%\Miktex\2.8  --package-set=complete --shared --paper-size=Letter --common-install=%SystemDrive%\texmf --common-data=%SystemDrive%\localtexmf  --unattended' />
	<install cmd='cacls c:\localtexmf /T /E /G Everyone:C' />

</package>

Version for MikTeX 2.4:

<package id="miktex" name="MikTeX " revision="1" priority="0" reboot="false">
 <check type="file" condition="exists" path="C:\texmf\miktex\bin\mo.exe" />
 <install cmd='%SOFTWARE%\miktex\setup-2.4.1477.exe /c:"PreSetup setupwiz --install-from-local-repository --local-package-repository %SOFTWARE%\miktex --installation-directory c:\texmf --local-directory c:\localtexmf --unattended" ' >
 <exit code="16777216" />
 </install>
 <install cmd='%SOFTWARE%\tools\pathman /as c:\texmf\miktex\\bin' >
 <exit code="16777216" />
 </install>
 <install cmd='cacls c:\localtexmf /T /E /G Everyone:C' />
 <install cmd='cmd /c mkdir "%AllUsersProfile%\Start Menu\Programs\MikTeX"' />
 <install cmd='cmd /c xcopy "c:\Documents and Settings\WPKG\Start Menu\Programs\MikTeX" "%AllUsersProfile%\Start Menu\Programs\MikTeX"' />
</package>