Connecting Tech Pros Worldwide Forums | Help | Site Map

How add Image folder with Cab file?

Newbie
 
Join Date: Sep 2009
Posts: 21
#1: Sep 29 '09
Hi,

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.




Thanx

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Sep 29 '09

re: How add Image folder with Cab file?


Could you embed the images as a resource?
Newbie
 
Join Date: Sep 2009
Posts: 21
#3: Sep 30 '09

re: How add Image folder with Cab file?


No,

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.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#4: Sep 30 '09

re: How add Image folder with Cab file?


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
Reply


Similar Mobile Development bytes