Skip to main content
July 11, 2011
Question

Uninstaller prompts to run in vbscript - runs silent as cmd

  • July 11, 2011
  • 1 reply
  • 1463 views

Hi,
I am trying to use the Adobe Flash Player Uninstaller to remove older versions of Flash Player. When I run a batch file, the uninstaller runs silently without any prompting. When I run the uninstaller in vbscript, Windows 7 prompts for permission to run the uninstaller.


This uninstaller is supposed to run silently by using the following (this does work using a batch file):    uninstall_flash_player.exe -uninstall

I am using this line of code below in my vbscript:

objShell.Run strDataPath & "uninstall_flash_player.exe" & " -uninstall",0,True

This code will run the uninstaller but Windows prompts you to allow it to run and will not continue until you respond. I need this to run without requiring any interaction because it will be pushed out using SCCM.

Any ideas?

Thanks,
Rob

    This topic has been closed for replies.

    1 reply

    July 12, 2011

    I modified my command line code to include cmd /c and it seems to be working without prompting. Here is how the code looks now.

    objShell.Run "cmd /c " & strDataPath & "uninstall_flash_player.exe" & " -uninstall",0,True