Jacques Bourgeois (James Burger)
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\L ocal\JBFI\ JBFlow.exe _StrongNam e... 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\L ocal\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?
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\L
When the application is launched through the file association, it ends up in C:\Users\Jacques\AppData\L
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ended up using the database used by the application to record the 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