Repository: PowerToys
Issue: Error writing to file (PowerToys.ImageResizeExt.dll)
Labels: Issue-Bug,Area-Setup/Install,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

General

### Steps to reproduce

1. download .exe
2. update

### ✔️ Expected Behavior

no error

### ❌ Actual Behavior

Hello,
I can't upgrade or install the 0.80.1 update. I currently have the 0.80 version. this is the error : 

![image](https://github.com/microsoft/PowerToys/assets/89610869/e521f6e3-9931-469a-96ce-517c5f60fc41)

Log file : 

```
[5ED0:5240][2024-04-18T17:03:33]i001: Burn v3.14.1.8722, Windows v10.0 (Build 22631: Service Pack 0), path: C:\Users\ALEXAN~1\AppData\Local\Temp\{948DC128-4C05-4020-A184-962C6E7DC996}\.cr\PowerToysUserSetup-0.80.1-x64.exe
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing string variable 'InstallFolder' to value '[LocalAppDataFolder]PowerToys'
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing string variable 'MsiLogFolder' to value '[LocalAppDataFolder]\Microsoft\PowerToys\'
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing version variable 'MinimumVersion' to value '0.0.0.0'
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing version variable 'TargetPowerToysVersion' to value '0.80.1'
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing version variable 'DetectedPowerToysVersion' to value '0.0.0.0'
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing version variable 'DetectedPowerToysUserVersion' to value '0.0.0.0'
[5ED0:5240][2024-04-18T17:03:33]i000: Initializing version variable 'DetectedWindowsBuildNumber' to value '0'
[5ED0:5240][2024-04-18T17:03:33]i009: Command Line: '-burn.clean.room=C:\Users\Alexandre\Downloads\PowerToysUserSetup-0.80.1-x64.exe -burn.filehandle.attached=792 -burn.filehandle.self=612'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Alexandre\Downloads\PowerToysUserSetup-0.80.1-x64.exe'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Alexandre\Downloads\'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ALEXAN~1\AppData\Local\Temp\powertoys-bootstrapper-msi-0.80.1_20240418170333.log'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting string variable 'WixBundleName' to value 'PowerToys (Preview) x64'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[5ED0:A118][2024-04-18T17:03:33]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[5ED0:A118][2024-04-18T17:03:33]i000: Setting version variable 'WixBundleFileVersion' to value '0.80.1.0'
[5ED0:5240][2024-04-18T17:03:33]i100: Detect begin, 3 packages
[5ED0:5240][2024-04-18T17:03:33]i000: Product or related product not found: {D8B559DB-4C98-487A-A33F-50A8EEE42726}
[5ED0:5240][2024-04-18T17:03:33]i000: Setting version variable 'DetectedPowerToysUserVersion' to value '0.0.0.0'
[5ED0:5240][2024-04-18T17:03:33]i000: Product or related product not found: {42B84BF7-5FBF-473B-9C8B-049DC16F7708}
[5ED0:5240][2024-04-18T17:03:33]i000: Setting version variable 'DetectedPowerToysVersion' to value '0.0.0.0'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting string variable 'DetectedWindowsBuildNumber' to value '22631'
[5ED0:5240][2024-04-18T17:03:33]i000: Registry key not found. Key = 'Software\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
[5ED0:5240][2024-04-18T17:03:33]i000: Setting numeric variable 'HasWebView2PerUser' to value 0
[5ED0:5240][2024-04-18T17:03:33]i000: Setting numeric variable 'HasWebView2PerMachine' to value 1
[5ED0:5240][2024-04-18T17:03:33]i102: Detected related bundle: {921dad21-8546-4542-be32-0aef7c28b005}, type: Upgrade, scope: PerUser, version: 0.80.0.0, operation: MajorUpgrade
[5ED0:5240][2024-04-18T17:03:33]i052: Condition 'HasWebView2PerMachine OR HasWebView2PerUser' evaluates to true.
[5ED0:5240][2024-04-18T17:03:33]i101: Detected package: TerminatePowerToys, state: Absent, cached: None
[5ED0:5240][2024-04-18T17:03:33]i101: Detected package: WebView2, state: Present, cached: None
[5ED0:5240][2024-04-18T17:03:33]i101: Detected package: PowerToysUserSetup_0.80.1_x64.msi, state: Absent, cached: None
[5ED0:5240][2024-04-18T17:03:33]i052: Condition 'MinimumVersion >= DetectedPowerToysVersion' evaluates to true.
[5ED0:5240][2024-04-18T17:03:33]i052: Condition 'TargetPowerToysVersion >= DetectedPowerToysUserVersion OR WixBundleInstalled' evaluates to true.
[5ED0:5240][2024-04-18T17:03:33]i052: Condition 'DetectedWindowsBuildNumber >= 19041 OR WixBundleInstalled' evaluates to true.
[5ED0:5240][2024-04-18T17:03:33]i199: Detect complete, result: 0x0
[5ED0:A118][2024-04-18T17:03:36]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[5ED0:A118][2024-04-18T17:03:38]i000: Setting string variable 'InstallFolder' to value 'C:\Users\Alexandre\AppData\Local\PowerToys'
[5ED0:A118][2024-04-18T17:03:38]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[5ED0:5240][2024-04-18T17:03:38]i200: Plan begin, 3 packages, action: Install
[5ED0:5240][2024-04-18T17:03:38]w321: Skipping dependency registration on package with no dependency providers: TerminatePowerToys
[5ED0:5240][2024-04-18T17:03:38]i000: Setting string variable 'WixBundleLog_TerminatePowerToys' to value 'C:\Users\ALEXAN~1\AppData\Local\Temp\powertoys-bootstrapper-msi-0.80.1_20240418170333_000_TerminatePowerToys.log'
[5ED0:5240][2024-04-18T17:03:38]w321: Skipping dependency registration on package with no dependency providers: WebView2
[5ED0:5240][2024-04-18T17:03:38]i000: Setting string variable 'WixBundleRollbackLog_PowerToysUserSetup_0.80.1_x64.msi' to value 'C:\Users\ALEXAN~1\AppData\Local\Temp\powertoys-bootstrapper-msi-0.80.1_20240418170333_001_PowerToysUserSetup_0.80.1_x64.msi_rollback.log'
[5ED0:5240][2024-04-18T17:03:38]i000: Setting string variable 'WixBundleLog_PowerToysUserSetup_0.80.1_x64.msi' to value 'C:\Users\ALEXAN~1\AppData\Local\Temp\powertoys-bootstrapper-msi-0.80.1_20240418170333_001_PowerToysUserSetup_0.80.1_x64.msi.log'
[5ED0:5240][2024-04-18T17:03:38]i201: Planned package: TerminatePowerToys, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: Yes, dependency: None
[5ED0:5240][2024-04-18T17:03:38]i201: Planned package: WebView2, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[5ED0:5240][2024-04-18T17:03:38]i201: Planned package: PowerToysUserSetup_0.80.1_x64.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[5ED0:5240][2024-04-18T17:03:38]i207: Planned related bundle: {921dad21-8546-4542-be32-0aef7c28b005}, type: Upgrade, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, dependency: None
[5ED0:5240][2024-04-18T17:03:38]i299: Plan complete, result: 0x0
[5ED0:5240][2024-04-18T17:03:38]i300: Apply begin
[5ED0:5240][2024-04-18T17:03:38]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42b49d04-c205-4bd1-8060-6745e176df9b}, options: 0x7, disable resume: No
[5ED0:5240][2024-04-18T17:03:38]i000: Caching bundle from: 'C:\Users\ALEXAN~1\AppData\Local\Temp\{BDF0CA62-9A4C-4D45-8B3E-F7793CEF9886}\.be\PowerToysUserSetup-0.80.1-x64.exe' to: 'C:\Users\Alexandre\AppData\Local\Package Cache\{42b49d04-c205-4bd1-8060-6745e176df9b}\PowerToysUserSetup-0.80.1-x64.exe'
[5ED0:5240][2024-04-18T17:03:38]i320: Registering bundle dependency provider: {42b49d04-c205-4bd1-8060-6745e176df9b}, version: 0.80.1.0
[5ED0:5240][2024-04-18T17:03:38]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42b49d04-c205-4bd1-8060-6745e176df9b}, resume: Active, restart initiated: No, disable resume: No
[5ED0:78C0][2024-04-18T17:03:39]i305: Verified acquired payload: TerminatePowerToys at path: C:\Users\Alexandre\AppData\Local\Package Cache\.unverified\TerminatePowerToys, moving to: C:\Users\Alexandre\AppData\Local\Package Cache\CEEB2F4674AB44E9EBCE9175CE716612D979979C\terminate_powertoys.cmd.
[5ED0:78C0][2024-04-18T17:03:39]i305: Verified acquired payload: PowerToysUserSetup_0.80.1_x64.msi at path: C:\Users\Alexandre\AppData\Local\Package Cache\.unverified\PowerToysUserSetup_0.80.1_x64.msi, moving to: C:\Users\Alexandre\AppData\Local\Package Cache\{DD4328EA-9BEC-42E3-9231-E511B0ADA64C}v0.80.1\PowerToysUserSetup-0.80.1-x64.msi.
[5ED0:5240][2024-04-18T17:03:39]i301: Applying execute package: TerminatePowerToys, action: Install, path: C:\Users\Alexandre\AppData\Local\Package Cache\CEEB2F4674AB44E9EBCE9175CE716612D979979C\terminate_powertoys.cmd, arguments: '"C:\Users\Alexandre\AppData\Local\Package Cache\CEEB2F4674AB44E9EBCE9175CE716612D979979C\terminate_powertoys.cmd"'
[5ED0:5240][2024-04-18T17:03:39]i319: Applied execute package: TerminatePowerToys, result: 0x0, restart: None
[5ED0:5240][2024-04-18T17:03:39]i323: Registering package dependency provider: {DD4328EA-9BEC-42E3-9231-E511B0ADA64C}, version: 0.80.1, package: PowerToysUserSetup_0.80.1_x64.msi
[5ED0:5240][2024-04-18T17:03:39]i301: Applying execute package: PowerToysUserSetup_0.80.1_x64.msi, action: Install, path: C:\Users\Alexandre\AppData\Local\Package Cache\{DD4328EA-9BEC-42E3-9231-E511B0ADA64C}v0.80.1\PowerToysUserSetup-0.80.1-x64.msi, arguments: ' ARPSYSTEMCOMPONENT="1" BOOTSTRAPPERINSTALLFOLDER="C:\Users\Alexandre\AppData\Local\PowerToys"'
[5ED0:5240][2024-04-18T17:05:40]e000: Error 0x80070643: Failed to install MSI package.
[5ED0:5240][2024-04-18T17:05:40]e000: Error 0x80070643: Failed to configure per-user MSI package.
[5ED0:5240][2024-04-18T17:05:40]i319: Applied execute package: PowerToysUserSetup_0.80.1_x64.msi, result: 0x80070643, restart: None
[5ED0:5240][2024-04-18T17:05:40]e000: Error 0x80070643: Failed to execute MSI package.
[5ED0:5240][2024-04-18T17:05:40]i318: Skipped rollback of package: PowerToysUserSetup_0.80.1_x64.msi, action: Uninstall, already: Absent
[5ED0:5240][2024-04-18T17:05:40]i319: Applied rollback package: PowerToysUserSetup_0.80.1_x64.msi, result: 0x0, restart: None
[5ED0:5240][2024-04-18T17:05:40]i329: Removed package dependency provider: {DD4328EA-9BEC-42E3-9231-E511B0ADA64C}, package: PowerToysUserSetup_0.80.1_x64.msi
[5ED0:5240][2024-04-18T17:05:40]i351: Removing cached package: PowerToysUserSetup_0.80.1_x64.msi, from path: C:\Users\Alexandre\AppData\Local\Package Cache\{DD4328EA-9BEC-42E3-9231-E511B0ADA64C}v0.80.1\
[5ED0:5240][2024-04-18T17:05:40]i351: Removing cached package: TerminatePowerToys, from path: C:\Users\Alexandre\AppData\Local\Package Cache\CEEB2F4674AB44E9EBCE9175CE716612D979979C\
[5ED0:5240][2024-04-18T17:05:40]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42b49d04-c205-4bd1-8060-6745e176df9b}, resume: None, restart: None, disable resume: No
[5ED0:5240][2024-04-18T17:05:40]i330: Removed bundle dependency provider: {42b49d04-c205-4bd1-8060-6745e176df9b}
[5ED0:5240][2024-04-18T17:05:40]i352: Removing cached bundle: {42b49d04-c205-4bd1-8060-6745e176df9b}, from path: C:\Users\Alexandre\AppData\Local\Package Cache\{42b49d04-c205-4bd1-8060-6745e176df9b}\
[5ED0:5240][2024-04-18T17:05:40]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{42b49d04-c205-4bd1-8060-6745e176df9b}, resume: None, restart initiated: No, disable resume: No
[5ED0:5240][2024-04-18T17:05:40]i399: Apply complete, result: 0x80070643, restart: None, ba requested restart:  No
```

### Other Software

_No response_