question

Aceldama-6344 avatar image
0 Votes"
Aceldama-6344 asked Aceldama-6344 commented

Detecting running files when I uninstall ClickOnce Program

Hello, I may not be able to communicate the meaning properly using a translator.
I came over from this link.
I am distributing the program through [ClickOnce].

  1. After I run the program...

  2. Uninstall the program from the [Control Panel].

  3. It is not uninstalled from "AppData\Local\Apps\2.0" because the program is turned on.

This is the problematic way.

To solve this problem...
1. When I uninstall from Control Panel, I must exit the program from [ClickOnce] itself.
or
2. When I uninstall from Control Panel, I must start [My Custom Uninstall Program].

Which of these two methods does Winform support?


windows-forms
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Aceldama-6344, Welcome to Microsoft Q&A, Do you mean that you can not uninstall the clickonce app when you run the app? Then, I want to know if the app is still in the control panel after you clicked the uninstall in the control panel and refresh it

0 Votes 0 ·

No, it will not be removed from AppData\Local\Apps\2.0.
The moment I uninstall it from the control panel, I must also exit the program. And I must also erase the corresponding project in AppData\Local\Apps\2.0.


0 Votes 0 ·

@Aceldama-6344, based on my test, there is no problem for me. I can uninstall the app from the control panel even if the app is open. What is your environment about .net framework and visual stduio version?

0 Votes 0 ·
Show more comments

0 Answers