Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-03-2007, 09:03 AM
JeffMN JeffMN is online now
Registered User
 
Join Date: 04-05-2007
Location: Minnesota
Posts: 1
Question Call Powershell script?

I have a build script that calls another program to deploy the built ASP.NET web application. I have an environment variable set up in VBP to indicate what environment the script is to deploy to. Prior to doing this, the config files for the web application need to be updated with the correct values.

Another developer here has written a Powershell script to do this. If I run it at the command line, it works fine. I've wrapped it in a batch file as well, and it works fine. If I try to call it either way from VBP, I get "Access to the path is denied." I've played with the security (giving 'Everyone' full control) in the directories this script is working with, and it always fails the same way - it's driving me nuts!

I'm using the VBP 'Run Program' action to call this. Can someone help me get to the bottom of this? Thanks.
Reply With Quote
  #2  
Old 05-03-2007, 10:00 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
PowerShell doesn't seem to be able to open the stdin/out pipe created by VBP. Use a command like

powershell ... >%TEMP%\out.txt

and configure the step to read output from %TEMP%\out.txt instead of Standard output.

We have found a workaround for the problem which will be implemented in the next release.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:46 PM.


Copyright © 1999-2023 Kinook Software, Inc.