如何在安装wix安装程序期间复制文件夹/ files1..to..files5
我使用WIX创建了我的安装程序项目。项目目录下有文件夹和文件。我需要在安装过程中将文件夹和文件复制到安装路径。
这两个目录结构是1.somefolder/file1..to file5 2.some folder/subfolder/subfile1..tosubfile5
。这两个目录都在我的项目目录中。我需要在安装过程中复制安装文件夹中的同一目录这个Program Files/InstallationFolder/subfolder/subfile1..tosubfile5
。
如何在安装过程中将目录从项目路径复制到安装路径。
这是一个相当简单的问题,答案很复杂……
你有定义你的function吗? 您是否定义了组件? 您是否定义了目录结构?
这是我建议的……
.... //This is the director you defined somewhere else that is where you want to install to ....
有关此信息的最终来源: http : //wixtoolset.org/documentation/manual/v3/howtos/files_and_registry/add_a_file.html
关于如何做到这一点的一个很好的WiX教程: http : //wix.tramontana.co.hu/tutorial
专门针对文件以及如何处理它们: http : //wix.tramontana.co.hu/tutorial/getting-started/the-files-inside
编辑:您将希望有一个这样的目录结构:
请阅读: http : //wixtoolset.org/documentation/manual/v3/howtos/files_and_registry/add_a_file.html