Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-05-2007, 04:33 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
How do you run a .exe file on a remote machine?

I think I figured out how to deploy a setup.exe file to a remote machine. I used the 'Copy Files' action step, which copied the file from my machine to another machine in the network. Now, I think that the 'Run Program' should be able to run the file to install in on the remote computer; just writing in the path, right? Now, when the file opens, it prompts the user to click on certain buttons to continue the process. Is there a way to make it run "silently," make it go through the process without needing a user to select or click on anything? I'm just experimenting right now, I'll need to do this later on when I finish my .bld file. Thanks.
Reply With Quote
  #2  
Old 07-05-2007, 05:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Use the Run Program action to run a program on a remote computer (PsExec must also be available in the PATH).
http://www.visualbuild.com/Manual/programremotetab.htm

The setup.exe program needs to support command-line flags that cause it to operate in a silently.
Reply With Quote
  #3  
Old 07-06-2007, 10:27 AM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
Thank you. I'm not sure about how I could find out if the setup.exe file supports the needed flag to make it run silently, nor how to make it so, if possible. What about using macros to automatically select options in the setup run process. As in, make a macro that would select options on one step, another macro for another, and so on. As if a user was attending the setup process, clicking 'OK' or 'I agree'. Can that be done? How can that be done?
Reply With Quote
  #4  
Old 07-06-2007, 07:21 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Many setup programs can take setup parameters, such as /silent and other flags to control the installation process. The provider of the setup program controls the flags accepted (if any) and what they do, you would have to get that information from the product vendor.

As far as using macros to control the setup flags that are passed when executing, this can certainly be done with Visual Build Professional.

As an example, I'll assume you are running a file called setup.exe, and you want to optionally pass a parameter: /param1. You could define a macro called PASS_PARAM1, then assign true or false to it...

The Run Program step that invokes the setup program could have a command value of:
Code:
setup.exe vbld_IIf(%PASS_PARAM1%, "/param1", "")]
Of course that is a simple example but should get you started. Hope that helps...
Reply With Quote
  #5  
Old 08-20-2007, 05:50 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
Thank you.

This looks good but I have not been able to make this work with the macro. I attached a screen shot of the first parameter of the application I am installing (for practice). Easy, right? I hope you can see it well. Tell me, how does it know what parameter it is and what value would I pass to the macro for evaluation? Is "/param1" the way you indicate it's the first parameter? I assume the true part would be the OK button, and the false part the Exit Setup button. How do I write this to make it so? Is there somewhere I could learn more about this? Hopefully with your help, I can do the other parameters, and other installations, on my own.
Attached Images
 
Reply With Quote
  #6  
Old 08-21-2007, 08:11 AM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Transform files are the answer

Its sounds like your setup.exe is just a boot straper for an MSI package. You can create transform files to create an answer if this is the case.

Here is a link to a free tool from Wise, for some reason its not on the wise site anymore but its still posted here

http://209.104.132.210/InstallTailor_6_0.msi

I usually copy the MSI package to a staging folder and in that folder is an MST that is taliored for that machine. (I create one for each server that I need to install on.)

Look at the command line options for msiexe.exe

Otherwise looking to setup.exe switches there is one option that creates an SS.INI files that is also an anser file for older non-MSI packages.

Hope that helps.
Reply With Quote
  #7  
Old 08-23-2007, 06:03 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
I was not expecting that. This sounds like another approach. I'll keep searching for info and trying. I'll let you know what I came up with, if time allows. Thank you for your input.
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 06:03 PM.


Copyright © 1999-2023 Kinook Software, Inc.