This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Failed to remove appx in Installshield Powershell script in OS 24H2.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 19, 2024
11:52 AM
Failed to remove appx in Installshield Powershell script in OS 24H2.
Hi,
I got the error when I tried to remove an appx in Installshield powershell script.
Try {
$package = Get-AppxPackage -AllUsers -Name $packageName
Remove-AppxPackage -AllUsers $package
}
Catch {
Write-Host $_.Exception.Message
}
It throws the exception below.
InstallShield: Loading Assembly System.Numerics.Vectors
InstallShield: Couldn't resolve assembly by name System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
PowerShell wrapper: The type initializer for '<Module>' threw an exception.
It happens in the OS 24H2 (Windows 11 Pro Insider Preview).
It can work if I run the script outside of Installshield.
Any suggestions?
(0) Replies