Link to home
Start Free TrialLog in
Avatar of Simon
SimonFlag for Canada

asked on

'' is not a valid identifier when clicking on OK in Install Component form

Hi,

Has anyone had this problem before?
When I go to install component, I cannot remove a component due to ''' is not a valid identifier' error once I click OK button.
I get that error even if I don't touch anything.

Dragan
Avatar of esoftbg
esoftbg
Flag of Bulgaria image

> When I go to install component, I cannot remove a component due to ''' is not a valid identifier' error once I click OK button.
I get that error even if I don't touch anything.

1. Instalation of a component is a first step - there is no instance of the component to cause ''' is not a valid identifier' error;
2. After successful instalation of a component you may drop an instance on your Form. If there is an empty property of this instance it may cause this error. About the reason - it may be component that is developed badly, I don't know ....
Avatar of Simon

ASKER

Well, I'm not really installing any components.
I'm trying to remove one, so I went to Component -> Install Component and tried to remove the component from the search path. I deleted it, and clicked OK button to save, and then I get that error.
Then I tried to just get in there, and click OK without changing anything, and I get that error again...

Dragan
Avatar of Simon

ASKER

The components that I installed after installing Delphi are Developer Express and MyDAC components.
If anyone has these components installed, can you please check if you get the same error ?

Thanks,
Dragan
To remove the component from a package you need to uninstall the package, remove the component from the *.dpk file and install the package again.
I never have been edited the search path into "Install Component ...."
Also how you would remove a component, removing it's path from the Search path ?
Delphi stops to search this path and can not find the source code of all the components that may be are there ....
I think you did a mistake removing some path from the Search path .... It may be contains an empty path yet .... something like ";;"
May be you have
path1;;path2
It must to be
path1;path2
Avatar of Simon

ASKER

In the documentation for this specific component (SMImport), it says you have uninstall it, and then remove it from the search path.

I've checked with the other person in the company that only added the 2 components listed above, and he gets the same error when clicking on OK.
So, I'm pretty sure it's one of those 2...

Dragan
Avatar of Simon

ASKER

No I didn't... I thought that might be it too, but I double checked to make sure everything is OK...

Dragan
You need to remove the path from the Search path when you uninstall all the components from the package.
But when you uninstall only some of the components, I think, you need to keep the path into the Search path, not removed components to be accessed successfully ....

Emil
Avatar of Simon

ASKER

Well, I'm telling you what says in the documentation when I want to uninstall this package.
But it doesn't really matter, since that's not what's causing the error...

Dragan
ASKER CERTIFIED SOLUTION
Avatar of esoftbg
esoftbg
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Simon

ASKER

OK, the path I wanted to remove is removed, but I still get the error...

Dragan
May be the Search path is corrupted yet (I afraid).
Did you click on the button 'Clear Invalid Paths' ?
I hope it would repair the Search path !

Emil
Avatar of Simon

ASKER

Yeah I did that, and no go...

See, this problem didn't get there by me playing with the search path... It was there before I ever touched it.

Dragan
May be you have dropped on the Form of the current opened Application some components from the removed packages ?
This would cause the error you described I think ....
You need to remove these components from it ....
Avatar of Simon

ASKER

Nope... I get the error when I got no projects open.

Dragan
Sorry,
I am giving up yet  :-((
No more ideas in my brain ....

Emil.
Heres another idea...

Get a list of the files that it used to install...

manualy remove those files (deleting them)
run delphi again, it should give a warning that these parts are missing do you want to try and load again next time...
click no, and the try using the steps that are mentioned above again.

I once had a component which wouldnt uninstall either, so i remove it manualy... :P

Peace Scay7
Avatar of Simon

ASKER

I don't want to uninstall anything. I just want to know why do I get that error.

Dragan
Oh then why bother trying to uninstall it if you didnt want to uninstall it in the first place... ?
If the component works wen applying it to your apps, whats the prob.

The question was asked "I cannot remove a component due to" so i naturaly thought you wanted to remove it...

Anyways :P Another thing sometimes Delphi just screws up like any other natural program would, remove it completely and re-installing would 99% of the time fix anything. Other than that sorry man no idea why it would do that :P

Peace Scay7
Avatar of Simon

ASKER

Emil, I'll accept your answer since you did kind of answer my question of how to remove the component...

I'm still wondering about the error though.. so if someone has a solution, I'll post another question and award you the points.

Thanks,
Dragan