Thanks, Hert.
I have now tried this code:
- Code: Select all
AResource := FindScriptResource ('MyResource');
if AResource <> nil then
begin
Say('Resource found');
AResource.Save(Publisher.PublishFolder + 'work.exe');
end
I get the resource found message, but the file is zero. What I also realized now is that after the call to Save, the script just stops, code afterwards is not executed anymore (If I put a "Say" right behind the Save, I get nothing).
Also, the whole Publish process does not seem to finish correct, I never get the screen where I can choose to upload the result, show it in the browser, etc.
For whatever reason it doesn't like that "Save".
Maybe I would be better off referencing my resources in the HTML, and copy them to the publish root directory?
One resource is a temporary resource that I just need for the publishing process, the other one I need in the publish root directory.