clickonce

Upgrading SQL CE via Clickonce update

六眼飞鱼酱① 提交于 2019-12-14 02:34:54
问题 We have recently moved an existing Clickonce app development project from Visual Studio 2005 to VS 2010. Due to an upgrade issue with Visual Studio 2010, we've had to upgrade its SQL CE database from v3.1 to v3.5. To avoid data migration headaches, we have been copying the user's previous database into their new installation folder each time a Clickonce update is published. If there are any DB changes, we script them into the app's IsFirstRun event handler. But now, since we've changed the

Do I have to sign my ClickOnce manifest?

两盒软妹~` 提交于 2019-12-14 00:48:23
问题 I have a VS2012 solution (WinForm vb.net) which I deploy thanks to ClickOnce. I do some tests today for deploying this application. I'm able to publish and deploy this application without signing the ClickOnce manifest nor signing the assembly . On the Signing tab of my project I uncheck 'Sign the ClickOnce manifests' and 'Sign the assembly'. I don't have any errors (about assembly not signed) when installing this application. I copy the published folder on a USB key and install it on another

Invalid provider type specified error in code signing the vsto outlook application

三世轮回 提交于 2019-12-13 15:03:39
问题 I brought a code signing certificate from GoDaddy generated a .pfx file from it. But when I use this file to code sign the clickonce manifest of my outlook vsto application I get this error in visual studio An error occurred while signing: Invalid provider type specified. What could be the problem here? Thanks. 回答1: The signing identity stored in the .pfx container are most likely older "Cryptographic Service Providers" (CSP) style. The environment you are using to sign your package looks

.Settings file in Win Form App, Best Practice

谁说胖子不能爱 提交于 2019-12-13 14:05:15
问题 I have a Win Form app that stores some per user settings in a UserSettings.Settings file. This has worked well so far, however it seems that the Settings file gets "reset" when ever I release an update. Which I do through ClickOnce . Is this the expected behavior? Can I control if fields in the Settings file get overwritten? Is there a better way I should store user settings? Thanks 回答1: When you release an update your updated app should call ApplicationSettingsBase.Upgrade Method to move

Clickonce publish - “The file 'default.htm' already exists in this Web site”

时间秒杀一切 提交于 2019-12-13 14:01:26
问题 When I try to (re)publish my clickonce app, I am getting this: Failed to copy file 'E:*path*\default.htm' to '\ path \default.htm'. Unable to add 'default.htm' to the Web site. The file 'default.htm' already exists in this Web site. There are three files with the same error message - default.htm, setup.exe and my app's .application file. What's going on? I've published this before, many times - although it's been a few months since the last publish. 回答1: You might wanna post this on UserVoice

Backup localDB database in ClickOnce

久未见 提交于 2019-12-13 07:19:37
问题 I've created a WPF 4.5 .NET application it with a database backup feature. The functions and the backup works fine when debugging but when I publish it in ClickOnce and install it in target machine everything works except the backup won't work because ClickOnce obfuscate the app folder location so it becomes too long for the backup statement to work! Is there a way to make the backup statement shorter? here's my code and the error I get: code: SaveFileDialog sfd = new SaveFileDialog(); string

Deploying Databases

笑着哭i 提交于 2019-12-13 07:17:28
问题 we have a client application with a local database. Once in a while we need to provide updates to the database ranging from changing a column , adding a column etc etc. We want to check if the application is run for the first time deploy the database. If not, check for updates. What would be the easiest way to deploy database updates through click once. Could this be deploying the scripts to a folder and having the local app check and run? 回答1: use entity framework with automatic migrations

Clickonce “copy if newer” always download the file

喜你入骨 提交于 2019-12-13 06:26:18
问题 My clickonce App has an .ini file(config from a 3 party dll) that must be included on app root directory. I added the file as link and mark as "content" and "copy if newer". The problem is that every time that I deploy an update, clickonce download the file again overwriting all changes. Why clickonce is not respecting " copy if newer " ? 回答1: Why clickonce is not respecting "copy if newer" ? Because that's used by the compiler when copying to the bin (or where ever the binaries are compiled

Restart and Update ClickOnce Application In Production

≯℡__Kan透↙ 提交于 2019-12-13 04:55:52
问题 The Short Version Is there a way to automatically update a ClickOnce application while it is running ? The Long Version... Setup I have an API and a console agent for an application I'm developing. I needed some work offloaded and this was the easiest and quickest way to handle that. I'm new to ClickOnce (this is the only time I've ever used it, in fact), but it seems perfect for me. I've set it up so that the application runs online with the "no installation" option set. At a high scale, the

Click Once Full Trust signed by CA still requires Admin privileges

我是研究僧i 提交于 2019-12-13 04:34:46
问题 I have developed a winform app that I am deploying via clickonce. I have signed the manifest and the executable with a Thawte certificate and it is deployed via the internet. My understanding was that as long as it is signed and the certificate is installed on the client computer (which it is) then you could enable full trust for the app even if the user is not an administrator and they wouldn't be prompted for administrator approval. The install and updates still prompt though. 回答1: Resolved