clickonce

Password protected .NET ClickOnce deployment?

故事扮演 提交于 2019-12-04 01:37:39
How can I protect a ClickOnce deployed application with a password ? Do I have to change the IIS settings of the web or is there a way to do it programmatically? I'm using Visual Studio 2005 (.NET 2.0). If I have to use web credentials, are auto-updates of the application still possible? Would be great if you could provide some sample code or detailed instructions for administering IIS. Thank you! I found a possible solution by myself in this MSDN article: ClickOnce Deployment and Security . ASP.NET Form-Based Authentication If you want to control which deployments each user can access, you

Is it possible to register a .NET assembly for COM interop without adding registry entries?

冷暖自知 提交于 2019-12-03 20:57:16
问题 I am deploying a .NET VSTO application via click once. The application's main assembly needs to be registered for COM interop as part of the installation process. I know that this can be done by writing code to execute "REGASM assembly.dll /tlb", but the problem is that the target workstations that will be installing my application don't have administrative rights, so the regasm fails when trying to register the type library. My question is, how can I register my .net assembly for com

How to Install a COM using ClickOnce

十年热恋 提交于 2019-12-03 20:45:16
I have installed my windows application that uses TeeChart ActiveX (a COM Component for charting) using ClickOnce. If I register manually TeeChart using regsvr32 teechart8.ocx, my application works fine. But I want and I need to install the application using ClickOnce. How can I do that? Orion Edwards ClickOnce can only copy files. So you have these options: Use Reg-Free COM as Jeff Hall suggests . This is probably the best option if you can do it. Run regsvr32 manually when your .exe file first loads (before it tries to access the COM objects) Create a custom clickonce prerequisite package

ClickOnce deployment is leaving multiple versions (yes, more than two)

北战南征 提交于 2019-12-03 20:36:43
问题 I've got a ClickOnce application that is leaving all old versions on my disk. It's an internal corporate application that gets frequent updates, so this is a disaster for rapidly inflating our backup size. According to the documentation and other Stack Overflow questions, it is supposed to only leave the current and previous versions on disk. However, each time I deploy the project and upgrade a client, I get another copy of all EXE, DLL and data files. I'm not making any changes whatsoever

Install sap crystal report as prerequiste in clickonce deployment

[亡魂溺海] 提交于 2019-12-03 20:09:52
I have a client WPF which uses crystal reports. For now in client machine I have to install separately the crystal reports and then the app. Is there a way to attach it with the app installation? I tried to add this as a perquisite in publish properties but it gives error during publish as it can't find on the local machine under Crystal Reports for .NET Framework 4.0 folder. Here is my take on this: Step 1: Install SAP crystal runtime from here . Make sure you download both 32 and 64 bit msi of correct version, in my case it was 13.0.12, in your case it could be different, so be sure before

C# WPF Windows 10 (1803) TouchKeyboard unreliable Issue (Prism ClickOnce)

你说的曾经没有我的故事 提交于 2019-12-03 17:18:30
I am trying to fix an issue we are having with the Onscreenkeyboard in our C# Prism WPF app targeting .Net 4.5.2 deployed via ClickOnce, running on Windows 10 version 1803. Our app has a TimeOut function that triggers an event and in that event I would like to either Toggle the visibility of the keyboard or close it if it is open. The Close() function in the below class does not work sometimes, I see in the logs(not displayed in below code) the app finds the handle (which is>0) and issues close command on it but the keyboard does not close. This question is related to the 2 questions mentioned

Ways to speed up the startup of a ClickOnce application

时光怂恿深爱的人放手 提交于 2019-12-03 16:35:15
I have a Visual Studio 2005/ C# ClickOnce application that gets all its data from a Web service . I've gotten the application tuned where it feels pretty snappy to the users, even though it has to go and fetch data from the Web service for almost everything. However, the startup is still pretty sluggish. It seems like it takes a while to generate the first web service call. After that, it's fine. What can I do to speed up the startup of this type of an application? Do I need to generate a serialization assembly? Paul Alexander Spend some time analyzing the assemblies loaded by your application

Specify publish version with MSBuild command line as assembly version of project

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 16:32:16
问题 I have a simple batch file that I'm running from a DOS command line that is used for building a small C# application that publishes a ClickOnce project. One line is this: msbuild MyApp.csproj /t:publish /property:PublishDir="deploy/" This currently publishes the application, but it uses the Publish Version that I set up in Visual Studio's "Publish" tab. I'm hoping to be able to set the publish version at the command line, and specifically, I'd like to use the Assembly Version of the project.

ClickOnce Prerequisite : Error: published installer may be corrupt

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 16:08:45
问题 I've created a custom setup package to install some fonts on a client machine and deployed it to the prerequisites folder under C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\FontsInstaller . Everything is fine with reference it as a prerequisite in Visual Studio 2010 and I am able to publish the application without issue. The client on the other hand gets an error during the Hash verification: Verifying file hash Error: Setup has detected that the file 'C:\Users

Forced the application to have the administrator privileges

心不动则不痛 提交于 2019-12-03 15:24:08
I need to give my application administrator rights, knowing that it will be run from a user session and not admin account. I've looked on other sites, but can't find anything that helps. I tried editing the manifest among other things and there have inserted the line: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> This gave me an error when trying to publish using ClickOnce, but not when I debug. Can you help me? first of all - indeed, it's not allowed by design, to install and ClickOnce app as admin: http://msdn.microsoft.com/en-us/library/142dbbz4(v=vs.90).aspx