Need Help in Creating an Installer Using Java Code? - 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!

Farshore
Posts: 2
Joined: Tue May 17, 2011 6:28 pm

Need Help in Creating an Installer Using Java Code?

Hi Friends,
I had used Advance Installer for Creating an Installer for My Java Swing Project, i had reffered here http://www.advancedinstaller.com/user-g ... -java.html , But Now my problem is i have to create an Installer when the clicks the a Button in Java Program, My Question how to create an Installer using Java Code, I mean how can i programmtically access these Advcance Installer and Create the Installer File
Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Need Help in Creating an Installer Using Java Code?

Hello and welcome to the Advanced Installer Forums,

You can work with your .AIP using the Advanced Installer CLI. Here is the user guide reference for each possible command.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Farshore
Posts: 2
Joined: Tue May 17, 2011 6:28 pm

Re: Need Help in Creating an Installer Using Java Code?

Mihai, Can you pls explain how to use this in java code, For instance pls provide sample sinnpet , how these command are invoked in he ActionListener of that Button
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Need Help in Creating an Installer Using Java Code?

Hello,

Unfortunately this is not within our support boundaries.

The Advanced Installer CLI is designed so that .AIP projects can be edited and built using automated build technologies like ANT.
If you just need to build the .AIP, then you must look into executing a simple command line triggered by the button click event dispatched by your Java application. As referenced in the user guide, the command line should be something like:

Code: Select all

[<path>\]AdvancedInstaller.com /build <project_file_path>
Where <path> is the installation path of the Advanced Installer executable. You can also test this command line using the "cmd.exe" shell.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”