I’m having a problem with my ClickOnce application at work. The application refuses to launch when its icon is clicked. No error is displayed, it just doesn’t load. This is only happening on some deployment machines, not all. As far as I know, all of the machines at work are more-or-less identical ... but I know that often doesn't matter.
The application installs/updates okay -- or appears to. The installation log says everything has installed fine; it’s just when the user tries to launch the application that the problem occurs.
The application DOES launch when I browse to the .exe in the install location (i.e. C:\Users\Username\AppData\Local\Apps\2.0\etc\etc\etc\Application.exe) using the command prompt.
Some details about the non-compliant deployment machines:
Thanks for your advice.
So, I fixed it ... But not sure how/why this was a fix. Despite the fact that we've disabled UAC on all machines (via the control panel) because we don't want it, I had to make sure that the EnableLUA regkey was set to 1. The thing is, some of the affected PCs already had EnableLUA set to 1, so I simply set it to 0, restarted, set it to 1, then restarted again. (Reg path: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System)
Is UAC ever really turned off? And is there a way to turn it off AND have my application run happily at the same time, on all machines?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With