Silent Uninstallation of Dialux
Hi,
I have installedDIALux evo version 5.1.0.12411. and I am trying to uninstall it silently. Installation worked fine with silent switch /s. There are three ARP entries put by the setup.exe. (DIAL COmmunication Framework, DIAL Data Exchange Helper, DIALux evo). For uninstallation there are three different command lines for three ARP entires. Two of which uninstalls silently. None of the silent switch is working for DIAL Data Exchange Helper. If anyone has ever worked on this application please suggest on the same.
Thanks,
Mahalakshmi
Answers (2)
Use the following sendkeys loop in vbscript. This works under Windows 7 even when there is nu user logged on.
Set wshShell = CreateObject("WScript.shell")
on error resume next
wshshell.exec """C:\Program Files\DIAL GmbH\DDEH\uninstall.exe""" + " -S " + """/U:C:\Program Files\DIAL GmbH\DDEH\Uninstall\uninstall.xml"""
wscript.sleep 5000
i = 0
Do While i = 0
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'uninstall.exe'")
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'uninstall.exe'")
if colProcesses.Count = 0 then wscript.quit
WshShell.AppActivate ( "DIAL Data Exchange Helper Uninstaller")
if WshShell.AppActivate ( "DIAL Data Exchange Helper Uninstaller") = TRUE Then wshshell.sendkeys "%{N}"
Wscript.Sleep 1000
WshShell.AppActivate ( "DIAL Data Exchange Helper Uninstaller")
if WshShell.AppActivate ( "DIAL Data Exchange Helper Uninstaller") = TRUE Then wshshell.sendkeys "%{F}"
Wscript.Sleep 1000
Loop
I have tried it myself and works like a charm !