Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Executing / Deleting EXE file

$
0
0
I need to have a .exe file execute after all of the files in the msi have been installed, and then I need to delete that .exe file after it has finished executing. How would I do that?

I have tried using a "Run Executable" custom action for the .exe file (ID = ExecuteFile) that is scheduled as "Deferred - Commit" and "Async wait", with the timing as "After- PublishComponents".

Then I created a Run LuaScript" custom action (ID = DeleteFile) that simply deletes the file in the luascript, which is scheduled as "Immediate" and "Check", with the timing as "After - ExecuteFile".

But the DeleteFile action always happens long before the ExecuteFile action. I would have thought that with the ExecuteFile action set as "Async wait" that the DeleteFile action would not happen until the ExecuteFile thread was completed.

Viewing all articles
Browse latest Browse all 2105

Trending Articles