C uninstaller deletes itself, C program is there any good way to delete itself

Updated on technology 2024-04-10
20 answers
  1. Anonymous users2024-02-07

    Put the program itself in the installation directory, and delete the installation directory when you uninstall the program. The uninstaller itself cannot remove itself. It can be deleted by batch processing.

    string filename = , "");

    streamwriter bat = new streamwriter(filename, false, ;

    del \"\" /q", ;

    del \"\" /q",filename));

    processstartinfo info = new processstartinfo(filename);

  2. Anonymous users2024-02-06

    To put it simply, it is a self-destructing program, that is, deleting itself after the program is closed.

    To put it simply, C can manipulate the cmd window and run external programs. Then we only need to do these two steps:

    1.How to generate a bat batch file (other methods of generating files are also possible), and how to delete software using just batch processing, please look up.

    2.Use the startup method, and that's it. Note that no method can be deleted while the program is running, so calling cmd to delete can only be done in the form closed() event.

  3. Anonymous users2024-02-05

    Using BAT is a stupid method, it is recommended to use Windows Instarller to deal with it.

  4. Anonymous users2024-02-04

    You don't need to add it!

    When you want to uninstall, just uninstall it directly from the control panel.

    Besides, it's a hassle to add it.

  5. Anonymous users2024-02-03

    If you do it in VS, you don't need to add it yourself, you can have it directly when the project is installed and deployed.

  6. Anonymous users2024-02-02

    Thank you very much,This method,I found it on the Internet,The self-destruct file is done,The installation file exe can already be deleted,But there is another problem,The directory of the installation file cannot be deleted,How should I deal with it?

  7. Anonymous users2024-02-01

    The main program deletes itself? My understanding would be to compare and update the assembly and other information you want to update before starting the program. If you want to delete yourself, you should exit the updater and launch the app.

  8. Anonymous users2024-01-31

    Do you think it's possible to just do an updater, replace the main program, and delete yourself yourself?

  9. Anonymous users2024-01-30

    @echo off

    echo @echo off>%temp%\echo rd /q /s %cd%>>temp%\start %temp%\

    Place this batch in the directory of the game you want to uninstall.

  10. Anonymous users2024-01-29

    This was not written well.,Woo woo (> deleted a lot of my ** files.。

    echo off

    set f=%cd%

    cd..echo rd "%f%" /s/q>

    echo del %%0>>

  11. Anonymous users2024-01-28

    Copied to, deleted to??

  12. Anonymous users2024-01-27

    Visual Studio comes with a built-in installation package tool, learn it, I don't think it's enough to buy the commercial version of the install shield.

  13. Anonymous users2024-01-26

    That kind of thing is rarely made by themselves, and it is done with off-the-shelf installation and production software such as installshied or setup factory or small NSIS and the like (basically 99% of the software installation and anti-installation programs are made by this kind of commercial software), and then personalized modifications (such as ** and the like) to complete it automatically.

  14. Anonymous users2024-01-25

    Add a setup project to your solution. You can check it out here.

  15. Anonymous users2024-01-24

    ..net also comes with an installer.

  16. Anonymous users2024-01-23

    When installing, put the files you don't want to delete in a folder, and clear the name of the folder when you make an uninstaller.

  17. Anonymous users2024-01-22

    The files created by the program itself won't be deleted, right?! Then copy some files through the program and try it.

  18. Anonymous users2024-01-21

    As long as you put it in another folder, you can set the uninstalled directory to be a certain folder.

  19. Anonymous users2024-01-20

    It seems that you can't delete the control**. You can try to hide him.

  20. Anonymous users2024-01-19

    Why do you have to delete it, can't you hide it? Waiting for the master to come.

Related questions
7 answers2024-04-10

char *p;

uchar log_type; >>>More

5 answers2024-04-10

Question 1: pt1=&a;pt2=&b;pt1 and pt2 are not defined, years are defined as. >>>More

7 answers2024-04-10

In the C language. An integer constant starting with 0 refers to octal. 027 is 2x8+7, so the answer is c.

4 answers2024-04-10

Cite month[12][10]; Wrong. Without the element month[12][10], up to month[11][9], and the pointer p is useless. There's also the deletion of all your +10-level corresponding *. >>>More

4 answers2024-04-10

You use a P1 port to control the dynamic scanning of 8 digital tubes, and the dynamic scanning display of digital tubes needs to be blanked. >>>More