{userappdata} target with webupdate

Hi

There is several target directory options {pf}, {app},...
But there is a way to target the UserAppData directory ?


regards
olivier

You could do this with a custom path converter via event OnConvertPrefix.

From this event you can pass the path for a prefix you assign for this path where the path itself can be retrieved via:

uses ShlObj; 
.. 
.. 
function getUserPath:string; 
var pathString:array[0..1023] of char; 
begin 
   ShGetSpecialFolderPath(0,PChar(@pathString),CSIDL_APPDATA,false); 
   result:=pathString; 
end; 

Hi bruno

Thanks for your anwser :)
This directory is now used very commonly, maybe it could be added  as a standard target ?

regards

olivier