INNO setup, uninstall problem with PDetsFromPath

What are the correct prototypes for PDetsFromPath in INNO steup?For both install and uninstall?

I guessed at the following prototype, and the installer seems to like it.function TA_PDetsFromPath(pdetsFilename: WideString): longint;external 'TA_PDetsFromPath@files:TurboActivate.dll,myApp.dat cdecl setuponly';

For the uninstaller I added this, and the uninstaller fails.function TA_PDetsFromPathUninstall(pdetsFilename: WideString): longint;external 'TA_PDetsFromPath@{app}\TurboActivate.dll cdecl uninstallonly';

But the uninstaller generates the following run time error:message "Runtime Error (at 31:235): Could not call proc."myApp.dat is definitely in the {app} folder.

If someone knows that there is no such prototype that will work, that will save me from trying to figure it out by trial and error. Which I've already tried, obviously without success.