clickonce

Forced the application to have the administrator privileges

限于喜欢 提交于 2019-12-05 00:24:21
问题 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? 回答1: first of all - indeed, it's not allowed by

Error code 5100 when installing .NET framework as part of a ClickOnce application deployment via Visual Studio 2010

╄→гoц情女王★ 提交于 2019-12-05 00:13:25
Inside Visual Studio 2010, I've set my application to target version 4 of the .NET Framework and for "All CPUs". As some of our users are 64-bit while others are 32-bit, I assume one would choose All CPUs. Is that correct? On a particular user's 32-bit Windows 7 SP1 machine, the framework installation (via ClickOnce) is failing with an error code 5100, which according to this MSDN article , indicates that The user's computer does not meet system requirements . The user's PC is 32-bit Windows 7 SP1, so I wonder if the command argument 'FullX64Bootstrapper' is correct in the first place? This

Icon for ClickOnce application in 'Add or Remove Programs'

☆樱花仙子☆ 提交于 2019-12-04 21:08:33
问题 I got the icons right for my application, in the Start Menu, application folders, etc., but it doesn't come right into the Add or Remove Programs listing. What should I include for this? 回答1: You might not be able to do it directly through ClickOnce, as it's not supported. Maybe you could try editing the registry a bit as shown in Missing Icon in Add/Remove Programs for ClickOnce Application : RegistryKey myUninstallKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows

A .deploy file is not deploying an XML file

こ雲淡風輕ζ 提交于 2019-12-04 20:41:14
问题 I'm developing an application using MS Visual C# 2008 Express that uses the ClickOnce deployment functionality. I publish the application to a a server where users can download it. Upon running the application, it throws a file not found exception - it cannot find the XML file that the application pulls data from ( Instructions.xml ). When I go to the server and into the Application Files folder, I see .deploy files. One of them is for Instructions.xml.deploy . Why is Instructions.xml not

What can a ClickOnce application in an Internet Zone sandbox expect to get away with?

会有一股神秘感。 提交于 2019-12-04 19:40:12
We have an application that we want to make available to the general internet-using public with as few clicks as possible. I'm investigating whether we can use ClickOnce to avoid the confirmation dialog that our existing alternatives entail. My research so far indicates that this ought to be possible as long as (a) the application is AuthentiCode signes, and (b) it comes with a manifest that request a sufficiently innocuous set of permissions. Where can I find a detailed, authoritative list of which permissions are "sufficiently innocuous" to avoid the confirmation dialog? I've clicked around

ClickOnce and mageUI adding custom file folder problems

匆匆过客 提交于 2019-12-04 19:37:41
What I do: Publishing .Net 3.5 application via VS, or msbuild (whatever), and now I need to insert to the published application separate directory (Modules - not added as a reference to the project - our project architecture does not allow this). So I'm copying the folder to published location then runs mageUI.exe select the application manifest and then the problems starts. As I press the populate button it's adding also hidden directory? So I remove the directory, after I want to save the manifest file I get the "Warning MSB3110: Assembly 'NAME.Shell.application.deploy' has mismatched

WPF ClickOnce missed references

ⅰ亾dé卋堺 提交于 2019-12-04 17:32:37
I have a WPF app that works with local SQLite and Entity Framework Core. I want to distribute my app using ClickOnce. Everything works fine when I run it using Visual Studio 2017. But app had a crash on a start when I used ClickOnce. The crash was so early so I couldn't even log the exception. After some time I found that in publish folder some dlls were missed. For example System.Runtime. All references are NuGet packages. Then I found that despite of I have a reference to the dlls in my project ClickOnce application files list doesn't contains it. The only solution I have found for now is to

Error when using Visual Studio 2010 for assembly signing: “An attempt was made to reference a token that does not exist”

自闭症网瘾萝莉.ら 提交于 2019-12-04 16:02:05
问题 I'm trying to sign an assembly in Visual Studio 2010 with our PFX file. After I enter the password for the private key, I get: An attempt was made to reference a token that does not exist How can I fix this problem? 回答1: I have the same problem. Just use signtool from the Visual Studio command prompt instead. Sometimes signtool will claim your password is invalid, but usually after a couple of tries it starts working for me. signtool.exe sign /f YOURCERT.pfx /p YOURPASSWORD YOURTARGET.exe 回答2

User cannot Install Click once application

岁酱吖の 提交于 2019-12-04 15:32:52
I have a relatively simple support application which I have chosen to deploy to our support staff via click once. I assume it's still called Click-Once. I'm using the publish tab of the project's properties in VS2008. Several users have managed to click through to the url, download and run the application. One specific user cannot. He has .Net 3.5 SP1 installed and indeed reaches the publish page where he is offered the option to install. upon clicking this he is greeted with an error message The error message contains the following phrases Cannot start Application Application download did not

Getting the path of a ClickOnce File Association

邮差的信 提交于 2019-12-04 15:26:06
I've using ClickOnce and I'm struggling with file associations. I can set up the association. Double-clicking an associated file even launches the application. ...However... I don't know how to get access to the path of the file clicked to launch the App. Has anyone come across this before? The official .NET way (w/o Registry) is to look at AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData after startup. It is a string[] 来源: https://stackoverflow.com/questions/582528/getting-the-path-of-a-clickonce-file-association