### Bug description

Hello, I've recently been struggling with compiling a Quarto-Document to PDF and I don't know why it behaves the way it does.

I've installed TinyTex using the installation prompt `quarto install tinytex --update-path` and when trying to compile following document...

```qmd
---
title: "Untitled"
format: pdf
pdf-engine: pdflatex
---

This is just a test
```

...it outputs this silly little message:

```output
$ quarto preview c:/dev/quarto/test.qmd --no-browser --no-watch-inputs
pandoc 
  to: latex
  output-file: test.tex
  standalone: true
  pdf-engine: pdflatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf

metadata
  documentclass: scrartcl
  classoption:
    - DIV=11
    - numbers=noendperiod
  papersize: letter
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  title: Untitled

running pdflatex - 1
command pdflatex not found, attempting install
finding package for pdflatex
> 1 package to install
> installing pdflatex (1 of 1)
ERROR: tlmgr returned a non zero status code
The system cannot find the path specified.
```

I don't know why it's trying to install pdflatex with the _tlmgr_, even though it's already installed and shouldn't be installed via tlmgr...

![grafik](https://user-images.githubusercontent.com/41155337/226674127-8b9fca12-ffd7-4119-aa1d-a7f66f9abc76.png)

Things I've tested so far:

- Deleting TinyTex manually and reinstalling it through Quarto -> still same issue
- Compile the generated tex-file directly with `pdflatex` -> worked fine
- Compile via CMD & VSCode -> both failing

# Some more information

## Quarto

```
[>] Checking Quarto installation......OK
      Version: 1.2.335
      Path: C:\Program Files\Quarto\bin
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.10.4
      Path: C:/Users/joelv/AppData/Local/Programs/Python/Python310/python.exe
      Jupyter: 4.9.2
      Kernels: python3

[>] Checking Jupyter engine render....OK

[>] Checking R installation...........OK
      Version: 4.2.2
      Path: C:/PROGRA~1/R/R-4.2.2
      LibPaths:
        - C:/Users/joelv/AppData/Local/R/win-library/4.2
        - C:/Program Files/R/R-4.2.2/library
      rmarkdown: 2.20

[>] Checking Knitr engine render......OK
```

## Latex / Pdflatex

```
[>] pdflatex --version
pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023)
kpathsea version 6.3.5
Copyright 2023 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.39; using libpng 1.6.39
Compiled with zlib 1.2.13; using zlib 1.2.13
Compiled with xpdf version 4.04

[>] latex --version
pdfTeX 3.141592653-2.6-1.40.25 (TeX Live 2023)
kpathsea version 6.3.5
Copyright 2023 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.39; using libpng 1.6.39
Compiled with zlib 1.2.13; using zlib 1.2.13
Compiled with xpdf version 4.04
```

## Windows

I'm using a XPS13 9370
```
[>] systeminfo | findstr /B /C:"OS"
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19045 N/A Build 19045
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
```


### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-03-21T16:32:45Z
joelvonrotz
bug needs-repro stale
v1.4
open
command pdflatex not found, attempting install
https://github.com/quarto-dev/quarto-cli/issues/4908