Open TayouVR opened 3 weeks ago
I just installed the update to 9.1 and noticed some red in my PowerShell. I think it's related to this bug. Here is my log:
Updating 'prismlauncher' (8.4 -> 9.1)
Downloading new version
Starting download with aria2 ...
Download: Download Results:
Download: gid |stat|avg speed |path/URI
Download: ======+====+===========+=======================================================
Download: 85c636|OK | 3.5MiB/s|~/scoop/cache/prismlauncher#9.1#1a02a9e.zip
Download: Status Legend:
Download: (OK):download completed.
Checking hash of PrismLauncher-Windows-MSVC-Portable-9.1.zip ... ok.
Uninstalling 'prismlauncher' (8.4)
Removing shim 'prismlauncher.shim'.
Removing shim 'prismlauncher.exe'.
Unlinking ~\scoop\apps\prismlauncher\current
Installing 'prismlauncher' (9.1) [64bit] from 'games' bucket
Loading PrismLauncher-Windows-MSVC-Portable-9.1.zip from cache.
Extracting PrismLauncher-Windows-MSVC-Portable-9.1.zip ... done.
Running pre_install script...New-Item : Für diesen Vorgang sind Administratorrechte erforderlich.
In Zeile:18 Zeichen:5
+ New-Item -Type SymbolicLink -Value $persist_dir/$_ -Path $dir/$_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Users\...r\accounts.json:String) [New-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand
New-Item : Für diesen Vorgang sind Administratorrechte erforderlich.
In Zeile:18 Zeichen:5
+ New-Item -Type SymbolicLink -Value $persist_dir/$_ -Path $dir/$_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Users\...ncher\metacache:String) [New-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand
New-Item : Für diesen Vorgang sind Administratorrechte erforderlich.
In Zeile:18 Zeichen:5
+ New-Item -Type SymbolicLink -Value $persist_dir/$_ -Path $dir/$_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Users\...ismlauncher.cfg:String) [New-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand
done.
Linking ~\scoop\apps\prismlauncher\current => ~\scoop\apps\prismlauncher\9.1
Creating shim for 'prismlauncher'.
Making ~\scoop\shims\prismlauncher.exe a GUI binary.
Creating shortcut for Prism Launcher (prismlauncher.exe)
Persisting assets
Persisting cache
Persisting catpacks
Persisting icons
Persisting iconthemes
Persisting instances
Persisting libraries
Persisting logs
Persisting meta
Persisting mods
Persisting themes
Persisting translations
Running post_install script...done.
'prismlauncher' (9.1) was installed successfully!
I stripped out some personal details (username) I'm sorry it's in German. But basically: it wants to create new symbolic links, but it needs admin access for that.
scoop install --global prismlauncher
might work for now, as it always uses administrator access during the installation process.
Prerequisites
Package Name
prismlauncher
Expected/Current Behaviour
In https://github.com/Calinou/scoop-games/pull/1171 the files
prismlauncher.cfg
andaccounts.json
got removed fro mthe built-in persist list in favor of a custom script. I am not sure why, but this custom script hardlinks the files in question upon initial install as far as I can see. It doesn't update the links when updating the package afterwards. Going from 8.4 to 9.0 and 9.1 means the config and accounts aren't there and the launcher needs to create new files.upstream report: https://github.com/PrismLauncher/PrismLauncher/issues/3026
Steps to Reproduce
Possible Solution
I am not sure what the problem with those 3 files/folders was before the mentioned PR, but its way of persisting doesn't seem to work.
I don't currently have a working solution.
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response