clickonce

ClickOnce and UserSettings

被刻印的时光 ゝ 提交于 2019-12-07 06:25:45
问题 Ok, I have a ClickOnce app that I'm testing and I ask the user for a couple of pieces of information the first time they use load the app; Customer Id and Name. I then set the Properties so that they'll be saved across sessions. The property is Properties.Settings.Default["Customer ID"] and similar for name. So I uninstall the application through control panel and reinstall the application but the settings are still there! I go and find all directories for my application and delete out the

Store metadata “CurrentBind” is not valid. Error

拥有回忆 提交于 2019-12-07 05:30:19
问题 In the context of a click-once application that is being debugged locally with exception breaking on "Thrown" turned on in VS2010, I am experiencing the following error: Deployment Exception: "Store metadata "CurrentBind" is not valid." at System.Deployment.Application.ComponentStore.GetPropertyString(DefinitionAppId appId, String propName) when I execute the following line of code: if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed) This exception is being caught and

ClickOnce deployment with MSBuild -> How to pass the current build number for application version/ or autoincrement

三世轮回 提交于 2019-12-07 05:06:25
问题 We have an Outlook add-in which is using ClickOnce deployment. Once the developer check in the build, the PC queues a build and the application is published to a location on a shared drive. The problem is that the build does not change the publish version to the current assembly version and therefore it publishes in the previous version's folder which results in a corrupted installer saying that the version cannot be installed. I've read that article. And I set up [assembly: AssemblyVersion(

ClickOnce app not starting from the scheduler

与世无争的帅哥 提交于 2019-12-07 05:00:56
问题 I have a batch file that will bounce a clickOnce app: @REM The odd PING statements are to create a 5 second wait @echo off taskkill /F /IM MyApp.exe PING 1.1.1.1 -n 1 -w 5000 >NUL "%USERPROFILE%\Path\To\My\App.appref-ms" This works fine when I double-click it: the process is killed and then restarted after 5 seconds. However, if I schedule the task, it kills the process, but doesn't restart it. Does anybody know what's going on? (The task is running as the same user I am logged on as when I

ClickOnce Upgrade Fails after Converting to .NET 4

此生再无相见时 提交于 2019-12-07 04:38:13
问题 Our application is .NET 3.5 deployed via ClickOnce. We just upgrade to .NET 4.0 and updated the pre-requisities appropriately. The install still works fine for first-time users or users who install via the setup HTML page. It will automatically install the .NET 4 framework for them. However, users who already have the application installed and attempt to run it via the start menu get the prompt: "Unable to install or run this application. This application requires your system to be updated to

Click-once publish addtional files stopped with VS 2012

徘徊边缘 提交于 2019-12-07 02:11:45
问题 I customized my project using a solution I found in this question: Why doesn't ClickOnce in Visual Studio deploy content files from dependent assemblies? <ItemGroup> <AdditionalPublishFile Include="$(OutputPath)\**\*.rpt"> <Visible>False</Visible> </AdditionalPublishFile> </ItemGroup> <Target Name="BeforePublish"> <Touch Files="@(IntermediateAssembly)" /> <CreateItem Include="@(AdditionalPublishFile)" AdditionalMetadata="TargetPath=%(RecursiveDir)%(Filename)%(extension);IsDataFile=false">

Application.Restart not passing arguments back

筅森魡賤 提交于 2019-12-07 02:01:10
问题 This is a ClickOnce application. According to the documentation, " If your application was originally supplied command-line options when it first executed, Restart will launch the application again with the same options. ". But I don't know if this is supposed to work or not with ClickOnce applications. If so, what am I doing wrong? Here is my code: public Form1() { InitializeComponent(); textBox1.Text = string.Join(Environment.NewLine, GetCommandLineFile()); } private static string[]

Microsoft's application installer launches my ClickOnce application

 ̄綄美尐妖づ 提交于 2019-12-06 19:45:39
This is the weirdest thing I've ever seen. I wrote this application , which is deployed through ClickOnce. After installing my application, I tried to install this other tool , and instead of installing anything, my application launched. Then I uninstalled my application, cleared ClickOnce's cache by running rundll32 dfshim CleanOnlineAppCache in CMD, and tried to install Microsoft's tool again, and my application's ClickOnce installer showed up. Any idea what in the world could cause this? Looks like you are using the same GUID for the installer what microsoft used for their tool. Please

ClickOnce and mageUI adding custom file folder problems

爷,独闯天下 提交于 2019-12-06 13:50:07
问题 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

URLDownloadToCacheFile failed with HRESULT '-2146697208'

给你一囗甜甜゛ 提交于 2019-12-06 12:37:34
问题 I am I am having a problem installing a ClickOnce vb.net windows forms application. I have tried few solutions suggested here on this site and none have helped. My application is built with VS2010(.NET 4.0 Framework) and is deployed to a local folder C:\inetpub\wwwroot\AppName on my dev machine but I have specified the following address as the install address https://localhost/AppName/ I am getting following error when I hit "Run" button in IE. "Warn if changing between secure to non secure