Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Urgent : Uninstall setup, remove folder

Urgent : Uninstall setup, remove folder

Scheduled Pinned Locked Moved Visual Basic
workspacecsharphelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    d_smit
    wrote on last edited by
    #1

    Hello, I have added one setup project to my already existing vb.net application. in this i have included uninstallation routine to uninstall application from program menu. Added the following code: Dim arguments As String() = Environment.GetCommandLineArgs() Dim argument As String For Each argument In arguments If argument.Split("=")(0).ToLower = "/u" Then Dim guid As String = argument.Split("=")(1) Dim path As String = _ Environment.GetFolderPath(Environment.SpecialFolder.System) Dim si As New ProcessStartInfo(path & _ "\msiexec.exe", "/x " & guid) Process.Start(si) Close() Application.Exit() End End If Next If i mention the path as C:\Program files\MyFiles\MyApp while installing the setup, then how i could i retrieve the same path using above code. which statement is that. Here i have to remove MyApp Folder with all files which consists of file created after running the exe. I have added one custom action and beneath its uninstall folder, i added Primary output and sets its argument property to "u" "[TARGETDIR]\". Please tell at the earliest how the path can be obtain from argument list. Any help would be highlty appreciated. Thanks.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups