User decides not to install to Program Files - reg problem

Got a problem you cannot solve? Try here.
get101
Posts: 48
Joined: Wed May 16, 2007 1:58 am

User decides not to install to Program Files - reg problem

Postby get101 » Thu Jun 28, 2007 9:24 pm

Under Project properties, Target folder is:

Code: Select all

$PROGRAMFILES$\\Time Analysis


When I install the application to the suggested folder, it works fine. However, if I install to C:\\TIM2, then when the program runs at a certain point it gives me a Class not registered OLE Error.

I installed to a PC running Windows XP.

Why would it fail when the application is not installed to Program Files?

I tested for SUCCESS during registration and did not get any failures detected, yet it gives a Class not registered when running the program. If I uninstall and then install to the suggested location, it works fine. I tried this a few times and it is consistent - when installing to somewhere else other than Program Files it causes a problem.

Any suggestions on how to fix this?

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Sat Jun 30, 2007 7:06 am

At a guess you should check and make sure that you do not have any hard coded paths in any destination file that needs to be registered with the operating system.

To verify, install to the alternate location, open your app and verify that it fails with the calss not registered message, browse to the folder where you installed the app and manually register your dll's,ocx's etc.. If your app works after manually registering the files then you can manually register the same files in your script using Register Library.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com


Return to “Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 60 guests