Probs when creating Installer for a portable Java App - 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!

CoderMike
Posts: 9
Joined: Wed Dec 19, 2007 3:22 pm

Probs when creating Installer for a portable Java App

I would like to use the Advanced Installer to create a "portable Java App". That means the application can be run from either a fixed drive or a USB stick and can be moved to a different location at any time.
To achive this I bundle the JRE and do not register the app with Windows installer so technically there is no dependency on the host system.

BUT I found the following limitations where I do not have a solution for:

1) Removable drives (e.g. USB Sticks) are not shown in the install dialog when selecting the target dir. By default the installer just lists up fixed disks (which makes sense for most of the cases I know, but not for me this time)
2) The Installer creates the Laucher exe which is accompanied by the laucher ini file. Unfortunately the ini file uses absolute paths for Class Path= and JRE Path= but my use case would just require relative paths as the application and the runtime is located in the same folder branch.

Is there a way to configure this in the Advance Installer project?

Thanx
Michael
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Probs when creating Installer for a portable Java App

Hi Michael,
1) Removable drives (e.g. USB Sticks) are not shown ...
-- you can go to Dialog page -> expand the FolderDlg tree
-- on the BrowseDlg dialog select the Directory Combo
-- in the "Properties" table from the right side you will have a column called Removable Volume, which be default is set to "False"
-- you can set it to "True"
2) The Installer creates the Laucher exe which is accompanied by the laucher ini file...
This is on our TODO list and will be available in a future version.

Regards
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CoderMike
Posts: 9
Joined: Wed Dec 19, 2007 3:22 pm

Re: Probs when creating Installer for a portable Java App

Hi Bogdan,

thanks for the advice but when I go to the Folder Dialog in the Dialog section there is nothing but the preview of the FolderDlg (and nothing to further expand) and I cannot change any setting.
I am using the Advanced Installer Enterprise 7.2 and created a Java Project with it.

Best regards,
Michael
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Probs when creating Installer for a portable Java App

Hello Mike,

Please note that the BrowseDlg my colleague discussed about can only be accessed from within an Enterprise Project.
To turn your java project into an enterprise project, simply go to Project->Options, then navigate to "Project Type" tab and select "Enterprise Project".
The options Bogdan described will now be available.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”