Link to home
Start Free TrialLog in
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)Flag for Canada

asked on

ClickOnce, File extension association and User configuration

ClickOnce deployed application
Framework 4.5.1
Windows 8.1

The application uses a different set of user configuration data (settings) when launched through a registered file extension (double-click on the file) than it does when launched normally through the launch icon created by the ClickOnce installation.

Searching for the user.config file on the system, I see that 2 different files are created.

When the application is launched from a standard icon, user.config is in the C:\Users\Jacques\AppData\Local\JBFI\JBFlow.exe_StrongName... directory, JBFI being the name of the company provided in the ClickOnce deployment setup, and JBFlow.exe the name of the application.

When the application is launched through the file association, it ends up in C:\Users\Jacques\AppData\Local\Apps\2.0\Data\<standard ClickOnce garbage>\jbfl..tion..... directory.

Same user, but 2 sets of configuration settings.

Did somebody encountered that problem and found a way to have the same set of settings for the 2 different ways of launching the application?
Avatar of Ess Kay
Ess Kay
Flag of United States of America image

you might have to manually change the reg or some other settings.

you can start by reading here about click once and file associations

https://stackoverflow.com/questions/8797929/how-to-manually-register-clickonce-file-associations-after-installation
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jacques Bourgeois (James Burger)

ASKER

Ended up using the database used by the application to record the settings.