clickonce

ClickOnce File Association

谁都会走 提交于 2019-11-27 07:43:13
问题 I have a console application that I'm deploying using ClickOnce. Once the user installs the program the associations are set but the associated program is the installer(ClickOnce Application Deployment Support Library) and not the actual program. How can I get the association to be the actual program and not the installer? I've included the fileAssociation node from the app.manifest below. Please let me know if you have any tips on this. Thanks. <fileAssociation xmlns="urn:schemas-microsoft

How to get command line from a ClickOnce application?

别来无恙 提交于 2019-11-27 07:39:57
问题 Before publishing I went to Project -> Properties -> Options -> File Associations and added the extension ".hsp". Set an icon and a ProgID ("MyCompany.Document.1" for testing). After I published and installed, my .hsp files had the icon I set, so the file association should be properly set, but when I double clicked one of these files the application run and I expected the name of the file I double clicked to be in the command line. I tried reading the parameter passed to my Main function,

Error message “Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC”

痞子三分冷 提交于 2019-11-27 06:47:36
When one user tries to run the application, our ClickOnce application is reporting: Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC. It's interesting to note that the GAC (C:\Windows\assembly) does not have stdole installed in it. How do I get it there? We are using .NET 3.5, and it has been installed on this computer. Try going to the Publish tab in the project properties and then select the Application Files button. Then set the following properties: File Name of stdole.dll Publish status to Include Download Group to Required After that

Can I create a desktop icon for a ClickOnce application?

断了今生、忘了曾经 提交于 2019-11-27 06:42:06
问题 I have read in some of the ClickOnce posts that ClickOnce does not allow you to create a desktop icon for you application. Is there any way around this? 回答1: In Visual Studio 2005, ClickOnce does not have the ability to create a desktop icon, but it is now available in Visual Studio 2008 SP1. In Visual Studio 2005, you can use the following code to create a desktop icon for you when the application starts. I have used this code over several projects for a couple of months now without any

Remote debugging in VB6

安稳与你 提交于 2019-11-27 06:07:31
问题 Is it possible to remotely debug a process started outside VB6? The application is a VB6 application with quite a few dll/ocx resources. I am attempting to setup a ClickOnce deployment, using Registration-Free COM, of the VB6 app but have been getting errors when it executes. My understanding of the way that VB6 redirects COM registerations will probably mean that this is not possible but I thought someone might have a better idea. 回答1: I believe that when debugging in VB6, it does not attach

Clickonce full trust app update failing with TrustNotGrantedException on Windows 8

£可爱£侵袭症+ 提交于 2019-11-27 06:00:27
问题 We have a winforms clickonce application in C# which is granted full trust and signed using a valid certificate. The application runs fine and updates correctly on Windows XP, Windows 7. However, on a Windows 8 machine, it just fails to update. The application runs correctly though. However, the first update request to move up to a later version fails with: System.Deployment.Application.TrustNotGrantedException The code failed after the call to ApplicationDeployment::CheckForDetailedUpdate()

.Net Encryption

随声附和 提交于 2019-11-27 05:19:56
问题 What I would like to know is the definite approach to encrypting connection strings in a config file. Here are my questions: Using machine-level encryption, can't anybody accessing my server write a little .Net program to read the contents of the connection strings? If I am deploying my application to users machines in an enterprise environment, and the application has connection strings in a config file, how can I make sure only my application can decrypt it? The scenario is especially

ClickOnce and IsolatedStorage

纵饮孤独 提交于 2019-11-27 04:52:49
The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine :) The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their preference over and over each version. Is there a way to freeze the isolation for the whole application instead of the version? You need to use application scoped, rather than domain scoped, isolated storage. This can be done by using one of IsolatedStorageFileStream's overloaded constructors. Example: using

Why doesn't ClickOnce in Visual Studio deploy content files from dependent assemblies?

徘徊边缘 提交于 2019-11-27 04:38:57
I have a smart client application that is deployed via click once. The problem is that i have content files in dependent assemblies that just don't show up in the published application files dialog in visual studio. This means that everytime I deploy I have to copy all the content files from the application build output directory into the published directory and rebuild the manifests which is a real pain. Why are these files not visible to the publisher in visual studio? I seemed to have found an evolution of the answer from @John Hunter that is much simpler, add this to the csproj. <ItemGroup

Find Install directory and working directory of VSTO Outlook Addin; or any Office Addin

杀马特。学长 韩版系。学妹 提交于 2019-11-27 04:35:47
问题 I created a VSTO Outlook Addin that uses a library Html2Xhtml.dll (.NET) which calls another Html2xhtml.exe by executing System.Diagnostic.Process.Start(). However, it fails to call Html2xhtml.exe (i think) because the working directory even when launched from Visual Studio is the current user My Documents folder. I have no control over the code in Html2Xhtml.dll so I cannot use absolute path; but I suppose I can change the working directory of the Add-in at runtime. However, If I install