Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > VB6 Vista UAC Problem

Reply
Thread Tools Display Modes

VB6 Vista UAC Problem

 
 
Susan1982
Guest
Posts: n/a

 
      01-22-2008

Hii all...

I have a VB application and i can easily install in any operating
system.

My VB application always using the DB thats in its application folder.
Once you delete the DB from this application folder and if try to start
the application it will show the error like DB is not found. This is the
normal working.

My problem is under vista machine, once i installed the application in
vista and if i delete the DB from the application folder still the
program is running. The reason is application taking the DB from the
UAC.

I am using inno script to make the installer for my application. Now i
want to avoid this placing of DB file in UAC. I cant tell the customers
to off the UAC. Instead i want to do something with Inno or by
programically.

Can any one help me...

Regards,
Susan.


--
Susan1982
Posted via http://www.vistaheads.com

 
Reply With Quote
 
 
 
 
Rick Rogers
Guest
Posts: n/a

 
      01-22-2008
Hi Susan,

UAC isn't a folder, it's a control mechanism that limits access to protected
system folders. Programs in Vista run virtualized from a user's appdata
folder, not from the Program's install directory. The actual Program Files
folder is a protected system folder whose data cannot be changed unless the
user initiates the application with elevated privilege (running from an
admin account is not sufficient, you must specifically elevate). Your
application under Vista should be running from the user environment, and I
suspect that your DB file has been copied to the user appdata for
virtualization.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Susan1982" <> wrote in message
news:...
>
> Hii all...
>
> I have a VB application and i can easily install in any operating
> system.
>
> My VB application always using the DB thats in its application folder.
> Once you delete the DB from this application folder and if try to start
> the application it will show the error like DB is not found. This is the
> normal working.
>
> My problem is under vista machine, once i installed the application in
> vista and if i delete the DB from the application folder still the
> program is running. The reason is application taking the DB from the
> UAC.
>
> I am using inno script to make the installer for my application. Now i
> want to avoid this placing of DB file in UAC. I cant tell the customers
> to off the UAC. Instead i want to do something with Inno or by
> programically.
>
> Can any one help me...
>
> Regards,
> Susan.
>
>
> --
> Susan1982
> Posted via http://www.vistaheads.com
>


 
Reply With Quote
 
mayayana
Guest
Posts: n/a

 
      01-22-2008
Vista issues have been discussed quite a bit in the
VB groups. I haven't seen any one ideal solution
presented. Some people are just telling their customers
to install to C:\ or to a newly-created folder in Vista,
in order to get around the problem of Program Files folder
restrictions (which renders App.Path unusable).

You can also put your DB in the user's AppData folder,
but the problem there is that MS has left no good option
for all-users setup. The All Users App Data folder is not
writable. So it boils down to:

1) Design the program for single users and don't try to
access anything other than the user's app data and
documents folders.
(If Inno can't get those paths for
you then you'll need to do that yourself:
http://vbnet.mvps.org/code/browse/csidlversions.htm
http://vbnet.mvps.org/code/browse/csidl.htm
)

OR

2) Tell the customer that they will need to grant
themselves permission to fully use their PC if they want
your software to work.

Microsoft also has some online info. about dealing with
UAC. It's a lot of reading without much clear information,
but it might help:

http://msdn.microsoft.com/msdnmag/issues/07/01/UAC/

http://technet2.microsoft.com/Window...-2b2f-422c-b70
e-b18ff918c2811033.mspx


You might also try the VB groups or an Inno
support forum, if there is one. This group is
just for Vista use.

>
> I have a VB application and i can easily install in any operating
> system.
>
> My VB application always using the DB thats in its application folder.
> Once you delete the DB from this application folder and if try to start
> the application it will show the error like DB is not found. This is the
> normal working.
>
> My problem is under vista machine, once i installed the application in
> vista and if i delete the DB from the application folder still the
> program is running. The reason is application taking the DB from the
> UAC.
>
> I am using inno script to make the installer for my application. Now i
> want to avoid this placing of DB file in UAC. I cant tell the customers
> to off the UAC. Instead i want to do something with Inno or by
> programically.
>
> Can any one help me...
>
> Regards,
> Susan.
>
>
> --
> Susan1982
> Posted via http://www.vistaheads.com
>



 
Reply With Quote
 
 
 
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-select problem in Windows Explorer BIG PROBLEM!!!!!! Jim Hansen Windows Vista General Discussion 3 12-17-2007 01:09 AM
Generic McAfee Problem Message in Vista Problem Reports cyberbuff53 Windows Vista Performance 0 12-01-2007 12:55 PM
fixed unable to delete email problem, now I have new problem j2 Windows Vista Mail 19 03-30-2007 01:25 AM
Vista Sleep Problem / Network Problem WWJD Windows Vista Networking 0 10-11-2006 08:17 AM
Vista Upgrade Problem - Windows Explorer Loop problem Steve S Windows Vista Installation 0 06-27-2006 03:15 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59