Jump to content

Recommended Posts

Posted (edited)

Good morning.

I am trying to install a particular app, Ookla.SpeedtestbyOokla, inside the W11 iso using the AuditMode \Sys Prep procedure.

I downloaded both the app and the dependencies, then

I used some powershell commands

$AppxBundlePath = "C:\Ookla.SpeedtestbyOokla_1.18.194.0_neutral_~_43tkc6nmykmb6"

$DependencyPath1_x64 = "C:\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x64__8wekyb3d8bbwe.Appx"
$DependencyPath2_x64 = "C:\Microsoft.VCLibs.140.00_14.0.33519.0_x64__8wekyb3d8bbwe.Appx"

$DependencyPath3_x86 = "C:\Microsoft.NET.Native.Runtime.1.7_1.7.27422.0_x86__8wekyb3d8bbwe.Appx"
$DependencyPath4_x86 = "C:\Microsoft.VCLibs.140.00_14.0.33519.0_x86__8wekyb3d8bbwe.Appx"

DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:"$AppxBundlePath" /SkipLicense /Region:all /DependencyPackagePath:"$DependencyPath1_x64" /DependencyPackagePath:"$DependencyPath2_x64" /DependencyPackagePath:"$DependencyPath3_x86" /DependencyPackagePath:"$DependencyPath4_x86"

Unfortunately, I am receiving an error in the syntax of this last command, and I cannot figure out how to resolve it.

Any ideas?

Thank you.

 

Edited by DMD61

Posted (edited)

In my example, it was Ookla.SpeedtestbyOokla, but it can be done for any other app or multiple apps at the same time.

I followed this procedure:

In the virtual machine in Audit Mode, I copied all the files related to the app in question, plus all the files related to x64 and x86 dependencies, to the main C directory.

Along with the files, the app installation file with all dependencies must be present, which is the file in PowerShell (Install-Ookla.ps1).

All files must be removed when the entire procedure is complete.

 

This can be launched via a DOS command.

PowerShell.exe -ExecutionPolicy Bypass -File C:\Install-Ookla.ps1

If we need to install multiple apps, for which there are multiple .ps1 installation files, we can use a single batch command to launch them all in sequence.

Below, I have included the two sample scripts.

 

PS1 installation file (Ookla.SpeedtestbyOokla)

https://justpaste.it/aushf

 

Unified batch script for multiple apps (personal example)

https://justpaste.it/dbisn

 

Edited by DMD61

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...