I grabbed a module to allow UI scripting. Here's what I have to do in order to run a simple Hello World with it:
- download Powershell
- download PowerShellPack
- install both
- start Powershell
- Set-ExecutionPolicy Unrestricted (so I can run scripts)
- Import-Module PowerShellPack (needs to be done each time)
- Hit ctrl+c because it's going to ask me once per script, and there are about 50. And, each time I run powershell.
- Set-ExecutionPolicy Bypass (hello, usefulness, goodbye protection. Grrrr)
- Import-Module PowerShellPack
- Import-Module WPK
- New-Label "Hello, World" -Show
- get odd error: Exception calling ".ctor" with "0" argument(s): "The calling thread must be STA, because many UI components require this."
- read blog
- change shortcut to Powershell to add -STA
- restart Powershell
- Import-Module PowerShellPack
- Import-Module WPK
- New-Label "Hello, World" -Show
Success!
WTF. Am I a bad person if I wonder why the hell I have to jump through all these hoops?
No comments:
Post a Comment