cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rudesyle
Level 3

Pass dynamic data to exe as command line param

Does anyone know how to do this? I have an exe that will do some file manipulations, and I'd like to pass a command line param (like the SRCINSTALLDIR).
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

It depends on your project type; for MSI, the command-line arguments portion of your launch-an-EXE custom action can accept a property name in square brackets (such as "[INSTALLDIR]"), and the value will be expanded at run time.
0 Kudos
rudesyle
Level 3

RobertDickau wrote:
It depends on your project type; for MSI, the command-line arguments portion of your launch-an-EXE custom action can accept a property name in square brackets (such as "[INSTALLDIR]"), and the value will be expanded at run time.


Why can't help files be as helpful as you? Thank you so much.
0 Kudos
Alex_W
Level 6

I agree. I can think of at least 2 occasions where I've wanted to buy you a beer Robert.

As a follow-up question, can you use this same technique for redistributables such as for example, when you need to set the SA password when installing MS SQL Express (etc.)?
0 Kudos