slack-black-theme icon indicating copy to clipboard operation
slack-black-theme copied to clipboard

Adding handy Powershell script to apply the mod on Windows

Open tevert opened this issue 7 years ago • 9 comments

Works for Windows 10, Slack 3.0.5. Automatically checks installation directory for the latest present version and applies the mod to that.

tevert avatar Feb 13 '18 20:02 tevert

Did not work, I get this. 2018-02-19 5 _li Windows 10, Slack 3.0.5.

suyasha0 avatar Feb 20 '18 02:02 suyasha0

Huh, weird - did you override your HOMEPATH environment variable? It uses that to locate your Slack installs; it should be set to "\Users\YourUsername" on Windows machines.

tevert avatar Feb 20 '18 03:02 tevert

I think my HOMEPATH is already set to that. Here is what PowerShell shows. 2018-02-20 Is there another command I should be using?

suyasha0 avatar Feb 20 '18 17:02 suyasha0

Try echo $env:HOMEPATH

tevert avatar Feb 20 '18 17:02 tevert

I get "\Users\MyUsername".

suyasha0 avatar Feb 20 '18 17:02 suyasha0

Oh I see now I was looking in the wrong place for that error - this script looks for Slack versions in \Users\MyUsername\AppData\Local\slack\ - can you dir that directory?

tevert avatar Feb 20 '18 18:02 tevert

I see- I did that and I realize that I don't have the files there. Is this normal? 2018-02-20 1 _li

suyasha0 avatar Feb 20 '18 19:02 suyasha0

That's where Slack installed itself on my machine - Apparently yours put itself somewhere else.

I think I'll need to rework the script to use a registry key or something to find it. For curiosity's sake, did yours end up Program Files or did you pick a whole new location?

tevert avatar Feb 20 '18 19:02 tevert

Couldn't find it and had to reinstall Slack. Now it works though, thanks!

suyasha0 avatar Feb 21 '18 23:02 suyasha0