c++ - Cannot add Custom Action in Visual Studio 2010 installer project -
i converted working project visual studio 2008 vs2010. c++ solution builds single executable , 3 dlls, , windows installer project.
after converting vs2010, received build error "unable build custom action named 'primary output xxxx (active)' project output group 'primary output' because project output group not have key file."
i removed , re-added output groups, attempted add custom action. executable output not listed candidate custom action. noticed when selected executable "primary output" properties, "keyoutput" property set (none) , grayed out.
when revisiting vs2008 version, keyoutput property not grayed out. found error message on msdn, useless fix:
"remove custom action , replace custom action pointing project output group has key file."
obviously tech writer didn't know how fix either. keep in mind original build worked , installed correctly. believe root issue why keyoutput property disabled - why? (when viewing "outputs" correctly shows exe or dll in each project)
i had similar problem , figured out why setup project not find key output files.
my project output directory defined $(solutiondir)\bin\$(platform). solutiondir has trailing backslash \bin placing double backslash in path. project build fine setup project couldn't resolve key outputs. setting output $(solutiondir)bin\$(platform)\ resolved issue.
Comments
Post a Comment