Solved

Problem in Windows 7

Posted on 2011-03-08
10
318 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:lancerxe
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 59

Accepted Solution

by:
LeeTutor earned 167 total points
ID: 35074438
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
 
LVL 32

Assisted Solution

by:aleghart
aleghart earned 167 total points
ID: 35074444
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
 

Author Comment

by:lancerxe
ID: 35074592
Yes I have tried running with the compatibility and it still did not work.
I may have to rewrite the legacy application.
0
 
LVL 32

Expert Comment

by:aleghart
ID: 35074680
Or alter rights on that folder so users can write to it.  Not ideal, but it's an alternative.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 15

Assisted Solution

by:wantabe2
wantabe2 earned 166 total points
ID: 35075833
try turning user access controll off, reboot, then try running it again.
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 35095024
lancerxe, any feedback?
0
 

Author Comment

by:lancerxe
ID: 35110006
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
 

Author Comment

by:lancerxe
ID: 35110264
Added a new login and password and it still fails.
0
 

Author Comment

by:lancerxe
ID: 35151442
Ended up recompiling the application using VS 2005.

Thanks for everyone's help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

747 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

11 Experts available now in Live!

Get 1:1 Help Now