Code: Select all
#Requires -version 3
Param($tempFile)
Add-Type -AssemblyName PresentationFramework
[System.Windows.MessageBox]::Show($tempFile)
$programFiles = $env:programfiles
$destination = New-Item "$programFiles\testFolder" -type Directory
Copy-Item -path $tempFile -destination $destinationWith that being said, please use the workaround I've mentioned above.MSI (s) (88:2C) [16:10:20:707]: WIN64DUALFOLDERS: 'C:\Program Files (x86)\' will substitute 17 characters in 'C:\Program Files\' folder path. (mask argument = 0, the folder pair's iSwapAttrib member = 0).
MSI (s) (88:2C) [16:10:20:709]: PROPERTY CHANGE: Modifying ProgramFiles64Folder property. Its current value is 'C:\Program Files\'. Its new value: 'C:\Program Files (x86)\'.
FOLLOW US
Get the latest news in Application Packaging