Custom Action command line 255 char limit - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Custom Action command line 255 char limit

Have created a Custom Action > New Installed Custom Action. We want to run an exe with a bunch of parameters during the Install phase. This is how it looks in the project.
CommandLine.png
CommandLine.png (19.58 KiB) Viewed 5765 times
Problem we are having is the Command Line box is too small for what we want to put in there. I tried using the Edit but that too does not allow more than 255 characters.

Do you know of any tricks to overcome the text length limitation? Any other ways I can run the same command maybe with a helper?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action command line 255 char limit

Hello,
Do you know of any tricks to overcome the text length limitation?
You can split the parameters into several public properties defined in the Install Parameters page. The "Command Line" field is formatted type so you can reference them in the order you need.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Custom Action command line 255 char limit

I tried that but it seems to error out with Error 1721. Created four Properties NOVAPDF_CMD_1, NOVAPDF_CMD_2, NOVAPDF_CMD_3 and NOVAPDF_CMD_4. This is how I have my parameters now look in the AI project
CmdLineSpaces.png
CmdLineSpaces.png (13.66 KiB) Viewed 5751 times
During the install it gives me error 1721:
trace.log
(210.34 KiB) Downloaded 358 times
Action ended 10:13:17: StartServices. Return value 1.
MSI (s) (28:58) [10:13:17:362]: Doing action: novapv.exe
Action 10:13:17: novapv.exe.
Action start 10:13:17: novapv.exe.

MSI (s) (28:58) [10:13:17:362]: Note: 1: 1721 2: novapv.exe 3: C:\Program Files (x86)\ACS\SignOnlyBuild\novapv.exe 4: /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /PrinterName="DocumentVision Printer" /OEMApplication="DocumentVision" /OEMCompany="Applied Computer Systems, Inc." /OEMSaveFolder="#temp#" /OEMActionApp="#systemdrive#\DVPrinter\DVPrinterSave.exe" /RegisterName="Applied Computer Systems" /RegisterKey="KEY-HERE"

Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: novapv.exe, location: C:\Program Files (x86)\ACS\SignOnlyBuild\novapv.exe, command: /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /PrinterName="DocumentVision Printer" /OEMApplication="DocumentVision" /OEMCompany="Applied Computer Systems, Inc." /OEMSaveFolder="#temp#" /OEMActionApp="#systemdrive#\DVPrinter\DVPrinterSave.exe" /RegisterName="Applied Computer Systems" /RegisterKey="KEY-HERE"

MSI (s) (28:58) [10:13:22:621]: Product: SignOnlyBuild -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: novapv.exe, location: C:\Program Files (x86)\ACS\SignOnlyBuild\novapv.exe, command: /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /PrinterName="DocumentVision Printer" /OEMApplication="DocumentVision" /OEMCompany="Applied Computer Systems, Inc." /OEMSaveFolder="#temp#" /OEMActionApp="#systemdrive#\DVPrinter\DVPrinterSave.exe" /RegisterName="Applied Computer Systems" /RegisterKey="KEY-HERE"

Action ended 10:13:22: novapv.exe. Return value 3.


Can you please check the trace.log and let me know what I am doing incorrectly? We have tried running that same exe outside of AI and it runs fine from a Windows Command Prompt.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action command line 255 char limit

Hello,

You can try to avoid spaces between property references. If this is not the case can you please send us the .AIP( project file ) to support at advancedinstaller dot com so we can investigate it?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Custom Action command line 255 char limit

It was not the spaces. Turns out that error code is when Windows Installer has a pending windows update/reboot. After reboot it installed fine.

Thanks for your inputs.

Return to “Common Problems”