The following is the coding i have wrote in the login form load event
" Dim [module] As ProcessModule = Process.GetCurrentProcess().MainModule Dim pos As Integer = [module].FileName.LastIndexOf("\"c) If pos > 0 Then updaterModulePath = [module].FileName.Substring(0, pos) End If updaterModulePath += " \wyUpdate.exe" "
and then the following coding i wrote in the button click event in login form
"Dim process__1 As Process = Process.Start(updaterModulePath, "/fromservice") process__1.Close()"
in the above coding i have used " \ Fromservice" function . if i use that if there is no updates means it will close silently but if there is an update then a window is opening,in that window we have to click "update" button and after that an another window is opening in that window we have to click "Close All process" button.then only the latest version is updated...
i dont want to give the above said button actions manually...that actions also to be done automatically....for that what i have to add in the above showned coding.
Please help me......