Custom Action command line 255 char limit

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

Custom Action command line 255 char limit

Postby anupmistry » Thu Feb 23, 2012 8:50 pm

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 395 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?
anupmistry
 
Posts: 50
Joined: Tue Jan 12, 2010 6:39 pm

Re: Custom Action command line 255 char limit

Postby mihai.petcu » Fri Feb 24, 2012 11:02 am

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action command line 255 char limit

Postby anupmistry » Fri Feb 24, 2012 7:18 pm

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 381 times


During the install it gives me error 1721:
trace.log
(210.34 KiB) Downloaded 42 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.
anupmistry
 
Posts: 50
Joined: Tue Jan 12, 2010 6:39 pm

Re: Custom Action command line 255 char limit

Postby mihai.petcu » Mon Feb 27, 2012 12:45 pm

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
http://www.advancedinstaller.com/
mihai.petcu
 
Posts: 3452
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom Action command line 255 char limit

Postby anupmistry » Mon Feb 27, 2012 2:59 pm

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.
anupmistry
 
Posts: 50
Joined: Tue Jan 12, 2010 6:39 pm


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

cron