Click here to Skip to main content
16,007,126 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionBased on month and year.............. Pin
Member 387988125-Mar-07 20:55
Member 387988125-Mar-07 20:55 
AnswerRe: Based on month and year.............. Pin
_mubashir25-Mar-07 21:51
_mubashir25-Mar-07 21:51 
GeneralThank u.......... Pin
Member 387988125-Mar-07 23:46
Member 387988125-Mar-07 23:46 
QuestionSending e-mail from your vb.Net application Pin
Arunava3525-Mar-07 20:35
Arunava3525-Mar-07 20:35 
AnswerRe: Sending e-mail from your vb.Net application Pin
nlarson1126-Mar-07 9:13
nlarson1126-Mar-07 9:13 
QuestionCheck UNC Format in vb.net Pin
Pankaj Saha25-Mar-07 20:23
Pankaj Saha25-Mar-07 20:23 
QuestionDataGrid control Pin
somagunasekaran25-Mar-07 19:40
somagunasekaran25-Mar-07 19:40 
QuestionUrgent : Uninstall setup, remove folder Pin
d_smit25-Mar-07 19:07
d_smit25-Mar-07 19:07 
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.
Questionwrite line through textwriter Pin
Xmen Real 25-Mar-07 15:44
professional Xmen Real 25-Mar-07 15:44 
AnswerRe: write line through textwriter Pin
Christian Graus25-Mar-07 15:50
protectorChristian Graus25-Mar-07 15:50 
GeneralRe: write line through textwriter Pin
Xmen Real 25-Mar-07 16:10
professional Xmen Real 25-Mar-07 16:10 
GeneralRe: write line through textwriter Pin
Christian Graus25-Mar-07 16:42
protectorChristian Graus25-Mar-07 16:42 
GeneralRe: write line through textwriter Pin
Xmen Real 25-Mar-07 18:40
professional Xmen Real 25-Mar-07 18:40 
GeneralRe: write line through textwriter Pin
Christian Graus26-Mar-07 2:27
protectorChristian Graus26-Mar-07 2:27 
GeneralRe: write line through textwriter Pin
TwoFaced25-Mar-07 19:03
TwoFaced25-Mar-07 19:03 
GeneralRe: write line through textwriter Pin
Xmen Real 25-Mar-07 19:28
professional Xmen Real 25-Mar-07 19:28 
GeneralRe: write line through textwriter Pin
TwoFaced25-Mar-07 19:49
TwoFaced25-Mar-07 19:49 
GeneralRe: write line through textwriter Pin
Xmen Real 25-Mar-07 21:24
professional Xmen Real 25-Mar-07 21:24 
GeneralRe: write line through textwriter Pin
Dave Kreskowiak26-Mar-07 4:22
mveDave Kreskowiak26-Mar-07 4:22 
GeneralRe: write line through textwriter Pin
Xmen Real 26-Mar-07 5:52
professional Xmen Real 26-Mar-07 5:52 
GeneralRe: write line through textwriter Pin
Xmen Real 26-Mar-07 6:12
professional Xmen Real 26-Mar-07 6:12 
GeneralRe: write line through textwriter Pin
TwoFaced26-Mar-07 6:50
TwoFaced26-Mar-07 6:50 
GeneralRe: write line through textwriter Pin
Dave Kreskowiak26-Mar-07 7:05
mveDave Kreskowiak26-Mar-07 7:05 
GeneralRe: write line through textwriter Pin
Xmen Real 26-Mar-07 15:38
professional Xmen Real 26-Mar-07 15:38 
GeneralRe: write line through textwriter Pin
Dave Kreskowiak26-Mar-07 16:09
mveDave Kreskowiak26-Mar-07 16:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.