Have you tried simply using a target named CustomDeployTarget with no Condition instead of CustomPostInitialize? It seems like a more appropriate place for this logic.
Keep in mind that if you just use BTSTask.exe to remove the apps, you're not doing a lot of work that proper BTDF undeploys would do.
Thanks,
Tom
Keep in mind that if you just use BTSTask.exe to remove the apps, you're not doing a lot of work that proper BTDF undeploys would do.
Thanks,
Tom