Skip to content

[Bug]: SmartTaskbar install error and add-startup script error #13256

@bingis-khan

Description

@bingis-khan

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

smarttaskbar

Expected/Current Behaviour

While installing, there is an error. However, the program is installed as expected.

add-startup script return with an error (as shown below).

Steps to Reproduce

PS C:\Users\bingis-khan> scoop install smarttaskbar 
Installing 'smarttaskbar' (1.4.5) [64bit] from 'extras' bucket
Checking hash of SmartTaskbar_Setup.exe ... ok. 
Extracting SmartTaskbar_Setup.exe ... done. 
Running installer script... 
Select-Object : Property "Path" cannot be found. 
At line:1 char:38 
+ ...  shortcut_folder $global | Select-Object -ExpandProperty Path | Split ... 
+                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo          : InvalidArgument: (C:\Users\bingis...rams\Scoop A  
   pps:PSObject) [Select-Object], PSArgumentException 
    + FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Comm  
   ands.SelectObjectCommand 
Linking ~\scoop\apps\smarttaskbar\current => ~\scoop\apps\smarttaskbar\1.4.5    
Creating shim for 'SmartTaskbar'. 
Making C:\Users\bingis-khan\scoop\shims\smarttaskbar.exe a GUI binary. 
Creating shim for 'smarttaskbar-add-startup'. 
Creating shim for 'smarttaskbar-remove-startup'. 
Creating shortcut for SmartTaskbar (SmartTaskbar.exe) 
Persisting SmartTaskbar.exe.config 
'smarttaskbar' (1.4.5) was installed successfully! 
Notes 
----- 
Run 'smarttaskbar-add-startup' to add SmartTaskbar to startup programs. 
At C:\Users\bingis-khan\scoop\apps\smarttaskbar\current\smarttaskbar-add-startu 
p.ps1:5 char:1 
+ $wsShell.Save() 
+ ~~~~~~~~~~~~~~~ 
    + CategoryInfo          : OperationStopped: (:) [], UnauthorizedAccessExce  
   ption 
    + FullyQualifiedErrorId : System.UnauthorizedAccessException 
  
SmartTaskbar has been added to the startup programs. 
Run smarttaskbar-remove-startup to remove from startup. 

PS C:\Users\bingis-khan> smarttaskbar-add-startup.cmd 
Unable to save shortcut "C:\SmartTaskbar.lnk". 
At C:\Users\bingis-khan\scoop\apps\smarttaskbar\current\smarttaskbar-add-startu 
p.ps1:5 char:1 
+ $wsShell.Save() 
+ ~~~~~~~~~~~~~~~ 
    + CategoryInfo          : OperationStopped: (:) [], UnauthorizedAccessExce  
   ption 
    + FullyQualifiedErrorId : System.UnauthorizedAccessException 
  
SmartTaskbar has been added to the startup programs. 
Run smarttaskbar-remove-startup to remove from startup.

Possible Solution

Fix the bucket install script I guess?

Scoop and Buckets Version

Current Scoop version:
d285bb08 (HEAD -> master, tag: v0.4.1, origin/master, origin/HEAD) chore(release
): Bump to version 0.4.1 (#5924)
 
'main' bucket: 
2ad70a104 (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (
Closes #5808)
 
'extras' bucket: 
2a3c57e44 (HEAD -> master, origin/master, origin/HEAD) teamviewer: Update to ver
sion 15.53.7
 
'versions' bucket: 
4d681bdce (HEAD -> master, origin/master, origin/HEAD) php83: Update to version 
8.3.7
 
'nonportable' bucket: 
643ca6c4 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 
1.0.158
 
'games' bucket: 
68a3b1db0 (HEAD -> master, origin/master, origin/HEAD) ryujinx: Update to versio
n 1.1.1298

Scoop Config

last_update                       scoop_branch scoop_repo 
-----------                       ------------ ----------
2024-05-08T16:05:19.9605864+02:00 master       https://github.com/ScoopInstaller/Scoop

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.19041.4291
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.4291
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions