icke_qps
Posts: 17
Joined: Thu Apr 25, 2019 10:26 am

"Invalid command line" error during installation

Hi!

We have one customer, with many users, who report having issues with our latest installer package. None of our other customers have reported this.

This customer is using an application 'Admin by request' to temporarily grant their users elevated rights to install software.

When a user runs the installer:
  • the prerequisites install as expected
  • the installation wizard opens
  • the user agrees upon the EULA
  • when the user clicks on "Install", almost immediately the "Invalid command line" error message is shown.
invalidcommandline.png
invalidcommandline.png (21.99 KiB) Viewed 5383 times
I tried to get a log file, by asking them to install it from a command prompt, using the "/l*v setup.log" switch, but then the installation just works as expected.
The Windows Event Viewer does not show anything relevant either.

The "Invalid command line" message is not always shown, but too often to ignore it.
I am hoping you can shed a light on this!

Thanks in advance, Peter
Liviu
Posts: 1272
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: "Invalid command line" error during installation

Hello Peter,

Can you please send us the .AIP (setup project) file and a download link for your setup package by email to support at advancedinstaller dot com?

We had problems in the past with Admin by request when the setup is run as administrator or a custom action has the "Run as administrator" option checked.

When the custom action or the setup is run as admin, it cannot capture a handle to the process being launched in order to wait for it. The action is executed with success, no errors being thrown, but it doesn't capture the process that is launched. This is because of the interference done by the Admin By Request application used to control and manage local administrative rights.

Unfortunately, there is nothing we can do in this situation. There is no issue with our custom action or the "Run as admin" option.

Let us know if you have any questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
icke_qps
Posts: 17
Joined: Thu Apr 25, 2019 10:26 am

Re: "Invalid command line" error during installation

Hi Liviu,

thanks for your quick reply!
Liviu wrote: Can you please send us the .AIP (setup project) file and a download link for your setup package by email to support at advancedinstaller dot com?
I will send the requested link and files as soon as I can.
Liviu wrote: When the custom action or the setup is run as admin, it cannot capture a handle to the process being launched in order to wait for it. The action is executed with success, no errors being thrown, but it doesn't capture the process that is launched. This is because of the interference done by the Admin By Request application used to control and manage local administrative rights.
I have additional questions regarding this, so I can confidently write an answer to our customer:
  • If the user would just click on "Ok" in the "Invalid command line" message box, does the installation continue as expected?
  • Would there be no errors, when the user has elevated rights by "Admin by request", but chooses to run the installation without the "Run as admin" option?
  • Can we make any changes to the project, to prevent these problems?
Thanks again,
Peter
Liviu
Posts: 1272
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: "Invalid command line" error during installation

Hello Peter,

I've replied to your email.

Let's continue the conversation there until we reach a conclusion.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”