Hi Werner,
Thanks I am in the process of moving all the data files to user\appdata and finally managed to update the pycron.cfg file using inno… had to refresh some pascal syntax though…
[Code]
procedure TestModifyFile ( sFileName:String) ;
var
s: string;
FromStr: string;
ToStr: string;
begin
FromStr := ‘PREFIX’
ToStr := expandconstant(’{userappdata}’);
if FileExists (sFileName) then
begin
LoadStringFromFile (sFileName, s);
StringChange (s,FromStr,ToStr)
SaveStringToFile (sFileName, s, False);
end
end;
Source: “D:\App\build\dist\pycron.cfg”; DestDir: “{app}”; Flags: ignoreversion; AfterInstall: TestModifyFile({app}\pycron.cfg)
Thomas