Passing Parameters to an exe file

(imported topic written by VS6591)

How to run an exe file which takes paramteres, in silent mode using BigFix scripts. Please post the answer with the exact syntax

(imported comment written by BenKus)

Hi vs,

Please see examples at:

http://support.bigfix.com/bes/misc/customactions.html

A simple example is:

waithidden “C:\temp\download\setup.exe” /s

Ben

(imported comment written by VS6591)

Dear Ben,

I want to execute a batch file which asks for parameters, 5 in the form of dropdown values and 1 in the form of keyed in values.

Below is the command I used, but it didn’t work (Bigfix shows only the status of the task and not what is the exact error)

wait “{pathname of system folder & “\msiexec”}” /i “C:\Program Files\test\test.bat” /v"EnableSSL=0 Release Version=Release 9.5 EnableCAM=false EnableBus=false EnableLargeTradeEail=false Channel=TT URL=http://services/ServiceInfo"

(imported comment written by BenKus)

Hi VS,

There should be no need to include the msiexec… Try this:

waithidden cmd.exe /C “C:\Program Files\test\test.bat” /v"EnableSSL=0 Release Version=Release 9.5 EnableCAM=false EnableBus=false EnableLargeTradeEail=false Channel=TT URL=http://services/ServiceInfo"

You should try running this same command from the commandline to ensure that this works…

Ben

(imported comment written by VS6591)

Hi Ben,

Thanks for the help. That works fine now.

Now the problem is while running the .bat file manually, after entering all the parameters and click ok, it opens up a window which has list of checkboxes (all checked by default), we just have to click Ok. Please help me in automating it through BigFix scripts.

I have another query. I am uploading msi file to the BigFix server then downloading it at the destination servers and then executing it. Now my question is how to remove/delete the uploaded file from the BigFix server after specified period of time to free up memory.

Thanks in advance.

(imported comment written by BenKus)

Hi VS,

BigFix will run the application just as you specify. If it can be run silently with certain command-line arguments or other techniques, then you can add that to the command-line. BigFix cannot automate a silent install if it is not available in the original installer (unless you get repackaging software and repackage the application).

You don’t need to worry about the specific cache management for BigFix Server:

http://support.bigfix.com/cgi-bin/kbdirect.pl?id=232

And if you want to see the files that have been uploaded, you can go to your BigFix Server and see them in your BigFix Server folder at “\wwwrootbes\Uploads”.

Ben