jpoisson
Posts: 3
Joined: Mon Nov 07, 2005 5:38 pm

File Association question

I have created a file association to an Advanced Installer Java Product. The issue I'm having is that when I double click an associated file type, the folder of that file is treated as the working folder and not the folder of the actual Java Product. I truly dont know if this is an Advanced Installer issue or not, but I used to have another installer product (ZeroG) and I dont recall having to do anything to my app to make the file association work.

Is there a way to set the file association working directory or is it my app that needs changing and I just got lucky with ZeroG?
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

The current directory is obtained in a Java application form the User.dir property. If you don't specify another value this property is automatically set to the folder from where the application is launched.

To solve your problem you should overwrite this value. The property should always point to the folder where your application is installed. For this you should add this property in the JVM parameters list. For information on how to do that please visit:

http://www.advancedinstaller.com/user-g ... ialog.html

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”