472,127 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

How add Image folder with Cab file?


I am used VS 2005 with c# for developing window mobile application.
When i create a cab file i add Primary Output and Content files from project.
The content file contain image folder. When I install application in device using cab file it create a folder which contain the images that i have used in project By Programmatically by accessing path " (//Program FIles//Images//Image.jpg1) " it work well. problem is that this content file is also visible for end user and user is easily view and delete images from this folder.
if the user delete or move this image from folder. my code (path) is not found the image this time the application give error message.

i want to hide or invisible the content files from end user in device how i create the content files invisible ?
if there are other way to add the folder in cab file please give me idea.

Sep 29 '09 #1
3 3174
7,872 Expert 4TB
Could you embed the images as a resource?
Sep 29 '09 #2

I copy the the folder and and past it in project explorer then i add this folder in cab file by add content folder of project. then i build cab file and install in device.
cab file create a folder in device and show all images included in that folder.

i want to hide this images or folder from end user so he not able to perform any action on that folder.
Sep 30 '09 #3
7,872 Expert 4TB
Just because you copy/pasted them into the project doesn't mean they cannot be compiled as a resource right?
Otherwise I don't know how you plan to hide the files
Sep 30 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Manish Songar via .NET 247 | last post: by
35 posts views Thread by Stan Sainte-Rose | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.