可以使用Windows Installer.的 SourceDir ,
在安装工程中把这个信息传递给 CustomAction 
/SrcDir="[SourceDir]\"

解决方案 »

  1.   

    你也可以在msi里面调用你自己写的winform程序去执行资源的处理
      

  2.   

    The SourceDir property is the root directory that contains the source cabinet file or the source file tree of the installation package. This value is used for directory resolution.The TARGETDIR property specifies the root destination directory for the installationTARGETDIR 应该是目标文件夹吧
      

  3.   

    参见文档
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa370905%28v=vs.85%29.aspx
      

  4.   

    参见说明
    http://www.zhcnco.info/index.php?db=so&id=280749