file associations on upgrade - 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!

charliebrown
Posts: 3
Joined: Tue Aug 28, 2007 11:00 pm

file associations on upgrade

How can I make Advanced Installer 5.2 force the file association registry entries and overwrite/replace any already there?
Adriana
Posts: 28
Joined: Tue Aug 14, 2007 9:32 am
Location: Craiova
Contact: Website

Hi,

I'm afraid that I don't fully understand what you are truing to do. Please provide more details.


Regards,
Adriana



-----------------------
Adriana Simion
Advanced Installer Team
http://www.advancedinstaller.com/
charliebrown
Posts: 3
Joined: Tue Aug 28, 2007 11:00 pm

file associations on upgrade

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.
charliebrown
Posts: 3
Joined: Tue Aug 28, 2007 11:00 pm

file associations on upgrade

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.
Adriana
Posts: 28
Joined: Tue Aug 14, 2007 9:32 am
Location: Craiova
Contact: Website

Hi,

You should never rely on the current directory because it is set by the operating system.

Regards,
Adriana

______________
Simion Adriana
Advanced Installer Team
http://www.advancedinstaller.com/
csmart
Posts: 22
Joined: Tue Sep 22, 2009 7:49 am

Re: file associations on upgrade

A little late I guess, but I had the same problem and there is a solution.

-c

Return to “Common Problems”