I have a C# setup project which is associated with another C# pr开发者_如何学Coject. The 'custom action' includes the primary output of the associated project. When I install this setup, during installation the associated project is executed twice (during uninstall the exe gets executed once). I am guessing that it could be due to some property setting. Thanks in advance.
Figured out the problem. I had added the primary output of associated project as custom action. It is sufficient to add the primary output of associated project to 'File System' (primary output of associated project shall be copied to TARGETDIR during installation). If the associated project has custom action then its primary output should be added to 'Custom action'. {twice during installation: Install and rollback. once during uninstall: uninstall}.
精彩评论