File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Sophia_Script_for_Windows_10_PowerShell_7/Module
Sophia_Script_for_Windows_10/Module Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4591,16 +4591,16 @@ function OneDrive
45914591 Write-Verbose - Message ($Localization.InstallNotification -f " OneDrive" ) - Verbose
45924592 Write-Information - MessageData " " - InformationAction Continue
45934593
4594- if (Test-Path - Path $env: SystemRoot \System32 \OneDriveSetup.exe )
4594+ if (Test-Path - Path $env: SystemRoot \SysWOW64 \OneDriveSetup.exe )
45954595 {
45964596 if ($AllUsers )
45974597 {
45984598 # Install OneDrive for all users to %ProgramFiles%
4599- & $env: SystemRoot \System32 \OneDriveSetup.exe / allusers
4599+ & $env: SystemRoot \SysWOW64 \OneDriveSetup.exe / allusers
46004600 }
46014601 else
46024602 {
4603- Start-Process - FilePath $env: SystemRoot \System32 \OneDriveSetup.exe
4603+ Start-Process - FilePath $env: SystemRoot \SysWOW64 \OneDriveSetup.exe
46044604 }
46054605 }
46064606 else
Original file line number Diff line number Diff line change @@ -4593,16 +4593,16 @@ function OneDrive
45934593 Write-Verbose - Message ($Localization.InstallNotification -f " OneDrive" ) - Verbose
45944594 Write-Information - MessageData " " - InformationAction Continue
45954595
4596- if (Test-Path - Path $env: SystemRoot \System32 \OneDriveSetup.exe )
4596+ if (Test-Path - Path $env: SystemRoot \SysWOW64 \OneDriveSetup.exe )
45974597 {
45984598 if ($AllUsers )
45994599 {
46004600 # Install OneDrive for all users to %ProgramFiles%
4601- & $env: SystemRoot \System32 \OneDriveSetup.exe / allusers
4601+ & $env: SystemRoot \SysWOW64 \OneDriveSetup.exe / allusers
46024602 }
46034603 else
46044604 {
4605- Start-Process - FilePath $env: SystemRoot \System32 \OneDriveSetup.exe
4605+ Start-Process - FilePath $env: SystemRoot \SysWOW64 \OneDriveSetup.exe
46064606 }
46074607 }
46084608 else
You can’t perform that action at this time.
0 commit comments