clickonce

ClickOnce Application user settings locations

扶醉桌前 提交于 2019-12-01 11:10:50
I am currently developing a ClickOnce application that converts CSV files for a database update. The program requires the user to have the ability to change the configuration files for a database change, and change an XML file which populates a drop-down list in the app. Now I understand that the files are kept in the user/appdata folder to ensure there have the correct privileges, but do I have any influence as to what those folders are called, or where they are saved? By default, the files are saved in AppData\Local\Apps\2.0\LD7ZEJK0.7AE\NJ42PEPW.1QX\csvt...exe_169e1a4011fbe7ec_0001.0000

WPF - How to Backup / Restore LocalDB Programmatically - ClickOnce

时光毁灭记忆、已成空白 提交于 2019-12-01 10:51:34
I have an application which uses EF and LocalDB as it's database, published by ClickOnce. it's my first time using LocalDB and I don't know how can i add a feature to my application to Backup/Restore The Database Programmatically. My App Path Installed by ClickOnce : C:\Users\Mahdi Rashidi\AppData\Local\Apps\2.0\NOL11TLW.9XG\CZM702AQ.LPP\basu..tion_939730333fb6fcc8_0001.0002_fd707bbb3c97f8d3 and This is the location which Database files Installed : C:\Users\Mahdi Rashidi\AppData\Local\Apps\2.0\NOL11TLW.9XG\CZM702AQ.LPP\basu...exe_939730333fb6fcc8_0001.0002_none_8c555c3966727e7f How Should I

What is the best way to publish multiple versions of the same ClickOnce application?

北城余情 提交于 2019-12-01 10:20:44
问题 I have a c# ClickOnce application that I need to be able to publish multiple times for OEM purposes. The way I understand it now is that publish settings are located in the .csproj file. However, this is inconvenient in the case where I want to publish multiple versions. for example, Company A needs totally different icons, start menu location, product name etc. from Company B, but the assemblies need not be renamed. Here are a couple approaches/questions that I can think of to solve this

ClickOnce deletes my local database when it updates.. how not to?

十年热恋 提交于 2019-12-01 10:08:17
问题 I'm using ClickOnce to deploy my application. When the app runs the first time, if a db doesn't exist, it creates one. Problem is, when I update, it removes the local database. Is there a way to tell it to ignore it? 回答1: I imagine you're putting it in the applications directory... don't! Put it in Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData or Environment.SpecialFolder.LocalApplicationData) . 回答2: Don't include the database in the deployment. Implement your own db

WPF - How to Backup / Restore LocalDB Programmatically - ClickOnce

怎甘沉沦 提交于 2019-12-01 09:22:14
问题 I have an application which uses EF and LocalDB as it's database, published by ClickOnce. it's my first time using LocalDB and I don't know how can i add a feature to my application to Backup/Restore The Database Programmatically. My App Path Installed by ClickOnce : C:\Users\Mahdi Rashidi\AppData\Local\Apps\2.0\NOL11TLW.9XG\CZM702AQ.LPP\basu..tion_939730333fb6fcc8_0001.0002_fd707bbb3c97f8d3 and This is the location which Database files Installed : C:\Users\Mahdi Rashidi\AppData\Local\Apps\2

clickonce same publish version but assembly version different, update not happening

喜欢而已 提交于 2019-12-01 07:57:43
问题 I have deployed a clickonce application, in my application i have 10 external dlls. Since the code inside my dll files keeps changing and it's tough to redistribute i went with clickonce deployment strategy. But i wanted to know a thing, if i make a change to one of the dll files and upgrade it's assembly version from 1.0.0.0 to 1.0.0.1, but do not change the publish version, it still is 1.0.0.0. Also i have set the update setting to be before application loads. I re ran the setup deployment

Installation path of ClickOnce apps

北慕城南 提交于 2019-12-01 06:50:31
问题 I have an application developed with Visual Studio 2008 and distributed throught ClickOnce. My question : if I log on the client computer as John (for example) and I launch the setup.exe (provided through ClickOnce) to install the application, I noticed the path of the executable is something like: C:\Users\John\AppData\Local\Apps\2.0....\mysoftware.exe Now, if I log on as Mike, the path of the executable is something like: C:\Users\Mike\AppData\Local\Apps\2.0....\mysoftware.exe It seems that

Generate publish.htm when publishing clickonce app using msbuild

走远了吗. 提交于 2019-12-01 06:25:02
If you publish a Clickonce application from within visual studio, it will generate publish.htm .This seems to be Visual Studio generated, and not part of the publish target if the app is built with msbuild from a command line. How do people handle automatic(e.g. as part of a build server) clickonce publishing, including a publish.htm ? I just wrote a target that escaped the characters for msbuild, and generates the publish.htm file on the fly. No need to setup external dependencies on 3rd party build task assemblies :D The only thing to consider is which frameworks your application is truly

Using EventLog in ClickOnce application

☆樱花仙子☆ 提交于 2019-12-01 05:48:52
I've got a library that I use across multiple ClickOnce applications. In the event of an error in this library I would like to write the error to the windows EventLog . I found a KB article on how but it seems that this requires administrator permissions to search the for the source. Specifically it chokes when trying to search the Security event log. Is there anyway to work around this and write to the event log in a ClickOnce application? I saw one person trying to write to a known source , but they didn't seem to be able to find a source that was consistently available. EDIT: Based on

Generate publish.htm when publishing clickonce app using msbuild

一笑奈何 提交于 2019-12-01 04:45:33
问题 If you publish a Clickonce application from within visual studio, it will generate publish.htm .This seems to be Visual Studio generated, and not part of the publish target if the app is built with msbuild from a command line. How do people handle automatic(e.g. as part of a build server) clickonce publishing, including a publish.htm ? 回答1: I just wrote a target that escaped the characters for msbuild, and generates the publish.htm file on the fly. No need to setup external dependencies on