Windows 7 + VB6 + Standard User’s + The Registry = Arg!

by Mark Wiseman on March 19th, 2010 | Posted in Revium Sandbox | Comment on this entry

I have spent the last couple of weeks assisting one of our client re-mediate some of the hundreds of VB6, Word, Excel and Outlook VBA add-ins in preparation for their XP to Windows 7 upgrade. It is no small task, believe me.

One of the earliest issues we ran into was for verifying registry changes made. It looked like the registry keys these add-ins modify were not being saved.

Consider this scenario: A user logs into windows and a VB6 assembly is run that query’s active directory and sets a registry key value to true or false if they belong one a particular user group. This setting is stored under:

hkcu software
HKEY_CURRENT_USER > Software > CompanyName > Setting

When we try to verify that the setting has been saved we try to open regedit and are prompted to enter User Credentials, so we enter the Administrator’s. When we look for the setting it doesn’t exist. But why? Our code didn’t throw any errors and after adding debug information RegCreateKeyEx returned a successful result.

It turns out the issue was with our verification. If you supply Admin Credentials in Windows 7 to run regedit it shows the Admin users HKEY_CURRENT_USER settings… Arg! It turns out when you run regedit you can just re-enter the Standard User’s password again to gain access.

Related posts:

  1. 10 Tips for user acceptance testing of web applications
  2. Email source code in MS Outlook
  3. Transparent login between ASP.NET web sites
  4. Sharepoint – Getting Photos from People and Groups
  5. Windows SharePoint Services Help Search – SPSearch Starting Error

Tags: registry, vb6, win7

« Cross-domain login in ASP.NET

Crystal Report Challenges »

Leave a Reply

Click here to cancel reply.

Recent Articles

  • 10 Tips for user acceptance testing of web applications
  • Popular Content Management Systems
  • ASP.NET MVC [HandleError] and logging
  • VMWare hard lessons
  • Linq – SubmitChanges does not work
  • Using FourSquare for Marketing
  • ASP.NET Button – prevent double clicks part 2
  • The easy way to clear floated elements

Twitter

  • 50 Useful Tools & Resources For Web Designers <http://www.smashingmagazine.com/2010/07/26/50-useful-tools-and-resources-for-web-designers/> 3 days ago
  • Tourism Australia has launched a free "Go Ashes" app for iPhone to promote England vs Australia cricket series 4 days ago
  • #YouTube competition, on 24 July capture you Life In A Day http://youtu.be/tZFbDY3-eG4 1 week ago
  • More updates...

Revium Logo

  • Home
  • About
  • Expertise
  • Showcase
  • Contact

  • news
  • blog
  • sandbox
  • twitter
  • facebook
  • rss
Bookmark and Share

We are Revium, hear us roar!

The news.

23 Apr

Revium sponsors IIA CEO luncheon on 2010 Challenges

Last Wednesday 14th April Revium hosted a CEO luncheon for the Internet Industry Association (IIA). Revium have been long time supporters of the IIA and…

Continue reading
View archive

The blog.

11 Jun

VMWare hard lessons

Well, I learned a hard lesson today when I decided to give more hard drive space to one of our virtual machines. We run…

Continue reading
View archive

The sandbox.

02 Jul

10 Tips for user acceptance testing of web applications

1. Draw up a testplan Many testers would like to skip this step, but it is essential for structured testing. It depends of course on the…

Continue reading
View archive

eNewsletter.

 

© Copyright 2010. All Rights Reserved.

Revium Pty Ltd

e / info@revium.com.au t / Work +61 3 9429 2000

Find us: web development, seo

Disclaimer and privacy Revium Pty Ltd

10 Harvey Street
Richmond, Victoria, 3121 Australia
View map

Logo Partner MicrosoftLogo Partner KenticoLogo Partner IiaLogo Partner Iia RibLogo Partner Acs