问题
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.
- Right Click the Project(Setup) in Solution Explorer.
- Click View > Click FileSystem.
- New interface will be opened.
- Right Click on File System on Target Meachine > Click Add Special Folder.
- You can choose any one of the folder that are listed or go for Custom Folder.
- Right Click on the Custom Folder you created > Click Add > Click Folder.
- Right Click on the newly created Folder > click Properties.
- Set DefaultLocation Property to ("Destination") ie c:.
- Right Click on the newly created Folder > Click Add > Click File.
- Browse the file you wants to get added .
- Build the solution.
- 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