Forum Discussion
How to use AddOptionalPackageAsync?
Tanaka_Jimha Here is the link https://aka.ms/AA8obl4, hope that helps.
I'm also preparing a GitHub repo with all the code that I use to create these msix packages, it is all open source, so no problem to share that.
davidanthoff Actually, I just realized that it will take a little longer until I can publish that GitHub repo: right now I have a codesigning cert that includes my private address, and I don't want to use that on the public internet. I'm working with my issuer right now to remove the address, as soon as I have that, I'll post it. But the issue I submitted on the feedback hub should include the necessary files.
- Tanaka_JimhaJun 15, 2020Former Employee
Thanks for submitting the files davidanthoff. I've forwarded them to the dev team for investigation. sounds good, let me know when you have the GitHib repo available and I'll also have a look at that.
- davidanthoffJun 19, 2020Brass Contributor
Tanaka_Jimha Alright, I've got the github repo up now, it is here:
https://github.com/davidanthoff/winjulia
You won't be able to run the build steps because you also need various builds of Julia itself, and setting that up is complicated, but it should give you an idea of what scripts I'm using to build things.
I'm also hosting the packages that I've created online now at https://winjulia.s3-us-west-1.amazonaws.com/index.html, so you and the dev team should be able to run the installer etc. on your own system and collect logs.
Here are some random comments that maybe are helpful:
- The link "Install Julia" on that S3 website that I posted links to the appinstaller file. It will install the "Julia" package, and one of the optional packages, namely Julia-1.4.1. There are two other optional packages (Julia-1.4.0 and Julia-1.4.2), and the website has links to all three optional packages.
- Installing any of the three optional packages via the weblink from that S3 site works.
- What I want to do is install optional packages from in-app code, though. The specific code that I'm using for that is https://github.com/davidanthoff/winjulia/blob/4ac34b6d0f4a434ef1902ecf24c17a8a3da65e64/launcher/main.cpp#L97, and that is also the part of the code that errors. If you install the main "Julia" app from the website that I linked to and run it, you will see an error message, and the code that I linked to in this item here is where that error occurs.
Let me know if this helps or if you need any more information!
- Tanaka_JimhaJun 24, 2020Former Employee
Hi davidanthoff,
Thanks for all the details you sent. Based on the logs from the feedback you filed it looks like the "access denied" error is happening when we try to access the AppInstaller file on S3 to get information for downloading the optional package. I'll message you more details.
Tanaka