vb6中的安装文件和数据库创建 [英] setup file and database creation in vb6

查看:73
本文介绍了vb6中的安装文件和数据库创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友
我已经在vb6中创建了一个项目并访问2007.之后,我创建了该项目的安装文件以在目标计算机上运行它.一切工作正常,但我找不到安装程序创建的数据库位置.在C:\ program files \ My folder \ xxxx.mdb上有一个数据库,但是在打开数据库后,我无法在其中找到保存的记录.尽管前端显示100条记录,但显示为空.
我也想备份我的数据库.请帮助
谢谢.
问候
Sarfaraz

Dear Friends
I have created a project in vb6 and access 2007. After that i created a setup file of that project to run it on target computer. Everything is working fine but i can not find the database location created by the setup. There is a database on C:\program files\My folder\xxxx.mdb but after opening the database i can not find the saved records in it. It is shown empty although the front end is showing 100 records.
Also i would like to take backup of my database. Please Help
Thank you.
Regards
Sarfaraz

推荐答案

请检查以下路径,其中可能有您的数据库文件:
Please check the following path, there could be your database file:
x64
C:\Users\<your_user_account>\AppData\Local\VirtualStore\Program Files\My folder\

x86
C:\Users\<your_user_account>\AppData\Local\VirtualStore\Program Files (x86)\My folder\


我想您面临UAC权限.不久前,我遇到了类似的问题,我发现即使您的帐户在Win7中具有管理特权,默认情况下也不允许某些用户的操作准确地写入Program Files(或Program Files(x86))文件夹中,您必须运行以管理员身份"应用程序才能在这些文件夹中进行写入,或者您可以选择另一种方式-禁用虚拟存储( ^ ]).但是,如果您需要我的意见,那根本不是个好主意.


I suppose you faced with UAC permissions. I experienced a similar issue some time ago and I found that even if your account has administrative privileges in Win7, some of user''s actions to write exactly in Program Files (or Program Files (x86)) folder are not permited as a default, you have to run applications ''As Administrator'' to write in these folders, or you can choose another way - to disable Virtual store (http://www.interworks.com/blogs/dsmith/2011/09/21/disabling-windows-7-virtual-store).[^]). But if you want my opinion it is not a good idea at all.


这篇关于vb6中的安装文件和数据库创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆