-
Notifications
You must be signed in to change notification settings - Fork 406
Adding handy Powershell script to apply the mod on Windows #46
base: master
Are you sure you want to change the base?
Conversation
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. |
Try |
I get "\Users\MyUsername". |
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 |
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? |
Couldn't find it and had to reinstall Slack. Now it works though, thanks! |
@@ -0,0 +1,80 @@ | |||
$slackBaseDir = "$env:HOMEPATH\AppData\Local\slack\" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to $env:LocalAppData\Slack
- as will this will resolve the Slack path correctly
Works for Windows 10, Slack 3.0.5. Automatically checks installation directory for the latest present version and applies the mod to that.