[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

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
0
lancerxe
Asked:
lancerxe
  • 4
  • 2
  • 2
  • +1
3 Solutions
 
LeeTutorretiredCommented:
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
 
aleghartCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
aleghartCommented:
Or alter rights on that folder so users can write to it.  Not ideal, but it's an alternative.
0
 
wantabe2Commented:
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now