Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Application deployment to a device
 

Application deployment to a device

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?


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.
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.
Bruce.Zhou  Friday, April 10, 2009 10:33 AM

You can use google to search for other answers

Custom Search

More Threads

• ensuring only one instance of an app is running with ClickOnce apps
• Redistributing ActiveX on target machine problem
• Full/Partial Trust Problems
• Keeping settings between Clickonce updates
• Autoupdate only when Build-Nr Changes
• User Interface Dialog
• Cannot install WSUS (Microsoft SQL Server 2000 Desktop Engine fails to install)
• Running My EXE The Second and Subsequent Times Displays An Installer Popup
• Creating wrapper installer
• What I would like to see in the generatebootstrapper task