Skip to content

Instantly share code, notes, and snippets.

View chippey5's full-sized avatar

Simon chippey5

  • Sweden
View GitHub Profile
@chippey5
chippey5 / archlinux-qemu-kvm.md
Created October 6, 2024 12:09 — forked from tatumroaquin/archlinux-qemu-kvm.md
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

Check CPU has VM capabilities

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD
@chippey5
chippey5 / Get-MSIProductVersion
Last active March 4, 2022 13:39
Get the ProductVersion of an .MSI with Powershell (>=5.1)
function Get-MsiProductVersion {
param($path)
$msiOpenDatabaseModeReadOnly = 0
$Installer = New-Object -ComObject WindowsInstaller.Installer
$Database = Invoke-Method $Installer OpenDatabase @($path, $msiOpenDatabaseModeReadOnly) -ErrorAction SilentlyContinue
if ($null -ne $Database) {
$View = Invoke-Method $Database OpenView @("SELECT Value FROM Property WHERE Property='ProductVersion'")
Invoke-Method $View Execute | Out-Null
$Record = Invoke-Method $View Fetch
if ($Record) {