C
C#2y ago
Godspeed

MSIX URI is inaccessible in Appinstaller

Hello, I have an Appinstaller and MSIX hosted in a public Google Cloud Storage bucket, meaning they have directly accessible URIs on the form "https://storage.googleapis.com/{bucket-name}/{file-name}". However, the Appinstaller gives the (not very detailed) message "Error in parsing the app package" when I attempt to run it. The Windows Logs for AppXDeployment give no useful insight. I have tested this with MSIX Troubleshooter (https://www.advancedinstaller.com/msix-troubleshooter.html), and it tells me that the Appinstaller URI is "accessible" and the MSIX URI is "not accessible". If both are hosted in the same public bucket, how come the appinstaller sees MSIX as inaccessible and the other one not? The Appinstaller looks like this ish:
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
Uri="https://storage.googleapis.com/{bucket-here}/myapp.appinstaller"
Version="0.2.2.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
<MainPackage
Name="guid here"
Version="0.3.0.0"
Publisher="cert here"
ProcessorArchitecture="x64"
Uri="https://storage.googleapis.com/{bucket-here}/myapp.msix" />
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" UpdateBlocksActivation="true" />
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
</AppInstaller>
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
Uri="https://storage.googleapis.com/{bucket-here}/myapp.appinstaller"
Version="0.2.2.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
<MainPackage
Name="guid here"
Version="0.3.0.0"
Publisher="cert here"
ProcessorArchitecture="x64"
Uri="https://storage.googleapis.com/{bucket-here}/myapp.msix" />
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" UpdateBlocksActivation="true" />
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
</AppInstaller>
7 Replies
Godspeed
Godspeed2y ago
Anyone know if hosting these in GCP/Cloud Storage is the issue?
jcotton42
jcotton422y ago
Are those escape sequences right? The %7B and %7D
Godspeed
Godspeed2y ago
the appinstaller does not have { and } in the actual uri, i just replaced the actual GCP bucket name for this post, if that is what you are referring to?
jcotton42
jcotton422y ago
Oh
Godspeed
Godspeed2y ago
Could it be an issue with Cloud Storage blocking Range requests?
reflectronic
reflectronic2y ago
yes, that is almost certainly the issue if that is true app installer requires range requests
Godspeed
Godspeed2y ago
i dont know what happened, but this just solved itself a few hours ago. Just worked out of the blue when I came to work so since my setup now works, I guess GCP does support Range requests