-
Notifications
You must be signed in to change notification settings - Fork 383
Description
cc @dragonstyle as discussed.
Here is what I have tried
# gh auth must be setup
gh release download --repo quarto-dev/quarto-cli --pattern '*.msi' v0.2.144
# will install interactively with user interaction
msiexec /i "quarto-0.2.144-win.msi"
# will suppress the interaction but some windows open
msiexec /i "quarto-0.2.144-win.msi" /passive
# using quiet mode does not seem to work
msiexec /i "quarto-0.2.144-win.msi" /quiet
# using special /qn flag either
msiexec /i "quarto-0.2.144-win.msi" /qn
I don't really know what is supposed to work to install silently on Windows. Are all the usual flag from MSI activated in this bundle ?
I found this while working on https://github.com/quarto-dev/quarto-actions/tree/main/install-quarto, as I tried to install Quarto MSI release on Windows GHA runner and I had trouble with it.
Simple test tried on GHA:
- Workflow file: https://github.com/cderv/test-actions/actions/runs/1217636260/workflow
quarto
not found but not issue at installation - it seems it is doing nothing: https://github.com/cderv/test-actions/runs/3557169919?check_suite_focus=true
It could be interesting to check that the MSI file can be installed remotely using script. Downloading the release file and installing it on GHA windows runner seems the usual way forward.
How can we install MSI bundle on remote windows host like GHA runner ?
About the new `quarto-dev/quarto-actions/install-quarto`
For the sake of a working action on all OS, I ended using Scoop to install the binary from r-bucket. Scoop does not seem to have issue with the MSI, but maybe because it 'unbundles' it and not really install it.
So for now, new action quarto-dev/quarto-actions/install-quarto
is working, but with delay for the availability of the release in the scoop bucket compared to Github release here. I could probably improve this with an action in this repo that would trigger the update of the manifest in the bucket.
Also, for GHA, Windows runner have Chocolatey package manager installed by default. Maybe offering a quarto bundle in Chocolatey would be interesting. It would help for Github action but with the same drawback as current scoop bucket.