FAQ Database Discussion Community


ClickOnce deployment requires Framework 4.5 required when 4.5.2 is installed

c#,.net,.net-4.5,clickonce
I know that the similar questions has been asked, and I've read them, however I can't understand why it happens with Framework 4.5.2 I've make ClickOnce publish and it requires .net framework 4.5 when 4.5.2 is installed . I can run it in debug mode or build it without any...

Accessing folder information about clickonce application

c#,clickonce
Here's the problem: I have two applications. One of them is a clickonce application that I do not have access to, and the other one is a c# program I'm designing. I need a way to track down the application folder where the app is installed by either the .appref-ms...

Migrate ClickOnce certificate from Sha1 to SHA256 and run on .NET 4.0 client machines

msbuild,certificate,clickonce,cruisecontrol.net,signing
After discovering the signing issue with .NET 4.5 vs .NET 4.0 when upgrading from an SHA1 to an SHA256 signed certificated, I decided to re-implement our ClickOnce build process to follow a more standard approach so I could make use of VS2013 Update 3. However it didn't seem to have...

C# localization different in the IDE and real life

c#,localization,ide,clickonce
My code is prepared for English and German. I have the statement Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("de-DE"); or Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en-US"); before the InitializeComponent() statement; It works fine with the initial window including the menu-items coming up in German or English. But only when compiled and run within the IDE. When I...

Copy dll files to .exe directory in ClickOnce deployment

c#,c++,dll,deployment,clickonce
My .NET project depends on a bunch of native dll libraries that should be copied into the same directory as .exe file. Dll files are added to main project to "ExternalDependencies" folder and are copied to output folder upon custom post-build action. When I publish my app with ClickOnce utility...

ClickOnce, reflection and security

.net,security,clickonce,appdomain
I have developed a .net desktop application which is distribuited to my clients as a clickonce application. This applications need to download a dll from my server and after that load it by reflection. The dll is downloaded correctly, but when i try to load it using: Dim dom As...

IsFirstRun Problems

c#,wpf,.net-4.0,clickonce
So I'm trying to detect if the application is first run or not, but for some reason I'm getting a name space error. I'm using the following code: private void Window_Loaded(object sender, RoutedEventArgs e) { lblUsername.Content = "CIS User: " + username; lblbuildVersion.Content = staticinfo.buildVersion; if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed && System.Deployment.Application.ApplicationDeployment.IsFirstRun) {...

specify VSTOLocal string for Manifest registry entry in VSTO Addin deployment using Clickonce

excel,vsto,clickonce
I have developed a VSTO Excel Application level Addin that gets installed by Clickonce installer. I always want the Addin to use the VSTO file that is available in the installation location rather than using from the clickonce cache. This can be achieved by appending the value "|VSTOLocal" to Manifest...

Upgrade ClickOnce Application using Windows Installer. Is this possible?

deployment,installation,windows-installer,clickonce
Few machines have 'MyApp.exe' installed using ClickOnce. And I have created a new MSI Windows Installer for 'MyApp.exe' using MS Visual Studio 2013 Setup and Deployment. I have a requirement that when my new MSI Installer runs it has to automatically remove/uninstall all previous 'MyApp.exe' (installed using ClickOnce) and install...

clickonce installation failed when trying to deploy files to be downloaded

c#,visual-studio-2012,clickonce
i'm getting error of "system.deployment.application.deploymentdownloadexception (unknown subtype),Can not download application. The Application is missing required files" in my win c# apllication (visual studio 2012), when i try to run setup.exe for my clickonce application. i made a Clickonce deployment after setting the installation folder (share folder) and publish it (with...

How to sign ClickOnce application in Post Build Event?

c#,clickonce,signing,signtool
I have WinForms application that are deployed through ClickOnce. I have Post Build Event that signs my assemblies with SignTool. I publish application as ClickOnce installer and I see in VS output that files are signed, but after install there is no signed assemblies. How I can sign assemblies that...

How can I stop my ClickOnce install from requiring Newtonsoft.Json v4.5 in the GAC?

wpf,json.net,nuget,clickonce
We have a ClickOnce deployment of a WPF desktop application, and recently installed the Newtonsoft.Json version 6.0.8 nuget package. After making this change and publishing the ClickOnce deployment, users can't run the update, because of this error message: The first thing that strikes me as odd is the dependency on...

ClickOnce not passing second Uri

c#,wpf,singleton,clickonce
We have a WPF application, which uses WindowsFormsApplicationBase class to make it singleton; and is deployed using ClickOne. Whenever we wanted to execute this exe, we invoke it through Uri (deployed directory in server with query string). All works fine only for first instance of this application. Problem: ClickOnce always...

Executable not signed at the time of publish

c#,clickonce
I am signing executable using POST build event. executable successfully signed at the time of compilation. but when i try to publish (ClickOnce Method) its not signing project main executable. I added Sign Manifests and its successfully sign setup.exe ...

How can I read a CSV from Webserver using c# with LINQ? (ClickOnce deployment)

c#,linq,csv,webserver,clickonce
Hello I'm very new to coding but I developed a tool which works for local use. My Boss wants me to put it on our website for customers. I figured out ClickOnce is a way to do this. The .exe is reading a .csv file to find data for use:...

ClickOnce VSTO solution signed with mage.exe - certificate not trusted error

deployment,certificate,vsto,clickonce,mage
I'm trying to deploy a VSTO solution, which are 2 addins for Word and for Outlook, using ClickOnce. Due to our deployment infrastructure/practices, I cannot publish it using Visual Studio, it is instead built on a build server and deployed via a deployment server. For local development, a self-signed certificate...

ClickOnce fails on download

visual-studio-2012,clickonce
OK, I have a similar problem as Download ClickOnce fails from setup.exe and Download ClickOnce fails from setup.exe , where I have deployed a ClickOnce installer for a desktop app I am selling. Different than those examples, I am using Visual Studio 2012 (Pro Version). Using .Net 3.5. I am...

Installing my application with ClickOnce - missing dll message (although not requested)

c#,.net,sql-server,wpf,clickonce
I have done a clickOnce installer. It seems to be ok, but I have a little problem. I have set as prerequisite sql server 2008 express. If I change it to 2012, it install the prerequisites correctly, but, when it is starting to install my app, it gives error, searching...

Adding Program to Windows Startup

c#,visual-studio,clickonce
My program saves user's input to a txt file on it's current location TextWriter ts = new StreamWriter("url.txt"); ts.WriteLine(textBox2.Text.ToString()); ts.Close(); It reads that when application starts if (File.Exists("url.txt")) { TextReader tr = new StreamReader("url.txt"); readUrl = tr.ReadLine().ToString(); textBox2.Text = readUrl; tr.Close(); } I add this program to Windows startup with...

Installer for Microsoft Office Add In

c#,ms-office,clickonce,nsis,office365
I am working on a Microsoft Office Add In. The current installer uses NSIS, but does not provide automatic updates. I would like to provide either optional or mandatory updates in the most user friendly manner possible. It must work for all versions of Office. What is the standard/ best...