Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
v50205
Browse files Browse the repository at this point in the history
  • Loading branch information
EnhancedJax committed Aug 4, 2022
1 parent 370fc5d commit ebdc46c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
Binary file modified @Resources/Fonts/MaterialIcons-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file modified @Resources/Fonts/MaterialIconsRound-Regular.otf
Binary file not shown.
Binary file modified @Resources/Powershell/Installer.ps1
Binary file not shown.
Binary file modified @Resources/Version.inc
Binary file not shown.
16 changes: 9 additions & 7 deletions CoreInstaller.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,14 @@ public static extern bool IsWow64Process(

$bit = '32bit'
Get-Process -Id $rmprocess_id | Foreach {
$is32Bit=[int]0
if ($_.Handle -ne $null) {
if ([Kernel32.NativeMethods]::IsWow64Process($_.Handle, [ref]$is32Bit)) {
$bit = "$(if ($is32Bit) {'32bit'} else {'64bit'})"
} else {
$modules = $_.modules
foreach($module in $modules) {
$file = [System.IO.Path]::GetFileName($module.FileName).ToLower()
if($file -eq "wow64.dll") {
$bit = "32bit"
}
} else {
$bit = "64bit"
}
}
}

Expand All @@ -258,8 +259,9 @@ public static extern bool IsWow64Process(
Write-Done
# ---------------------------- Start installation ---------------------------- #
$root = "$root\Unpacked"
Write-Part "Getting archive info"
Write-Part "Starting installation process for package"
$skinspath = $root | Split-Path | Split-Path
Write-Done

debug "RainmeterPluginsBit: $bit"
debug "RainmeterPath: $settingspath"
Expand Down

0 comments on commit ebdc46c

Please sign in to comment.