command line problem - 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!

crazypit
Posts: 9
Joined: Thu Jul 10, 2008 10:41 am

command line problem

Hello all,

I need to install the published files of a .NET application. In one of these files (the deployment manifest) i need to set an installation folder and sign it before the actual installation. During installation, i need to update this information and resign the manifest file. This is done by using a special tool called mage.exe. So, i used a Custom Action but i always get an error. I look at the log and the command line parameters seem to be ok. I even run the executable using the parameters noted at the log and everything works ok.

I enclose a test aip along with the 3 aforementioned files to check it.
Attachments
TestAipZip.zip
(29.93 KiB) Downloaded 284 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: command line problem

Hi,

I tested the files outside Advanced Installer (in the command line), and I receive the message:

Code: Select all

Missing value following the "sign" option
Please make sure that your files support what you need to do.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
crazypit
Posts: 9
Joined: Thu Jul 10, 2008 10:41 am

Re: command line problem

Hi,

I put the files in c:\temp folder and run < mage.exe -Update "c:\temp\CRMClient.application" -CertFile "c:\temp\CRMClient_1_TemporaryKey.pfx" -Password exisit -ProviderUrl \\MYKONOS\eXray\client\CRMClient.application> successfully. I guess that looks like what is configured in test custom action.

I cannot understand where you got the message about the -sign option! I dont use one!

Regards.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: command line problem

Hi,

Perhaps I didn't test the command line correctly. However, after investigating the "mage.exe" executable I found that it must run through a "Launch file or open URL" custom action. The command line of this custom action should look like this:

Code: Select all

"[APPDIR]mage.exe" –Update "[#CRMClient.application] " -CertFile "[#CRMClient_1_TemporaryKey.pfx] " -Password exisit -ProviderUrl \\[ComputerName]\eXray\client\CRMClient.application
Let me know if the problem persists even when using a "Launch file or open URL" custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
crazypit
Posts: 9
Joined: Thu Jul 10, 2008 10:41 am

Re: command line problem

I already used a "Run an EXE file" and a "Open a Url In Browser" custom action as defined in the relevant wizard, unsuccessfully. Im not aware of any "Launch file or open URL" custom action...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: command line problem

Hi,

Please note that "Launch file or open URL" custom actions cannot be created with the custom action wizard. In order to create this type of custom actions you can follow these steps:
- go to the "Custom Actions" page
- right-click the "InstallExecuteSequence" -> "Install" standard action
- select the "Add Predefined Custom Action" context menu
- click on the "Launch file or open URL" option

All you need to do for this custom action is to set the Command Line field to the command line I mentioned in my previous post.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
crazypit
Posts: 9
Joined: Thu Jul 10, 2008 10:41 am

Re: command line problem

Hello,

"Launch file or open URL" is the same as the "Open a Url In Browser" custom action through the wizard. Anyway, did it your way, tested it, but nothing happened. The command window opened and closed in a fraction of second, the installation ended successfully but the file is the same.

It would be nice if i could pause the console window and see the information in it....

Its a reall pity though not to be able to run it. Considering the fact, that if i run the command exactly as it is after the installation, everything plays ok...
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: command line problem

Hi,
It would be nice if i could pause the console window and see the information in it....
For this you can use an "EXE with working Dir" custom action with the Full Path field set to:

Code: Select all

cmd.exe /k ""[APPDIR]mage.exe" -Update "[#CRMClient.application]" -CertFile "[#CRMClient_1_TemporaryKey.pfx]" -Password exisit -ProviderUrl \\MYKONOS\eXray\client\CRMClient.application"
I tested this on multiple machines and it works as expected. Please note that .NET Framework needs to be installed in order to use the "mage.exe" tool.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”