WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Installation Licensing Setup
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Uninstall Problems and which Registry Keys to Delete

Keywords: 	  uninstal.exe

Question:

I installed WinBatch but haven't found the time to learn/use it, it does look wonderful though. Anyway, I tried to uninstall by running system\uninstal.exe but, having closed the "pop-up" the uninstall quit with no other messages without removing any WinBatch files/registry entries/menu additions. I had IE4 installed and have since installed IE5 but WinBatch uninstall failed to uninstall before IE5 in the same way it does now. I have re-installed WinBatch in case any part of it had been changed by any other programs I have installed but the uninstall still quits with no reported errors not having uninstalled. I have not used WinBatch to create any routines.

TweakUI Add/Remove|Edit contains the string: "C:\Program Files\WinBatch\System\uninstal.exe" 90 "C:\Program Files\WinBatch\System\WinBatch Setup.Log"

Hmmmmmm, I still wish to uninstall. Please help.

The uninstall gets as far as closing the system tray "owl" and then the uninstall closes without doing anything else.

I have a laptop - no specific manufacturer, badged "AJP" (some London "manufacturer") - P2, 233MHz, 128Mb RAM, ten months old from brand new.

Am I correct in thinking that WinBatch comprises only registry entries and files in the WinBatch folders? If so, a list of registry entries and filepaths that I could manually remove would do me nicely!

Answer:

You could compile the following script using the large EXE option to programatically uninstall WinBatch by sending keystrokes to the various prompts.
killexplorer = 0  ;1 = KILL EXPLORER( ONLY USE IF NOT RUN AT STARTUP), 0 = DO NOT KILL EXPLORER MAY REQUIRE REBOOT

If rtstatus() !=  1
	 Pause("Notice","This WinBatch script must be compiled using the WinBatch+Compiler.")
	 Exit
Endif

If AppExist('WBStudio.exe') then TerminateApp( 'WBStudio.exe', 3, 0)
If AppExist('PopMenu.exe') then TerminateApp( 'PopMenu.exe', 3, 0)
If AppExist('FilMnSvr.exe') then TerminateApp( 'FilMnSvr.exe', 3, 0)

If killexplorer == 1
   ;ONLY USE IF THIS SCIPT IS NOT RUN AT STARTUP
   ;USED TO KILL FILEMENU
   RunWait('cmd.exe','/c TASKKILL /F /IM explorer.exe')
Endif

If FileExist('C:\Program Files (x86)\WinBatch\System\uninstal.exe') == @False
	 Pause("Notice","WinBatch is no longer installed")
	 Exit
Endif

 
ShellExecute('C:\Program Files (x86)\WinBatch\System\uninstal.exe', '90 "C:\Program Files (x86)\WinBatch\System\WinBatch Setup.Log"', 'C:\Program Files (x86)\WinBatch\System\', @NORMAL, '')

;A tilde (~) used as the last character of the window name indicates that the name must match the window title through to the end of the title. 
setupname="Wilson WindowWare Setup"
ret = WinWaitExist(setupname,100)
if ret==@false
	Pause("Notice","Step 1: Window not found.")
	Exit
endif

; Change title of main window to make unique
;WinTitle( setupname, 'Automated Uninstall' )
;TimeDelay(1)

; Wait for "Are you sure" 
ret = WinWaitChild(setupname, 'Are you sure' , 100)
if ret==@false
	Pause("Notice","Step 2: Window not found.")
	Exit
endif

; Press the YES button
SendKeysTo(setupname,'!y'); presses the yes button
TimeDelay(1)
 
; Wait for "Could not uninstall all items, as shown" 
windowtxt="Could not uninstall all items, as shown"
ret = WinWaitExist(windowtxt, 100)
if ret==@false
	Pause("Notice","Step 3: window not found.")
	Exit
endif
; Press the OK button / ENTER
SendKeysTo(setupname,"~")


; Wait for "Your machine must be rebooted" (it may not appear!)
ret = WinWaitChild(setupname, 'Your machine must be rebooted' , 10)
if ret==@false
	;Pause("Notice","Step 5: Window not found."); This is expected if ran from startup and Filemenu has never been accessed.
	Exit
else
  ; Press the YES button
   SendKeysTo(setupname,'!y')
endif

if killexplorer == 1
   ShellExecute(DirWindows(0):'sysnative\cmd.exe', '/c start /B explorer.exe', '', @NORMAL, '')
endif

Exit
If you run the UNINSTAL.EXE file in the \WinBatch\System subdirectory, WinBatch will uninstall (in almost all cases) all files (including all its DLLs with one exception) that were installed on the system, as well as any registry entries created by WinBatch.

The WinBatch install program will examine your windows/system directory.

If there is NO CTL3D32.DLL file there it will install one. The uninstall program does not remove the file. If a copy of the file already exists in your windows/system directory, no new copy is installed.

If UNINSTAL.EXE is not successfully uninstalling WinBatch (unusual), then try the following:

  1. First look at the install log for a detailed description of what happened. ..\WinBatch\System\WinBatch Setup.Log

  2. The WinBatch files are in two possible directories on disk: C:\Program Files\WinBatch and C:\Program Files (x86)\WinBatch. Delete all these WinBatch files.

  3. Remove shortcuts from Start menu - the WinBatch group.

  4. Remove PopMenu from the StartUp group.

  5. Remove entries from the registry
    • HKEY_CURRENT_USER\Software\Wilson WindowWare
    • HKEY_LOCAL_MACHINE\Software\Wilson WindowWare
    • HKEY_CLASSES_ROOT\*\Context Menus\FileMenu.
    • WRITE down long CLSID number from filemenu entry.... then delete key
    • HKEY_CLASSES_ROOT\CLSID\**KEY FROM ABOVE***

      Delete entire key. Don't get the wrong one. Does not hurt to leave this one in there. (Also found in the WinBatch Setup.log file.)


Article ID:   W14242
Filename:   Uninstalling WinBatch.txt
File Created: 2013:12:06:14:06:30
Last Updated: 2013:12:06:14:06:30