chocolatey-packages icon indicating copy to clipboard operation
chocolatey-packages copied to clipboard

Windirstat path update and shortcuts

Open IanMoroney opened this issue 3 years ago • 2 comments

When windirstat is installed via chocolatey, it doesn't create start menu shortcuts, a desktop shortcut or get added to the path. These features are important from a usability standpoint, and according to the comments in https://chocolatey.org/packages/windirstat have been requested for 2 years.

Can you add these features to the install for windirstat?

IanMoroney avatar Mar 10 '21 16:03 IanMoroney

I got the same problem here. It is a problem especially when you have a user account for installing software and a standard limited user for regular use.

The problem is that the installer puts in Shortcuts in the user profile:

i.e. C:\Users\user\Desktop & C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\WinDirStat

Rather than system wide:

i.e. C:\Users\Public\Desktop & C:\ProgramData\Microsoft\Windows\Start Menu\Programs\WinDirStat

Even though the app itself is installed system wide to C:\Program Files (x86)\WinDirStat and works fine for regular users.

WinDirStat itself is not receiving updates, so maybe the chocolatey package can fix it? (You can omit the Desktop icon though, those are annoying)

29039 avatar Mar 21 '22 12:03 29039

For now, I am installing WInDirStat this way:

choco install -y windirstat
Move-Item -Path "$env:AppData\Microsoft\Windows\Start Menu\Programs\WinDirStat\WinDirStat.lnk" -Destination "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\WinDirStat.lnk"
Remove-Item "$env:UserProfile\Desktop\WinDirStat.lnk"
Remove-Item "$env:AppData\Microsoft\Windows\Start Menu\Programs\WinDirStat\" -Recurse
icacls "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\WinDirStat.lnk" /RESET

No clue if this would meet code standards, I'm not even going to try

29039 avatar Mar 21 '22 16:03 29039