How to create a delete command for a Windows-based application in the application folder

Can someone explain to me how to create a delete command for a Windows-based application in the application folder when creating a new installation project in visual studio 2008.

I found information on the net, but nothing has helped me so far. If you could provide me with links or instructions, that would be great.

Thanks.

+3
source share
5 answers

In Visual Studio .NET:

  • File> Add Project> New Project> Installation and Deployment Project> Installation Project (Enter a name and location)
  • Add (right-click in the application folder> Add> Exit Project):

    • Primary exit
  • , > > ( > )

  • a >

Windows:

  • Uninstall.bat, : C:\WINDOWS\system32\MsiExec.exe/I {productcode}

    ( Windows, , system32)

    ( Visual Studio.NET > )

  • Visual Studio.NET,

  • ( ):

    • > a > > Uninstall.bat

    • > > ( )

    • > > Uninstall.bat( )

    • > > .ico,

  • > ' ( , )

  • " /" ( )

  • a >

. Setup.exe( "Debug", Visual Studio.NET - > a > ). ( " " / "" ).

Uninstall.bat( naar Uninstall.bat)

+2

msiexec:

msiexec/uninstall {GUID}

{GUID} - , . , bacth , , , .

L.E. , - Microsoft msiexec.

L.E. #,

+3

() . .net Visual Studio. VB.net, VS2008 . :

  • . ( ) - .
  • , " ".
  • msiexec.exe, system32 ( , c:\windows\system32)
  • " " , . .
  • " ". " ", msiexec.exe. "", , , " MyProgram".
  • " ".
  • type/x [ProductCode] ( /x [ProductCode] . /x, - msiecec.exe.

. , , , . , , msiexec.exe , Windows System File Protection. .

+1

.

. [Select the node project in Solution Explorer and press F4 and copy the product code.] This is like ... {21F66170-1C81-40E1-AB96-3303FF098425}

enter image description here

0
source

Source: https://habr.com/ru/post/1709184/


All Articles