Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database
Create installation file including image file and database Create installation file including image file and database
Create installation file including image file and database
Go Back  Xtreme Visual Basic Talk > > > Create installation file including image file and database


Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2013, 12:52 AM
WangCH WangCH is offline
Newcomer
 
Join Date: Jul 2013
Posts: 8
Default Create installation file including image file and database


Hi all,
I have a program is coming to an end and would like to make it into a installation file.

My program involves an Access database and a landolt C image folder. The application has to load the images from the landolt C image folder continuously, BTW there are 44 .bmp images in the folder.

Is there anyway to include this folder to the installation file and make sure it is working while running on another computer?

Another thing is the database, I just simply added the DB under the program files folder. The DB is working after installed to other com but I'm not sure whether this is the right way to do it.

Hoping you guys give me some idea.

Thank you guys in advance.
Reply With Quote
  #2  
Old 07-23-2013, 05:33 AM
DrPunk's Avatar
DrPunkCreate installation file including image file and database DrPunk is offline
Senior Contributor

* Expert *
 
Join Date: Apr 2003
Location: Never where I want to be
Posts: 1,403
Default

You don't really want to install the database to the program files folder. This will cause all manner of issues on Windows 7 or later if not run as administrator.

Basically Window 7 (and later) protects files in various folders (Program Files being one of them) from being changed by a User (all applications in Windows 7 are run as User even if the user is an administrator). What will happen with your program is it will not alter the database in the program files folder. Windows will make a copy of that database and put it in the User's Virtual Store folder (C:\Users\[Username]\AppData\Local\VirtualStore) and then Windows will force your program to use that database even though your program will be connecting to C:\Program Files\etc.

It gets seriously confusing because your program will work. It will do stuff to the database. But when you look at the database in the program files folder it will appear as though it hasn't touched the database.

Also, other users using the program will then have their own Virtual copy of the database and so no one will share the data.

For that reason it's best really to use the CommonApplicationData folder (C:\Program Data on Windows 7, although use Environment.SpecialFolder.CommonApplicationData in order to get the operating system's equivalent, i.e. XP's location is different) and create a folder in there for your application to use. Windows 7 won't protect that folder and all users can share the same data source.
__________________
There are no computers in heaven!
Reply With Quote
Reply

Tags
database, folder, installation, setup


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database Create installation file including image file and database
Create installation file including image file and database
Create installation file including image file and database
 
Create installation file including image file and database
Create installation file including image file and database
 
-->