Hello,
The files are copied on the target machine during the
"Add Resources" action group, on the deferred stage.
with a message box placed there I could break the execution to see whether the grant-rights application path was existing and it was not (in fact it reacts with a path not found error and the setup terminates).
Most probably, this happens due to the fact that your custom action is scheduled to run during the
"Immediate" stage, whereas the files are copied during the deferred stage. Could you please go to
"Custom Actions" page --> select your custom action --> under
"Execution Time" please select the
"When the system is being modified (deferred)" radio button? This way, the custom action should be executed after the files are copied on the machine, therefore everything should work as expected.
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging