Problem in Windows 7

Hello experts:

I've spent 2 days trying to solve this problem. I have a legacy application that writes to the Registry.
If I run it from the C:\My folder\LEGACY.EXE it runs fine.
but if I run it from C:\PROGRAM FILES\APPLICATION\LEGACY.EXE, it does not work.
What difference is there between running it from the c:\ vs the c:\Program Files

Thanks
lancerxeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
LeeTutorConnect With a Mentor retiredCommented:
I don't have any idea why running from another folder off the root directory would work, but this page explains the changes to Windows Vista and Win7 which are causing your problem:

http://www.registryonwindows.com/registry-security-2.php
0
 
aleghartConnect With a Mentor Commented:
c:\Program Files is not normally write-enabled for applications.  Newer applications write to AppData hidden folder.

Legacy apps write to files in the program directory.

Have you tried running it in compatibility mode for WinXP?  Right-click the program > Properties > Compatibility
0
 
lancerxeAuthor Commented:
Yes I have tried running with the compatibility and it still did not work.
I may have to rewrite the legacy application.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
aleghartCommented:
Or alter rights on that folder so users can write to it.  Not ideal, but it's an alternative.
0
 
wantabe2Connect With a Mentor Commented:
try turning user access controll off, reboot, then try running it again.
0
 
LeeTutorretiredCommented:
lancerxe, any feedback?
0
 
lancerxeAuthor Commented:
I was able to find the source code and debug the application and it generated this message.
Login failed for user: The user is not associated with a trusted  SQL sever connection.

The user id I'm using is sa and the password looks correct. This application worked fine in windows xp.

thanks
0
 
lancerxeAuthor Commented:
Added a new login and password and it still fails.
0
 
lancerxeAuthor Commented:
Ended up recompiling the application using VS 2005.

Thanks for everyone's help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.