-
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);
-
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.
-
Using BAT is a stupid method, it is recommended to use Windows Instarller to deal with it.
-
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.
-
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.
-
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?
-
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.
-
Do you think it's possible to just do an updater, replace the main program, and delete yourself yourself?
-
@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.
-
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>>
-
Copied to, deleted to??
-
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.
-
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.
-
Add a setup project to your solution. You can check it out here.
-
..net also comes with an installer.
-
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.
-
The files created by the program itself won't be deleted, right?! Then copy some files through the program and try it.
-
As long as you put it in another folder, you can set the uninstalled directory to be a certain folder.
-
It seems that you can't delete the control**. You can try to hide him.
-
Why do you have to delete it, can't you hide it? Waiting for the master to come.
char *p;
uchar log_type; >>>More
Question 1: pt1=&a;pt2=&b;pt1 and pt2 are not defined, years are defined as. >>>More
In the C language. An integer constant starting with 0 refers to octal. 027 is 2x8+7, so the answer is c.
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
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