-->

Inno Setup uninstalling application installed with

2019-08-10 12:18发布

问题:

In my registry the UninstallString for the application has the value:

rundll32.exe dfshim.dll,ShArpMaintain 3sunptk.application, Culture=en-GB, PublicKeyToken=077ce3637efc8b1c, processorArchitecture=msil

In my 'Inno Setup' script in the Run section I have:

Filename: "rundll32.exe"; Parameters: "dfshim.dll,ShArpMaintain 3sunptk.application, Culture=en-GB, PublicKeyToken=077ce3637efc8b1c, processorArchitecture=msil,1"; StatusMsg: Uninstalling older version of Personal Timekeeping

However this doesn't remove the application, why?

The ,1 at the end of the parameters instructs the uninstall to run in silent mode which would seem to be the problem as this seems to cancel the install as this is the default button selected. Removing ,1 and selecting the ok button fixes the problem.

So the question now is How do I uninstall in silent mode but selecting the Ok button by default?