How to add folders and files in to MSI and how to access that added files in to custom action of MSI

最后都变了- 提交于 2019-12-11 18:47:21

问题


Actually I want add some folders and files to MSI. Through custom action i want to copy that added folders and files to some destination/target folder.

Any Help please???


回答1:


Surely you can add Folders as well as Files to MSI but its not using custom action Follow the steps to add Your Folders or Files.

  1. Right Click the Project(Setup) in Solution Explorer.
  2. Click View > Click FileSystem.
  3. New interface will be opened.
  4. Right Click on File System on Target Meachine > Click Add Special Folder.
  5. You can choose any one of the folder that are listed or go for Custom Folder.
  6. Right Click on the Custom Folder you created > Click Add > Click Folder.
  7. Right Click on the newly created Folder > click Properties.
  8. Set DefaultLocation Property to ("Destination") ie c:.
  9. Right Click on the newly created Folder > Click Add > Click File.
  10. Browse the file you wants to get added .
  11. Build the solution.
  12. Your are done.


来源:https://stackoverflow.com/questions/2895002/how-to-add-folders-and-files-in-to-msi-and-how-to-access-that-added-files-in-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!