Hi again,
I managed to resolve this by instead invoking it as a InstalledFileAction:
Leaving this here in case anyone else runs into the same issue :)
I managed to resolve this by instead invoking it as a InstalledFileAction:
project.AddAction(new InstalledFileAction("hide.cmd", "", Return.check, When.After, Step.InstallFiles, Condition.NOT_Installed) { Impersonate = false, Execute = Execute.deferred });