Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
Force unattended answer file to use UTF-8 encoding
  • Loading branch information
CodingWonders committed Mar 23, 2024
1 parent 90d520e commit 344fe0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/private/Invoke-MicroWin-Helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function New-Unattend {
# Replace the placeholder text with the Specialize pass
$unattend = $unattend.Replace("<#REPLACEME#>", $specPass).Trim()
}
$unattend | Out-File -FilePath "$env:temp\unattend.xml" -Force
$unattend | Out-File -FilePath "$env:temp\unattend.xml" -Force -Encoding utf8
}

function New-CheckInstall {
Expand Down
5 changes: 3 additions & 2 deletions winutil.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Author : Chris Titus @christitustech
Runspace Author: @DeveloperDurp
GitHub : https://github.com/ChrisTitusTech
Version : 24.03.23
#>
param (
[switch]$Debug,
Expand Down Expand Up @@ -46,7 +47,7 @@ Add-Type -AssemblyName System.Windows.Forms
# Variable to sync between runspaces
$sync = [Hashtable]::Synchronized(@{})
$sync.PSScriptRoot = $PSScriptRoot
$sync.version = "24.03.21"
$sync.version = "24.03.23"
$sync.configs = @{}
$sync.ProcessRunning = $false

Expand Down Expand Up @@ -1109,7 +1110,7 @@ function New-Unattend {
# Replace the placeholder text with the Specialize pass
$unattend = $unattend.Replace("<#REPLACEME#>", $specPass).Trim()
}
$unattend | Out-File -FilePath "$env:temp\unattend.xml" -Force
$unattend | Out-File -FilePath "$env:temp\unattend.xml" -Force -Encoding utf8
}

function New-CheckInstall {
Expand Down

0 comments on commit 344fe0d

Please sign in to comment.