ferventcoder / chocolatey-packages

The packages...all about the packages.
113 stars 112 forks source link

Windirstat path update and shortcuts #321

Open IanMoroney opened 3 years ago

IanMoroney commented 3 years ago

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?

29039 commented 2 years ago

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 commented 2 years ago

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