开发者

Desktop shortcut shows some configuration wizard on double click

I made a setup project f开发者_如何学编程or my windows forms application and then installed it. It properly created a shortcut on desktop. Now when I double click it to open, it shows a progress bar like thing saying Configuring application. After that, my windows form appears and runs normally.

I have no clue why this is happening. My earlier version for the same application was running properly with o. Also if I install the previous version, it starts normally without any problems. Only the setup files that I am creating now are showing this problem.

Any one having any clue...


You created a ClickOnce installation. You probably wanted to create a standard Setup Project. IIRC, there was some issue with this type of project in Visual Studio 2010, as in the project type is being depreciated, but I can't seem to find anything about that now.

Other alternatives are using WiX or the limited edition of InstallShield.

Oddly enough, the ClickOnce installer is pretty good, assuming you have the infrastructure to support it (a spot on the web where you place updates) and don't mind the nonstandard behavior (that weird dialog on start). Frankly, installer technologies right now in the .NET world suck. They're all extremely complicated and fail to insulate the developer from the intricacies of how installers work with Windows.


To turn off ClickOnce, IIRC, do the following:

  • Uncheck "Sign the ClickOnce manifests" on the Signing tab

Desktop shortcut shows some configuration wizard on double click

  • Uncheck "Enable ClickOnce security settings" from the security tab

Desktop shortcut shows some configuration wizard on double click

  • remove any references to "System.Deployment" from your projects
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜