Skip to content

Commit 64a9b09

Browse files
committed
Fixed OneDrive paths
1 parent d961c41 commit 64a9b09

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)