|
Hi, We have an application (C++) that contains a lot of image, sound and text file resources. The resources are placed into the project tree as follows: .\Resources .\Resources\Images .\Resources\Sounds .\Resources\Languages .\Resources\Fonts I've marked all of these files as "content", so they are easily picked up by the windows installer setup project that's also in the solution. The problem is that when I want to debug the application on the device, Visual Studio deploys all of the content to the device, dumping it all into the same directory as the .exe file. In actual fact I want the resources to go into a different directory and of course keep its structure as above. Is there any way to do this?
- Moved byNancy ShaoMSFTFriday, April 10, 2009 9:39 AMwrong forum
-
| | RobinsonUK Monday, April 06, 2009 1:17 PM | Hi RobinsonUK, I think you can try to add the folder and file in the setup. As how to achieve this, we can click the setup project first, and then we choose File System Editor button which is just under the title of the Solution Explorer. After that, you'll see three folders, you can add folders and files in the Application Folder. Using this way, in your application, you might need to use relative path, and you'd better have a clear picture with the relative path between the application and the resource files. If you have any difficulty in implementing this, please feel free to let me know. Best regards, Bruce Zhou Please mark the replies as answers if they help and unmark if they don't.- Marked As Answer byBruce.ZhouMSFT, ModeratorMonday, April 13, 2009 2:42 AM
-
| | Bruce.Zhou Friday, April 10, 2009 10:33 AM | Hi RobinsonUK,
I am moving this thread from Base "Visual C++ General" forum to the "ClickOnce and Setup & Deployment Projects" forum, since the issue is related to Setup Projects. There are more experts in the "ClickOnce and Setup & Deployment Projects" forum.
Thanks, Nancy
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. | | Nancy Shao Friday, April 10, 2009 9:38 AM | Hi RobinsonUK, I think you can try to add the folder and file in the setup. As how to achieve this, we can click the setup project first, and then we choose File System Editor button which is just under the title of the Solution Explorer. After that, you'll see three folders, you can add folders and files in the Application Folder. Using this way, in your application, you might need to use relative path, and you'd better have a clear picture with the relative path between the application and the resource files. If you have any difficulty in implementing this, please feel free to let me know. Best regards, Bruce Zhou Please mark the replies as answers if they help and unmark if they don't.- Marked As Answer byBruce.ZhouMSFT, ModeratorMonday, April 13, 2009 2:42 AM
-
| | Bruce.Zhou Friday, April 10, 2009 10:33 AM |
|