I have my own bootstrapper that calls MSI.RunMsiexec(). It seems like if the command line gets really long, I get a 1639 MSI setup return code (invalid command line)
If I shorten my PROP_UPLOAD_PK argument just slightly, the command runs fine:
Also if I take the command that failed with 1639 and manually run it from a command prompt with msiexec, the installer runs successfully. It appears that I'm hitting a limitation with the command line length, but only from within the bootstrapper. Could this be true? Thanks.
Code:
[12/06/2019 11:19:08] Notice Launch MSI setup. [12/06/2019 11:19:08] Notice Command line: /norestart /qb -i "C:\Users\sen.SEN-VMWARE\AppData\Roaming\Downloaded Installations\{BCE4798C-5B13-46BE-9F90-BC67259FB635}\{B5209E18-D57B-4D1C-9A9D-38A92315C0D6}.msi" REINSTALL=ALL REINSTALLMODE=vomus MSIENFORCEUPGRADECOMPONENTRULES=1 PROP_HOST="zeus" PROP_PORT=22 PROP_USERNAME="ppro" PROP_UPLOAD_USERNAME="upload_ppro" PROP_TERM_WIDTH="81" PROP_TERM_HEIGHT="27" PROP_PRIVATEKEY="C:\ProgramData\ProducePro\PProClient\ppro-key.ppk" PROP_UPLOAD_PK="C:\Test\another\long\test.ppk" /l*v "C:\Users\sen.SEN-VMWARE\Documents\PProClientMSI.LOG" [12/06/2019 11:19:11] Notice MSI setup return code: 1639
Code:
[12/06/2019 10:57:53] Notice Launch MSI setup. [12/06/2019 10:57:53] Notice Command line: /norestart /qb -i "C:\Users\sen.SEN-VMWARE\AppData\Roaming\Downloaded Installations\{BCE4798C-5B13-46BE-9F90-BC67259FB635}\{AE128CC8-CE73-40B1-B4F0-7804AE8E934A}.msi" REINSTALL=ALL REINSTALLMODE=vomus MSIENFORCEUPGRADECOMPONENTRULES=1 PROP_HOST="zeus" PROP_PORT=22 PROP_USERNAME="ppro" PROP_UPLOAD_USERNAME="upload_ppro" PROP_TERM_WIDTH="81" PROP_TERM_HEIGHT="27" PROP_PRIVATEKEY="C:\ProgramData\ProducePro\PProClient\ppro-key.ppk" PROP_UPLOAD_PK="C:\Test\test.ppk" /l*v "C:\Users\sen.SEN-VMWARE\Documents\PProClientMSI.LOG" [12/06/2019 10:57:56] Notice MSI setup return code: 0
Comment