Need help,script for automatic update of app.
Hi friends,
I am working on Watch guard firebox system application. got the msi made without any errors. and it installs perfectly
but when I uninstall it and try to reboot the system it keeps on rebooting. and the system crashes.
the application involves the web blocker server (wbserver.exe) with it. when I removed it from the application while making the MSI, I did not get the above problem upon uninstall,it works fine.
All I want to know is the exact reason why does this happen and what is the role of the web blocker server in this problem.
thanks in advance
I am working on Watch guard firebox system application. got the msi made without any errors. and it installs perfectly
but when I uninstall it and try to reboot the system it keeps on rebooting. and the system crashes.
the application involves the web blocker server (wbserver.exe) with it. when I removed it from the application while making the MSI, I did not get the above problem upon uninstall,it works fine.
All I want to know is the exact reason why does this happen and what is the role of the web blocker server in this problem.
thanks in advance
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
wiseapp
19 years ago
Hi Pavan:
I think the problem lies when you are uninstalling the MSI its not stopping the background process that is wbserver.exe and its not able to locate the file c:\program files\wbserver.exe since it has been removed during uninstall and this process is still trying to locate the file and thats why the system is crashing. Thats why when you are not including this file then everything goes fine. What I would suggest is you should kill the process from the memory wbserver.exe (you can write a vbscript that will do this or write a wise script file) and then run the uninstallation process. You can place this vb script in a custom action in User Interface tab so that the process is killed at the very beginning and then the uninstallation will start. Hope this would help you.
I think the problem lies when you are uninstalling the MSI its not stopping the background process that is wbserver.exe and its not able to locate the file c:\program files\wbserver.exe since it has been removed during uninstall and this process is still trying to locate the file and thats why the system is crashing. Thats why when you are not including this file then everything goes fine. What I would suggest is you should kill the process from the memory wbserver.exe (you can write a vbscript that will do this or write a wise script file) and then run the uninstallation process. You can place this vb script in a custom action in User Interface tab so that the process is killed at the very beginning and then the uninstallation will start. Hope this would help you.
Posted by:
DevGowda
19 years ago
Hi Pavan,
This script could be fine enough to kill the process include it in the custom action to kill the process and specify the appropriate situation when it needs to be executed and specify the execute condition as Installed AND REMOVE="ALL".
Option Explicit
Dim objWMIService, objProcess, colProcess
Dim strComputer, strProcessKill, objnetwork
'Set objNetwork = CreateObject("WScript.Network")
strComputer = "."
strProcessKill = "'bbcomm.exe'"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & strProcessKill )
For Each objProcess in colProcess
objProcess.Terminate()
Next
'WScript.Quit
' End of WMI Example of a Kill Process
This script could be fine enough to kill the process include it in the custom action to kill the process and specify the appropriate situation when it needs to be executed and specify the execute condition as Installed AND REMOVE="ALL".
Option Explicit
Dim objWMIService, objProcess, colProcess
Dim strComputer, strProcessKill, objnetwork
'Set objNetwork = CreateObject("WScript.Network")
strComputer = "."
strProcessKill = "'bbcomm.exe'"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = " & strProcessKill )
For Each objProcess in colProcess
objProcess.Terminate()
Next
'WScript.Quit
' End of WMI Example of a Kill Process
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.