-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TinyTex installation doesn't succeed: "This program is blocked by a group policy. For more information, contact your system administrator."" #443
Comments
What is the complete log message you get ? This would know which step is failling. "blocked by a group policy" means that your environment does not allow to run some programs, or execute some scripts. So our auto installation may not work and you need to install differently. Though possibly those policy restriction will prevent to run TeX Live maybe - so they should solve that. Prebuilt bundle are download from there: https://github.com/rstudio/tinytex-releases/#releases Lines 499 to 500 in 27672c8
this calls and then it call a post install step Line 508 in 27672c8
Lines 513 to 532 in 27672c8
which calls If your windows environment does not allow to execute BAT file (which is possible in some restricted environment), then unfortunately TinyTeX cannot be used. Nor TeX Live which relies on You need to use another distribution (MikTeX maybe ?) or ask the IT admins to overcome this restriction for your use case. |
Thanks a lot! That is very helpful. I suspect that it could be the BAT-files that are blocked, because I receive this message "blocked by group policy" several times in the installing process. Attached I send you two print screens that my client sent me. They are in German, but I think you get the content. Case 1: Error that I got when installing TinyTex-1 in a specific directory. The message of the group policy appears several times. Case 2: In this case the TinyTex seems to have been installed, but then when I call tinytex::tlmgr_version(), I get the same error message. Do you think it is more likely that the BAT-File is creating these errors, rather than tlmgr trying to access CTAN mirrors? Thanks a lot! |
I am trying to install the TinyTeX distribution (TinyTeX-1) for a client with restricted admin rights in a Windows environment. When trying to install TinyTeX (tinytex::install_tinytex), I always get this message: "This program was blocked by a group policy. For more information, contact your system administrator". The download from https://yihui.org/tinytex/TinyTeX-1 works fine. I have also tried to install TinyTex on a local folder, where I know I have admin rights, and that has not worked. I get the same error message. So my question is:
I have tried to add all the necessary paths correctly before the installation.
Sys.setenv((PATH = paste("C:/Users/[user]/AppData/Roaming/TinyTeX/bin", Sys.getenv("PATH"), sep = ";"))
options(tinytex.tlmgr.path = "C:/Users/[user]/AppData/Roaming/TinyTeX/bin/windows/tlmgr.bat")
Unfortunately, I can't give more specifics about the PC, because I currently don't have access to it. I am trying to solve the issue remotely.
I have been trying to resolve this issue for weeks now. I have check all the resolved issues available. Thanks a lot for your help!
By filing an issue to this repo, I promise that
xfun::session_info('tinytex')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/tinytex')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: