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
18daef4f
Commit
18daef4f
authored
Nov 10, 2020
by
Jean-Francois Rey
☕
Browse files
update miktex
parent
946c8011
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
ansible_provisioning/files/install-miktex.ps1
View file @
18daef4f
...
...
@@ -21,7 +21,7 @@ Write-Output "Download repository again in case of trouble"
C:\Windows\Temp\miktexsetup.exe
--verbose
--local-package-repository
=
C:\Windows\Temp\miktex
--package-set
=
complete
download
Write-Output
"Install "
C:\Windows\Temp\miktexsetup.exe
--quiet
--local-package-repository
=
C:\Windows\Temp\miktex
--package-set
=
complete
--shared
=
yes
--common-install
=
'C:\miktex'
install
C:\Windows\Temp\miktexsetup.exe
--quiet
--local-package-repository
=
C:\Windows\Temp\miktex
--package-set
=
basic
--shared
=
no
--common-install
=
'C:\miktex'
install
Write-Output
"MiKTeX installed into C:\miktex"
...
...
@@ -32,9 +32,9 @@ else {
throw
"ERROR: Can't install MiKTeX"
}
Remove-Item
'C:\windows\Temp\miktex'
-Recurse
#
Remove-Item 'C:\windows\Temp\miktex' -Recurse
Remove-Item
$output
-Force
Remove-Item
'C:\Windows\Temp\miktexsetup.exe'
-Force
#
Remove-Item 'C:\Windows\Temp\miktexsetup.exe' -Force
# Add miktex to PATH <- done at install
#$oldpath = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).path
#$newPath = "$oldpath;C:\miktek\miktex\bin\x64"
...
...
ansible_provisioning/playbook.yml
View file @
18daef4f
...
...
@@ -72,4 +72,6 @@
win_command
:
powershell.exe -File C:\Windows\Temp\install-pandoc.ps1
-
name
:
Clean
win_command
:
cmd.exe /c DEL /F/Q/S C:\Windows\Temp\*.*
-
name
:
Reboot after install
ansible.windows.win_reboot
:
Write
Preview
Markdown
is supported
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