executing exe file - 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!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

executing exe file

Hi Support,

I am trying to launch the an exe using "launch a file or URL" custom action along with the command line parameter. I am passing the arguments in the "full path" field. But we are unable to place all the arguments in the field. Here is an exe and commandline parameters:

C:\Documents and Settings\speruka\Desktop\NGN\InstallFiles\NGN Package - 1.0.0\NGN Package\NGN Posting Service\CapturePostingService.exe //IS
--DisplayName="Capture Posting Service"
--Install=C:\Documents and Settings\speruka\Desktop\NGN\InstallFiles\NGN Package - 1.0.0\NGN Package\NGN Posting Service\CapturePostingService.exe
--Jvm=auto --StartMode=jvm --StopMode=jvm
–-StartClass=com.vsoftcorp.capture.posting.ApplicationStart
–-StartParams=[INSTALL_FOLDER]\conf\capture-posting.properties
-–StopClass=com.vsoftcorp.capture.posting.ApplicationStop
-–Classpath=[INSTALL_FOLDER]\capture-posting-service-<version-no>-jar-with-dependencies.jar;

Please let me know, how to execute the exe along with the parameter. Its urgent issue.

Regards
Sony
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Support,

Its an urgent issue.. Any updates?

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: executing exe file

Hi Sony,

You can place the command line inside a property, on the Install Parameters page, and use that property in the field instead.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Gabriel,

I have placed the command line parameter under "Test" property and used "launch a file or URL" custom action along with the following field path.
"[#CapturePostingService.exe]" Test

but its not working :(

Please reply to my issue its quite urgent issue.

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

Re: executing exe file

Hi Sony,

Please try using a public property instead of a private one. Also, please note that property references are enclosed in square brackets:

Code: Select all

"[#CapturePostingService.exe]" [COMMAND_LINE_PROPERTY]
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Cosmin,

I have placed the "[#CapturePostingService.exe]" [COMMAND] in the "Exe with Working Dir" custom action and have set the properties "Asynchronous and deferred with no impersonation" under Commit sequence.

But the service is not getting created... Please reply soon.

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

Re: executing exe file

Hi Sony,

Can you please send us the .AIP (project) file you are using and a verbose log of your installation to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Cosmin,

Please find the logfile in the attachment.

I need to pass the following parameters along with the installation directory:

–-StartParams=[INSTALL_FOLDER]\conf\capture-posting.properties
-–Classpath=[INSTALL_FOLDER]\capture-posting-service-<version-no>-jar-with-dependencies.jar;

If I am Setting the property in Install Parameters page, We are unable to include [APPDIR] directory folder in the value of the property along with the other command line arguments.

I have typed "[APPDIR]" manually in the value field of the property.

Please get back to me soon.

Regards
Sony
Attachments
Logfile.zip
(427.3 KiB) Downloaded 999 times
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Any Updates?

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

Re: executing exe file

Hi Sony,

Since your property value contains other installer properties, you can set it through a Property set with formatted custom action. This action should be scheduled before the action which uses your property and it should run as Immediate.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Cosmin,

I have placed the two Property set with Formatted actions under "Begin" action in the InstallExecuteSequence(ARG1,ARG2). one part of commandline argument in the ARG1 and rest of the commandline argument in ARG2. I have set the immediate excution option for both actions.

In the Commit sequece, I have added the "Exe with working Directory"action and added "[#CapturePostingService.exe]" [ARG1][ARG2] in the action full path field.

I am trying to execution this action as Asynchronous and Commit with no impersonation option.But the Service in not getting created.

Any other suggestion?

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

Re: executing exe file

Hi Sony,

Can you please send us the .AIP (project) file you are using and a verbose log of your installation to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Cosmin,

This was not working out for me... The service was getting installed but there is a startup problem for it.

I have used a bat file to install the service and I am trying to pass the install folder location as a command line argument for the the bat file... But I have found an another issue in this. If the install folder includes the spaces (e.g: "D:\NGN Test") The entire path is not passed as a parameter.. In the service installation, entire path is not taken during installation. Here is the the project file in the attachment.


I have a another question, how can we add a DTD reference in the xml file in advanced installer?

Regards
Sony
Attachments
Copy (4) of NGN_Application.aip
(489.75 KiB) Downloaded 915 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: executing exe file

Hi Sony,

Please try enclosing the parameter in quotes, for example:

Code: Select all

"[&servicestartup_1.bat]" "[DIR]"
I have a another question, how can we add a DTD reference in the xml file in advanced installer?
I'm afraid that DTD references are not supported by the XML editor. However, we will consider adding this improvement in a future version. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: executing exe file

Hi Cosmin,

Any work around for the second issue?

Regards
Sony

Return to “Common Problems”