Urgent : Uninstall setup, remove folder
-
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.