Hi,
on windows 7 with UAC disabled I experience uninstall failure if some custom action added as an attached vbscript, running a command from cmd to uninstall a driver:
Function RemoveWFPDriver()
WriteToLog("removing driver")
ReturnCode = WFPRun("rundll32 syssetup,SetupInfObjectInstallAction DefaultUninstall 128 .\tcpredirector.inf")
WriteToLog("Return Code (2): " & ReturnCode)
RemoveWFPDriver = ReturnCode
End Function
(the WFPRun function is as follows and it works ok during installation:
Function WFPRun(ByVal cmd)
Set shell = CreateObject("WScript.Shell")
shell.CurrentDirectory = Session.Property("CustomActionData") & "bin"
WFPRun = shell.Run(cmd, 1, true)
Set shell = Nothing
End Function
)
In the log I can see that the failure happens on the custom action delete.resources under RemoveFolders entry. If I exclude the action, related to RemoveWFPDriver, then uninstall works ok (obviously the driver does not get uninstalled then).
Both install scripts are attached.
FOLLOW US
Get the latest news in Application Packaging