Native Java Launcher passing strange chars in the args - 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!

jamescarr
Posts: 2
Joined: Thu Jun 23, 2011 4:55 pm

Native Java Launcher passing strange chars in the args

Hi,

I've discovered a problem with the arguments passed to the main() method of our Java application from the Native Java Launcher. I have a basic demo set up with the file ext .demo set up to launch the console.

Here are the results (first line is the name of the clicked file, the second is what was passed to the main method):

testfile.demo
> testfile.demo

讀經.demo
> ??.demo

für Deutschland.demo
> f³r Deutschland.demo

These last two are obviously wrong and results in our program not being able to open the files.

Using 8.1.2

Thanks
Attachments
setup.zip
the test program
(165.27 KiB) Downloaded 219 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Native Java Launcher passing strange chars in the args

Hi,

Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jamescarr
Posts: 2
Joined: Thu Jun 23, 2011 4:55 pm

Re: Native Java Launcher passing strange chars in the args

Hi Cosmin,

Attached is the aip.

Thanks
James
Attachments
setup.aip
(12.12 KiB) Downloaded 220 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Native Java Launcher passing strange chars in the args

Hi James,

This behavior is caused by a bug in Advanced Installer. Thank you for bringing it to our attention, I have discussed the issue with the development team and we will include the fix in our next release.
The fix should apply if the system locale is set to the installer language( German or Chinese in your case ). Here is a Microsoft article that may help you.

In the future we will also eliminate the system locale required setting for this scenario.

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

Return to “Common Problems”