Antti T.

Custom Action Command Line Parameters

The command line parameter box in the Custom Action Properties window (with Source Type: Executable (*.exe)) seems to have a maximum length of 255 characters. Is there a good reason for this limitation?

If no, it would be good to allow longer command line parameters.

If yes, then what is the proposed way to circumvent the limitation?


Antti T.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

The limitation comes from the size specified for that column in the MSI database Schema: 255.

No easy way to change the schema, other than using Orca and exporting/importing everything...

Circumventing, yes. You need to edit the AIP and create Properties whose content has what you need. Then you reference those properties in your command line.

Example. Properties:
<ROW Property="Manufacturer" Value="Your Company"/>
<ROW Property="ProductCode" Value="{C78EA488-206B-4053-A177-D9E7550E091F}"/>

Command line: "[Manufacturer][ProductCode]"

Hope that helps,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
krick
Posts: 4
Joined: Wed Sep 15, 2004 7:55 pm

You could use a launcher utility that allows the command line parameters to be read from a file...

http://www.3feetunder.com/krick/gorun/

Return to “Common Problems”