files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
34.11k stars 2.18k forks source link

Add support for offline installation #5176

Closed tornadosunrisepure closed 2 years ago

tornadosunrisepure commented 3 years ago

Explain the bug When users want to install Files on a fresh Windows 10 installed offline, this does not work.

The external dependencies are not the problem, but the user has no way or does not know where to download these external dependencies as an offline installer.

To reproduce

  1. Download Files https://github.com/files-community/Files/releases/tag/v1.5
  2. Download Win10_21H1_x64.iso file
  3. Install Windows 10 offline on your computer
  4. Complete the Windows 10 setup offline. After the Windows 10 setup you are on the desktop
  5. Open Explorer and double click on Files-1.5.Msixbundle or right click on the file to open the context menu and then click on "Open".
  6. Click on install
  7. This error message appears:
    • App Installer failed to install package dependencies. Ask the developer for Microsoft.VCLibs.140.00 package.
    • App Installer failed to install package dependencies. Ask the developer for Microsoft.NET.Native.Runtime.2.2 package.
    • App Installer failed to install package dependencies. Ask the developer for Microsoft.NET.Native.Framework.2.2 package.
    • App Installer failed to install package dependencies. Ask the developer for Microsoft.UI.Xaml.2.5 package.

Expected behavior The behavior should be that the user can easily install Files fully offline with one click on "Install".

Logfile NA

Screenshots

Annotation 2021-06-10 231242

Annotation 2021-06-10 231243

Annotation 2021-06-10 231244

Annotation 2021-06-10 231245

System Information

Additional comment I'm trying to help, maybe the solution would be to integrate the external dependencies directly into .Msixbundle file so that users can install fully offline.

yaira2 commented 3 years ago

@tornadosunrisepure You can find the dependencies in our package repo https://github.com/files-community/package.github.io/tree/main/Files.Package/Dependencies/x64. Is this what you were looking for?

tornadosunrisepure commented 3 years ago

@tornadosunrisepure You can find the dependencies in our package repo https://github.com/files-community/package.github.io/tree/main/Files.Package/Dependencies/x64. Is this what you were looking for?

Thanks. I am not a developer and as you said I downloaded these 4 dependencies and installed them on my Windows 10 device.

After that I was able to install Files, but when I start Files, it immediately quits. I see the Files icon in the task bar for a very short moment and then it's gone. It seems that there are errors when doing an offline installation like this to use Files offline.

How can I help to fix this bug? Can you reproduce it on your site? Importantly, I have cleanly reinstalled Windows 10 21H1 offline with an external USB flash drive and only use it offline.

It would be very good if the behaviour can be like .exe software. With .exe user software I only have to double-click on a single .exe file and in a few seconds for example VLC Media Player is installed and I can use it offline immediately.

yaira2 commented 3 years ago

@tornadosunrisepure I'm going to try to have one installation file for v2. I'll keep this open for now.

yaira2 commented 3 years ago

@tornadosunrisepure I updated the package for the v1.5 release, can you see if that works?

dsh4dtw commented 3 years ago

Hi guys, I can confirm the problem that the offline installation support is missing.

I updated the package for the v1.5 release, can you see if that works?

Files.Package_1.5.0.0_x86_x64.msixbundle SHA-256 b552634f7f409f3a5407ee14b2f6cc05c8a37e166961ca146bdf0bfc8e6d2156

I don't know which version is the right one and I just downloaded it from the releases section and it doesn't work. I also get the same error messages as the author wrote under To reproduce -> point 7.

aschor commented 2 years ago

Hi, may I ask some more help here, on the same subject ? I tried to install the package from chocolatey, and it failed with the same kind of errors (see below)

                             ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CF3, Échec des mises à jour, de la dépendance ou de la validation des conflits du package.
Windows ne peut pas installer le package Files_2.0.0.0_x64__1y0xx7n9077q4, car ce package dépend d'une infrastructure qui n'a pas pu être trouvée. Indiquez l'infrastructure « Microsoft.UI.Xaml.2.6 » publiée par « CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US », avec une architecture neutre ou de processeur x64 et la version minimale 2.62108.18004.0, en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.6 » installées actuellement sont : {
Windows ne peut pas installer le package Files_2.0.0.0_x64__1y0xx7n9077q4, car ce package dépend d'une infrastructure qui n'a pas pu être trouvée. Indiquez l'infrastructure « Microsoft.UI.Xaml.2.6 » publiée par « CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US », avec une architecture neutre ou de processeur x64 et la version minimale 2.62108.18004.0, en plus de ce package à installer. Les infrastructures avec le nom « Microsoft.UI.Xaml.2.6 » installées actuellement sont : {}
NOTE: For additional information, look for [ActivityId] c482551d-c0da-0006-5892-82c4dac0d701 in the Event Log or use the command line Get-AppPackageLog -ActivityID c482551d-c0da-0006-5892-82c4dac0d701
The install of files was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\files\tools\chocolateyinstall.ps1'.

I tried to install the package from github download (and powershell install), and again, same kind of errors ...

 Add-AppPackage -path "C:\Users\VDMC5301\Downloads\Files.Package_2.0.13.0_x86_x64.msixbundle"
Add-AppPackage : Échec du déploiement avec HRESULT: 0x80073CF3, Échec des mises à jour, de la dépendance ou de la validation des
conflits du package.
Windows ne peut pas installer le package Files_2.0.13.0_x64__1y0xx7n9077q4, car ce package dépend d’une infrastructure qui n’a pas pu
être trouvée. Indiquez l’infrastructure «Microsoft.UI.Xaml.2.6» publiée par «CN=Microsoft Corporation, O=Microsoft Corporation,
L=Redmond, S=Washington, C=US», avec une architecture neutre ou de processeur x64 et la version minimale 2.62108.18004.0, en plus de ce
package à installer. Les infrastructures avec le nom «Microsoft.UI.Xaml.2.6» installées actuellement sont:
Windows ne peut pas installer le package Files_2.0.13.0_x64__1y0xx7n9077q4, car ce package dépend d’une infrastructure qui n’a pas pu
être trouvée. Indiquez l’infrastructure «Microsoft.UI.Xaml.2.6» publiée par «CN=Microsoft Corporation, O=Microsoft Corporation,
L=Redmond, S=Washington, C=US», avec une architecture neutre ou de processeur x64 et la version minimale 2.62108.18004.0, en plus de ce
package à installer. Les infrastructures avec le nom «Microsoft.UI.Xaml.2.6» installées actuellement sont: {}
REMARQUE: pour obtenir des informations supplémentaires, recherchez [ActivityId] c482551d-c0da-0006-d1ac-82c4dac0d701 dans le journal
des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID c482551d-c0da-0006-d1ac-82c4dac0d701
Au caractère Ligne:1 : 1
+ Add-AppPackage -path "C:\Users\VDMC5301\Downloads\Files.Package_2.0.1 ...

everytime, it's searching for some "Microsoft.UI.Xaml.2.6" package and does not find it ........ and the linked github repo above does not exist anymore so there is no source for dependencies ? (I cannot install from windows store, it is beeing blocked by my company, even if I'm admin on my computer)

yaira2 commented 2 years ago

@aschor that will happen if you don't have the dependencies installed, future releases of Files will include all the dependencies to resolve this issue.