cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
TimStVCS
Level 7

Windows Installer Property in Command Line of Custom Action

Hello, can anyone tell me if you can use a Windows Installer Property in the Command Line of a Custom Action that launches and executable? I would like to use [INSTALLDIR], will this work? Using a basic MSI Project.

Thanks!

Tim
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Yes, a common example being to launch a readme file with notepad.exe with command line "[INSTALLDIR]readme.txt". (Depending on the executable, you might need quotes around the path if it contains any spaces; and expanded [DirectoryProperty] expressions always end with a backslash.)

As a rule, an MSI database field accepts [Prop] expressions if its data type is listed in the MSI help as "Formatted", as in the Registry table's key and value fields.
0 Kudos
TimStVCS
Level 7

Thanks Robert, I appreciate the prompt reply.

Tim
0 Kudos