clickonce

Clickonce application doesn't restart after upgrade is complete

风流意气都作罢 提交于 2019-12-02 09:59:31
I am using AppplicationDeployment class to check if upgrade is available and then upgrade the app like below Dim AD As System.Deployment.Application.ApplicationDeployment = System.Deployment.Application.ApplicationDeployment.CurrentDeployment Dim info As System.Deployment.Application.UpdateCheckInfo = Nothing Me.DialogResult = Windows.Forms.DialogResult.Cancel Me.Close() AD.Update() Application.Restart() // this doesn't work which is still ok. The restart doesn't work so I am trying to get the upgraded application executable path and update the registry so when user re-starts the system the

Using Clickonce Deployment with Background intelligent transfer service

╄→гoц情女王★ 提交于 2019-12-02 07:13:28
问题 We are thinking about the deployment and update strategy for a fairly large framework throughout our organization. The application will be in .NET 3.5 and will run on Windows XP, Vista and Win 7 machines. I have used Clickonce few times and it works well for sure. Has anyone thought of, or have implemented the BITS feature of Windows with Clickonce. I feel the trickle upgrade approach of BITS would make the frequent framework updates pretty user friendly. Any help appreciated. 回答1: The thing

Storing service account credentials securely in clickonce application

微笑、不失礼 提交于 2019-12-02 06:28:16
问题 I'm writing a ClickOnce application that runs a batch file process with service account credentials. I need to store the service account credentials so that the program can add the username/password to the process.startinfo property before running the process. The users do not know this password, so there's no prompt for them to enter in a password. I believe this means I cannot store the hash and verify the password that way, the hash value I generate must be reversible so that it can add

Using Clickonce Deployment with Background intelligent transfer service

蹲街弑〆低调 提交于 2019-12-02 05:17:19
We are thinking about the deployment and update strategy for a fairly large framework throughout our organization. The application will be in .NET 3.5 and will run on Windows XP, Vista and Win 7 machines. I have used Clickonce few times and it works well for sure. Has anyone thought of, or have implemented the BITS feature of Windows with Clickonce. I feel the trickle upgrade approach of BITS would make the frequent framework updates pretty user friendly. Any help appreciated. The thing is that BITS is used to transfer data in the background, while CLICKONCE is more-or-less a JIT downloader of

clickonce - does writing/reading to the Data Directory required Admin rights?

强颜欢笑 提交于 2019-12-02 02:40:18
问题 Background - I'm looking at using clickonce for deployment of a WinForms app via clickonce (via website). The elements of the relatively simply application are: - it is an executable and one database file (sqlite) - database (sqlite) will need to be updates sometimes by the application (e.g. add table, add column) - database data (which is just a file for sqlite) needs remain across upgrades of course Assumption - I'm assuming here that the best way to allow for the above under clickone is to

Visual C++ Runtime Distributable 2010 in Visual Studio 2012

不羁的心 提交于 2019-12-02 00:58:20
I need to be able to distribute Visual C++ Runtime Distributables 2010 in Visual Studio 2012 using ClickOnce. How do I get the 2010 C++ bootstrapper to appear in the VS 2012 Prerequisites? The 2012 bootstrapper is already there. Can I have both? You can accomplish this by hacking your project file and copying some files. The example below is for using the Visual C++ 2012 Runtime libraries in Visual Studio 2013. You will have to change some version numbers if you are using a different version of Visual Studio or want a different version of the Visual C++ Runtime libraries. First add the

Storing service account credentials securely in clickonce application

♀尐吖头ヾ 提交于 2019-12-02 00:40:32
I'm writing a ClickOnce application that runs a batch file process with service account credentials. I need to store the service account credentials so that the program can add the username/password to the process.startinfo property before running the process. The users do not know this password, so there's no prompt for them to enter in a password. I believe this means I cannot store the hash and verify the password that way, the hash value I generate must be reversible so that it can add the correct password to the startinfo property. I searched around this site and came up with a

Local installed location of the clickonce application

↘锁芯ラ 提交于 2019-12-02 00:20:06
问题 I need to know where the clickonce application got installed. Is there a way to find this through C#? 回答1: For reference, the physical files end up in this directory: C:\Documents and Settings\userprofile\Local Settings\Apps in Win XP and C:\Users\\AppData\Local\Apps for Windows 7. You can also read more about this in this question. 回答2: Try Assembly.GetExecutingAssembly() and then check the Location property of the result. This will return the path of the currently executing assembly. 来源:

clickonce - does writing/reading to the Data Directory required Admin rights?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 23:48:10
Background - I'm looking at using clickonce for deployment of a WinForms app via clickonce (via website). The elements of the relatively simply application are: - it is an executable and one database file (sqlite) - database (sqlite) will need to be updates sometimes by the application (e.g. add table, add column) - database data (which is just a file for sqlite) needs remain across upgrades of course Assumption - I'm assuming here that the best way to allow for the above under clickone is to: use the Data Directory for the location of the sqlite database file write the smarts into the

How to Publish a Winforms App with SQLite using ClickOnce

旧城冷巷雨未停 提交于 2019-12-01 23:09:47
问题 I have a small C# WinForms app developed using Visual Studio Community 2015 on Windows 8.1 on a 64-bit computer and targeting .Net Framework 4.5.2 and Any CPU | Prefer 32-bit. (I also tried targeting just x86). I used NuGet Package Manager to install Entity Framework 6.3.1 and System.Data.SQLite 1.0.101 (which installed System.Data.SQLite, System.Data.SQLite.Core, System.Data.SQLite.EF6, and System.Data.SQLite.Linq), though System.Data.SQLite.Core doesn't show in the project references. The