Solved

Windows 7 uac virtualstore is not playing nicely with my front end database.

Posted on 2010-09-20
7
980 Views
Last Modified: 2012-08-13
my logon script currently
   copies \\server\frontEnd.mdb   to c:\program files\myFrontEnds\*.*
   copies  \\server\frontEndShortCut.lnk  to %ALLUSERSPROFILE%\desktop\*.*

On XP this worked fine. The user clicks on frontEndShortCut.lnk and they  get their own private copy of the front end.  

On Windows 7 with user account control (uac) disabled, this also worked fine.

But, I decided to turn UAC on, and things have gotton messy.  
When the user clicks on DesktopShortcut, the thing that actually gets opened is
C:\Users\rberke\AppData\Local\VirtualStore\Program Files\myFrontEnds\frontend.mdb.

So, I am thinking of simply changing my logon script so
it copies \\server\frontEnd.mdb   to c:\myFrontEnds\*.*

Does anybody think this is a bad idea?  For instance with UAC enabled, how can I make the login script cannot run an MD c:\myfrontends and then assign user full control.

This is getting to be more complicated than I want.

Does anybody have a nice example of a login script that:
1. works under windows 7
2. works under xp
3. automatically installs a front end database without manual intervention.
4. does not require UAC to be diasabled

For instance, I previously ran into other problems (reported in http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_26473654.html)

0
Comment
Question by:rberke
  • 3
  • 2
  • 2
7 Comments
 
LVL 84
ID: 33720889
The root drive is protected on Windows7 machines, so you'd be no better off than you were before. You should instead copy them to one of the Data folders.

This is for Vista, but the same caveats apply to Win7:
http://msdn.microsoft.com/en-us/library/bb530410.aspx

0
 
LVL 92

Accepted Solution

by:
John Hurst earned 250 total points
ID: 33720934
You have lots of questions and I cannot answer all of them.

First, with UAC on, you cannot readily copy to Program Files (which is what you are seeing).

I would consider moving your data bases to a more benign location and your idea of c:\myFrontEnds is a decent idea. I have three such main root folders for thousands of documents organized within hundreds of folders. I sync between laptop and desktop (both Windows 7) with SyncBack Pro and it is painless and error-free.  This is with UAC on.

Also look at what NET SHARE does. I did a NET SHARE on my desktop and that facilitates back and forth copying (synchronization).

So:
1. Works with Windows 7.
2. Should work with XP.
3. Don't know - you would have to try.
4. UAC does not have to be disabled.

... Thinkpads_User
0
 
LVL 5

Author Comment

by:rberke
ID: 33726930
I moved it up to c:\myFrontEnds, and my folder security problems went away.  (I don't know why lsmConsulting thought they wouldn't, he is usually gives good advice.)

There is another UAC problem causing the net time  %logonserver% /set /yes   to give an access denied, but that is not a big deal.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 92

Expert Comment

by:John Hurst
ID: 33726983
Thank you, and thanks for the update. Good luck going forward. ... Thinkpads_User
0
 
LVL 84
ID: 33727175
Root drives are protected in Vista and Win7, but of course you can change permissions/restrictions as needed.

Proper application deployment techniques in Vista forward suggest that you install Programs to the Program Files section (this is a WRITE ONLY section) and that you install Data files to one of the Data folders (depending on how much access is needed, and by whom). If your FE needs to write to local tables, or you store data directly in the FE, then you'll need to move it to the Data folders section.

You can store your apps on the root drive, but don't be surprised when a Win7 update comes out and breaks this. UAC is not going away, and it's only going to get more restrictive. The root drive was NEVER intended as a storage location for user-run programs. That's what Program Files are for (or the Data folders, depending).
0
 
LVL 5

Author Comment

by:rberke
ID: 33728037
LSMConsulting:

As far as I know MS Access always opens MDBs for update, even if they don't modify their own tables.

I have opened up another question to deal with this subject specifically.  

If you want some points, we can continue the discussion here.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_7/Q_26489270.html
0
 
LVL 84
ID: 33730550
<As far as I know MS Access always opens MDBs for update, even if they don't modify their own tables.>

I'm not aware of this, but you may be correct. The issue occurs when you actually attempt to WRITE the file - merely being able to do so shouldn't trigger any isuses.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now