Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Problem in Windows 7

Posted on 2011-03-08
10
322 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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
 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

856 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