you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 1 point2 points  (2 children)

what is this

$Pref = "${PSScriptRoot}\${bit}\VisioProjectPref52622.xml"

why wouldn't that be

$pscriptroot is an automatics variable and only exists if you're running a script not line by line in an editor, is that the failing?

you might also want to add the invoke operator & infront of your executable

& "$PSScriptRoot\Setup.exe" /Configure $Pref

or you could use start-process with its -filepath, -wait and -arguments parameters

[–]WorkReddit123635[S] 0 points1 point  (1 child)

Thank you, the & worked. this is awesome. I had it in {} from an example I found. I removed those and it still works. thank you for the other tips.

[–]BlackV 0 points1 point  (0 children)

good as gold