The problem I'm having is that the file associations work on fresh installs but if an upgrade is installed to a different directory it causes the old program to run when a file is clicked on.
It seems like the registry still has the old values for the file extension association.
Scratch that. It is setting the registry correctly. The problem is Windows is not changing the current working directory to where the .jar file is when the program is started by clicking on a data file.
Can I configure the .exe bootstrapper to change directory to where the .jar file is before it runs java?
Currently if you run the program from the start menu(windows) it changes directory to where the program is. That's good.
However if you have the .foo, for example, file extension associated with the program and click on 'test.foo' file on the 'Desktop' it leaves the current working directory at 'Desktop' rather than changing to where the .exe(or .jar) file is.
I have patched the problem by "guessing" where it should be from within my program code but it would be nice to have the bootstrapper do it because it knows for sure.
FOLLOW US
Get the latest news in Application Packaging