UnpackTemporaryResource to System TMP environment

is it possible to unpack a temporary resource into the %USERPROFILE%\AppData\Local\Temp folder?? Reason I ask, is in my environment, users do not have the ability to write a temporary file to the C:\Program Files\ebook path. I need the files to extract to a that folder.

Current code is:

[code]
// IPTV
procedure ChangeScreen;
var
MyProgram: String;
begin
MyProgram := UnpackTemporaryResource(“iptvchangescreen.exe”);
RunAProgram(MyProgram, “”, ExtractFilePath(MyProgram), false, SW_SHOWNORMAL);

end;[/code]

Your current code will unpack to the temporary user folder. UnpackTemporaryResource will do that for you and remove the temporary file when the publication closes.