Posted 13 October 2008 - 13:32
Hello Oliver,
thanks for your help, but i´m not really sure if this helps.
QUOTE |
1.) Go to the Setup Types view and add your feature to the type Minimal. This type is a default created with a setup project. It includes all features necessary for your application to work.
|
We don´t use the default setup types, but three setup types which we created ourself: Standard (which is similar to Minimal), Full and Custom. In all three of them the new feature is selected, but after an update the feature is not installed.
QUOTE |
2.) Specify your Crystal Reports feature in the property Required Features of a feature, which is always installed. You can do it in the Setup Design or Features view.
|
The new feature is required for using the reports in the application. But some of our customers have newer versions of Crystal installed (which we don´t support officially yet). For these we added the new feature, so Crystal can be installed optionally. Or in other words: this feature must not be always installed.
QUOTE |
3.) Select the feature in your script using the function FeatureSelectItem().
|
Maybe this is the most promising way. I know this function and i also thought about using it. But i don´t know, in which event in the script i should use it. It must be an event, which is only run in updatemode or at least i must know at runtime in the event, in which mode i am (so that i will call the FeatureSelectItem-funtion only in updatemode). I.e. in OnBegin the system variable UPDAETMODE ist always 0. The function OnUpdateUIBefore is neither added in the script by default (and so can´t be chosen by the pulldown menues) nor can i add it manually (message "function has no prototype declaration" (i hope this is correct, because i´m using the german version)). Does anybody have any ideas about that?
Best Regards
Jörg