This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Windows Installer Property in Command Line of Custom Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2009
06:17 PM
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
Thanks!
Tim
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2009
07:34 PM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 15, 2009
09:45 AM
Thanks Robert, I appreciate the prompt reply.
Tim
Tim