Commit f3637c52 authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

wait miktex to install before doing some things else

parent 25b8df7b
......@@ -12,7 +12,7 @@ Write-Output "Downloading $url"
$wcR.DownloadFile($url, $output)
Write-Output "Download completed $url"
C:\Windows\Temp\miktex.exe --auto-install=yes --common-install=C:\miktex --shared --unattended
C:\Windows\Temp\miktex.exe --auto-install=yes --common-install=C:\miktex --shared --unattended | Out-Null
## Network install with local repository ##
#Write-Output "Downloading installer"
......@@ -40,9 +40,10 @@ C:\Windows\Temp\miktex.exe --auto-install=yes --common-install=C:\miktex --share
#Write-Output "MiKTeX installed into C:\miktex"
#Remove-Item 'C:\Windows\Temp\miktexsetup.exe' -Force
# enable auto install
#Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\MiKTeX.org\MiKTeX\2.9\MPM' -Name AutoInstall -Value 1emove-Item 'C:\windows\Temp\miktex' -Recurse
#Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\MiKTeX.org\MiKTeX\2.9\MPM' -Name AutoInstall -Value 1
#Remove-Item 'C:\windows\Temp\miktex' -Recurse
if ( Test-Path "HKLM:\Software\MiKTeX.org\MiKTeX" ) {
if ( Test-Path "HKLM:\SOFTWARE\MiKTeX.org\MiKTeX" ) {
Write-Output "MiKTeX installed"
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment