clickonce

WPF ClickOnce installs, but nothing happens

混江龙づ霸主 提交于 2019-12-11 09:49:07
问题 Wondered if this has ever happened to anyone out there. I have a WPF application that I publish using ClickOnce. When the ClickOnce link is reached I click "Run" and the app is installed on my machine. However, when I click the application from the start menu, it checks for updates, then does nothing. Am I missing a setting? 回答1: It sounds like you the application is exiting on it's own after startup. Either by means of explicitly exiting or because of an unhanded exception. Have you tried

What is the right way to restart WPF application? [duplicate]

与世无争的帅哥 提交于 2019-12-11 09:48:40
问题 This question already has answers here : How do I restart a WPF application? (8 answers) Restart WPF application after click-once update (start the new version) (6 answers) Closed 5 years ago . I want to restart my WPF Application programmitically; in windows Forms I used System.Windows.Forms.Application.Restart(); I have tried this : private void Restart() { System.Diagnostics.Process.Start(Application.ResourceAssembly.Location); Application.Current.Shutdown(); } I have deployed my

Publish Windows form application how change the installation path

扶醉桌前 提交于 2019-12-11 09:28:47
问题 I have built one windows forms application and I published for client installation. While installing the setup file, it should ask the user to select the installation directory path; instead, it's installing in default path as below : C:\Users\Mysys_t\AppData\Local\Apps\2.0\434YBBVC.Z2H\TNYPR09N.1JZ Is there any settings to do this, so that, while installing, user is able to select the installation directory? 回答1: In general, the answer is no. See a related MSDN forums discussion among other

The selected certificate is not valid for coded signing

走远了吗. 提交于 2019-12-11 09:13:06
问题 I have the following Powershell script to create a new cert for a C# application: $expirationDate = [datetime]::Today.AddYears(5) $thumb = (New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -DnsName $env:USERDNSDOMAIN -KeyExportPolicy Exportable -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -NotAfter $expirationDate).Thumbprint $pwd = '123456' $SSpwd = ConvertTo-SecureString -String $pwd -Force -AsPlainText $destinationDirectory = "C:\Test\" $filename =

Internet Explorer blocks xbap with ClickOnce

馋奶兔 提交于 2019-12-11 09:03:19
问题 I created today my first xbap application, and deployed with ClickOnce , .NET 4.5. Microsoft did a great job with documenting everything except the small thing of - how does it actually needs to be deployed?? I mean for real... I started an IIS service. Configured in my project publish settings the URL location. In 'Security' tab i checked the 'Enable ClickOnce security settings', and chose 'full-trust application' since I'm using local PC resources. In 'Signing' I created a 'Test Certificate

ClickOnce: getting MSVCRT C++ DLLs on user's machine

筅森魡賤 提交于 2019-12-11 07:49:10
问题 I've been trying desperately to get my application (15 C# dlls and 1 C++/CLI dll with C++ Runtime DLL dependencies) to deploy with ClickOnce. I got it to work by just copying the Release folder, but ClickOnce refuses to copy the files (msvcm80.dll, msvcp80.dll and msvcr80.dll) and deploy them in this folder. I did this nutty workaround (supply msvcm80.dll, msvcp80.dll and msvcr80.dll as Content/Copy If Newer and then at startup, create the Microsoft.VC80.CRT folder, copy those DLLs, and

Is there a way to check if a ClickOnce application is running the latest version

笑着哭i 提交于 2019-12-11 07:45:58
问题 I understand that ClickOnce applications can update automatically. However, the options offered by Microsoft are not what I am looking for. If I check the version before the application starts, the startup is slower. If I chek the version after the application starts, I don't know than a new version is available until the next startup. I am looking for a boolean function to check if a new version is available. This would enable me to suggest to the user to restart the application. 回答1: using

clickonce file missing

拟墨画扇 提交于 2019-12-11 07:43:22
问题 Using Clickonce with VS 2010 and .NET framework Client profile 3.5, I have several file folders with application level XML and/or textfiles that are needed at runtime. The file folders sits in the same project where they are to be used. These files are marked as " Copy always " at compile. Build Action is " Content ". On my development machine the files are actually copied into the ./Bin/Release/myFileFolder/xxxxx and all is fine. On user's computer, install runs fine but some files are

Publish Building using ClickOnce Stalls forever

别说谁变了你拦得住时间么 提交于 2019-12-11 07:37:36
问题 We use Click once technology to publish our application. Of late, when trying to do the same the application blocks for ever when the Sign Click once manifest is ticked. However, if this were to be uniticked or if the application were to published in safe mode with networking prompt , the publish build process doesnot hang. On the other hand if the application is run on normal mode with the sign manifest enabled the application always stops at the publish building process. Note: The

How to create file association in WPF application with ClickOnce?

ⅰ亾dé卋堺 提交于 2019-12-11 07:27:32
问题 I have used ClickOne and Set up Project in VS 2010 but it does not working. I double click on associate file but it does not open in my WPF Application. Plz help me resolve this issue, step to step.... Thank so much! 回答1: This article on MSDN has a good step-by-step approach. EDIT If ClickOnce is not working for you, you can try doing the installation with Inno Setup. It is an outstanding (and free) installation utility. It is available here, and this link shows you how to create file