Struggling with uninstall through rundll32.exe

//Struggling with uninstall through rundll32.exe
Struggling with uninstall through rundll32.exe 2016-09-22T07:33:22+00:00

The Toolkit Forums Deployment Scripts Struggling with uninstall through rundll32.exe

  • Author
    Posts
  • Marcel
    Participant
    Post count: 1
    #1648 |

    I’m deploying a script for the installation/uninstallation of the Synaptics Mouse driver. The installation is working fine, but I am struggling with the uninstall string. If you want to uninstall this driver you must type

    rundll32.exe "C:\Program Files\Synaptics\SynTP\SynISDLL.dll",standAloneUninstall
    on the command prompt to uninstall the driver.

    I’ve tried to convert this to a uninstall command in the Powershell App Deployment Toolkit, but so far I failed. The hard part is including the ,StandaloneUninstall in the command.

    I’ve got the first part working so the correct commandline is parsed, but where do I put the ,StandaloneUninstall in the line? I;ve tried with ” and ‘, but I can’t come up with a working syntax.
    It’s probably very simple, but I am not seeing the logic 🙂

    Execute-Process “C:\Windows\System32\rundll32.exe” -Parameters ‘”C:\Program Files\Synaptics\SynTP\SynISDLL.dll,standAloneUninstall”‘

  • Jim
    Participant
    Post count: 45

    Execute-Process “C:\Windows\System32\rundll32.exe” -Parameters “”C:\Program Files\Synaptics\SynTP\SynISDLL.dll“,standAloneUninstall”

    • Jim
      Participant
      Post count: 45

      Having trouble posting the code… If this works, just replace the X characters with the grave-accent (below the ~, next to the 1 on your keyboard:

      Execute-Process “C:\Windows\System32\rundll32.exe” -Parameters “X”C:\Program Files\Synaptics\SynTP\SynISDLL.dllX”,standAloneUninstall”

You must be logged in to reply to this topic.