Difference between revisions of "MikTeX"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Add 2.9)
(MikTeX 2.9 from miktexsetup)
 
Line 8: Line 8:
 
Thereafter you need to download content to you local repository:
 
Thereafter you need to download content to you local repository:
  
<source lang="cmd">
+
<source lang="powershell">
 
.\miktexsetup.exe --verbose --local-package-repository="Path to you network PKG_REPOSITORY catalog" --package-set=complete download
 
.\miktexsetup.exe --verbose --local-package-repository="Path to you network PKG_REPOSITORY catalog" --package-set=complete download
 
</source>
 
</source>

Latest revision as of 01:34, 15 May 2020

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

MikTeX 2.9 from miktexsetup

In many cases need to install complete or not standart set of MikTeX components.

Then, firstly need download MiKTeX Setup Utility .

Thereafter you need to download content to you local repository:

.\miktexsetup.exe --verbose --local-package-repository="Path to you network PKG_REPOSITORY catalog" --package-set=complete download

You can download to local catalog, like C:\repo and move content after.

<package 
	id="miktex" 
	name="MikTeX"
	revision="%PKG_VERSION%"
	reboot="false"
	priority="0">

	<variable name="PKG_SHORT_VERSION"	value="2.9" />	
	<variable name="PKG_VERSION"		value="%PKG_SHORT_VERSION%.6942_2" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\TEX\MikTeX" />
	<variable name="PKG_NAME"		value="miktexsetup-%PKG_VERSION%-x64.exe" architecture="x64" />
	<variable name="PKG_REPOSITORY"		value="%PKG_SOURCE%\%PKG_VERSION%-x64" architecture="x64" />	
	<variable name="PKG_INSTALL_SWITCH"	value='--local-package-repository="%PKG_REPOSITORY%" --package-set=complete --shared --quiet install' />
	<variable name="PKG_REMOVE_SWITCH"	value="--quiet --shared uninstall" />

	<check type="uninstall" condition="versiongreaterorequal" path="MiKTeX %PKG_SHORT_VERSION%" value="%PKG_SHORT_VERSION%" />
  
	<install cmd='%PKG_SOURCE%\%PKG_NAME% %PKG_INSTALL_SWITCH%' />

	<upgrade include='remove' />
	<upgrade include='install' />
	
	<remove cmd='%PKG_SOURCE%\%PKG_NAME% %PKG_REMOVE_SWITCH%' />
</package>

MikTeX 2.8 from basic setup

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>

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>