Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R ecosystem
WindowsR
Commits
f3637c52
Commit
f3637c52
authored
Nov 11, 2020
by
Jean-Francois Rey
☕
Browse files
wait miktex to install before doing some things else
parent
25b8df7b
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ansible_provisioning/files/install-miktex.ps1
View file @
f3637c52
...
...
@@ -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:\S
oftware
\MiKTeX.org\MiKTeX"
)
{
if
(
Test-Path
"HKLM:\S
OFTWARE
\MiKTeX.org\MiKTeX"
)
{
Write-Output
"MiKTeX installed"
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment