I'm evaluating Advanced Installer for use in packaging a Java product and I'm having problems getting it to pass multiple command line arguments to a custom action. I have a Jar file that I want to run as a custom action at Commit time and I want to be able to pass some things to it on the command line, specifically the location where the application was installed and the type of application that was installed (e.g., I would pass in "demo" for the demo version of my product). I have tried a variety of different combinations but I can't seem to get Advanced Installer to pass these two pieces of information as distinct command line arguments.
Here is one configuration that I tried:
- Type: File installed with the product
- Source Path: APPDIR\jre\bin\java.exe
- Source Type: Executable (*.exe)
- Command Line: -jar [&commit.jar] "[APPDIR]" demo
Code: Select all
arg[0] = C:\Program Files\Pensamos Digital, Inc\TMaps Test" demo
Code: Select all
arg[0] = C:\Program
arg[1] = Files\Pensamos
arg[2] = Digital,
arg[3] = Inc\TMaps
arg[4] = Test
arg[5] = demo
Is there some trick to passing in APPDIR as a distinct command line argument for a custom action? I have been quite happy with your installer thus far and would like to be able to use it for my product.
Thanks,
- Tim Macinta
FOLLOW US
Get the latest news in Application Packaging