anderlli0053 / DEV-tools

📦 General development tools for applications and games and pretty much everything else too :) . Created and maintained by Andrew Poženel - anderlli0053 . 📦
https://andrew-pozenel.xyz/
The Unlicense
113 stars 21 forks source link

Copy-Item : ... The process cannot access the file #118

Closed dong-lufei closed 1 year ago

dong-lufei commented 1 year ago
Updating 'apifox' (2.2.26 -> 2.2.27)
Downloading new version
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 9054b5|OK  |    24MiB/s|D:/scoop_user_apps/cache/apifox#2.2.27#http_cdn.apifox.cn_download_2.2.27_Apifox-2.2.27.exe_installer.exe
Download: Status Legend:
Download: (OK):download completed.
Checking hash of Apifox-2.2.27.exe ... ok.
Uninstalling 'apifox' (2.2.26)
Running uninstaller script...
INFO  Backing up user data...
Removing shim 'Apifox.shim'.
Removing shim 'Apifox.exe'.
Unlinking D:\scoop_user_apps\apps\apifox\current
Installing 'apifox' (2.2.27) [64bit] from dev-tools bucket
Loading Apifox-2.2.27.exe from cache.
Running pre_install script...
INFO  Copying user data...
Copy-Item:
Line |
   3 |      Copy-Item "$persist_dir\User Data\*" "$env:AppData\apifox\" -Recu …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The process cannot access the file 'C:\Users\13697\AppData\Roaming\apifox\ApifoxAppAgent.exe' because it is being used by another process.
Running installer script...
Linking D:\scoop_user_apps\apps\apifox\current => D:\scoop_user_apps\apps\apifox\2.2.27
Creating shim for 'Apifox'.
Creating shortcut for Apifox (Apifox.exe)
Running post_install script...
'apifox' (2.2.27) was installed successfully!

Although every update is successful, there is always a red report in the middle

dong-lufei commented 1 year ago

My apifox is not set to start, nor is it in use, but this problem is reported

anderlli0053 commented 1 year ago

@dong-lufei Try it now