Page 1 of 1

Varible not defined: SELECTED error

Posted: Thu Apr 14, 2005 12:33 pm
by EricB
I am running InstallAware Express. I had a project that compiled and installed fine. I changed it so that the files for the project would be installed to $TARGETDIR$ rather than $PROGRAMFILES$, and now when I try to build the project, I get the error "Variable not defined: SELECTED".

How do I get rid of this error and get my install to build?

Thanks,

Eric

Posted: Thu Apr 14, 2005 1:48 pm
by EricB
I re-created the project from scratch, and all is working.

However, I would like to know the cause of this problem and how to fix it in case it pops up in the future.

Thanks,

Eric

Posted: Thu Apr 14, 2005 2:52 pm
by sinan
This happens when you create and then delete features using the visual view. There are some leftovers in the code view (which you unfortunately cannot edit with Express). Best workaround with this is to create new projects using the Project Wizard and finalize your feature structure in there.

Posted: Thu Apr 14, 2005 2:56 pm
by EricB
That is not a good "feature". Will this be fixed in the near future?

Thanks,

Eric

Posted: Fri Apr 15, 2005 3:29 am
by sinan
Yes, we're going to make SELECTED a pre-def variable to work around this issue.

Posted: Fri Apr 15, 2005 7:27 am
by EricB
That would be nice. I really don't like having to re-create my installs.

Thanks.

Eric

Posted: Fri Apr 15, 2005 5:31 pm
by sinan
You can use the Project Wizard to play around with your features - this will save you the frustration of having to start from scratch if you make frequent changes initially.