Link to home
Start Free TrialLog in
Avatar of lapucca
lapucca

asked on

Need help with VBscript to open the SDK COMMAND PROMPT window and run several text command

Hi, I need to have a vbs to run in MSI postbuild.  The vbs would open the SDK COMMAND PROMPT window (Program->Start->Microsoft .net framework sdk v2.0->SDK COMMAND PROMPT ).  I then need to run several text command (i'm doing signtool sign.....).
Most appreciated if someone can show me what the code would be like to do this.  Thank you.
ASKER CERTIFIED SOLUTION
Avatar of William Elliott
William Elliott
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lapucca
lapucca

ASKER

Do you mean to create a batch file with these commands in it?  I already have a vbs file that I use for MS installation's Postbuild.  I would like to add these signtool 'commands' to the existing vbs file.  How can I do that?  Thank you.
Avatar of lapucca

ASKER

Hi, I found the file but it's a text file, vsvars32.txt.  I appended my 'command' text to the end of this file, after the ':end" statement and run it.  It prints out "settring environment...."   But it didn't print out my "@echo start signing..."  and no message given about successful signing if it would have run my command.  Am I not editing this file correctly?  thank you.
Avatar of lapucca

ASKER

I'm running the signtool command.  Do I need to preceed it in the batch file with any thing?  Or do I just enter the command just as I would from actually entering it form a command prompt?  I don't know why it's not working.
sorry,. haven't been able to get back with you.. did you figure this out?
tell me what you're specifically wanting to do and i can make a script do it.