PDA

View Full Version : Custom bean jar



sicilian77
06-02-2003, 11:51 PM
Hi
I am new to installshield Multiplatform.I have to add a jar containing my custom beans.I have edited the ismp.cp file but the custom beans are not showing up in the available beans.

CharlesW
06-03-2003, 07:14 AM
In addition to adding the path to your JAR file which contains your custom beans, you also have to register the beans individually. To do this, go to the "tools" drop down menu and select bean gallery. Specify the package and class name when registering your bean, less the .class extension.

bimborock
01-07-2004, 03:09 AM
I have a related question to this post

I try to test sample included on ISMP5.0
samples\com\installshield\product\wizardbeans\DestinationPanel.java

I rename it to WizPanelDestination.java and change the class name of the code as well to WizPanelDestination and compile it with no problem

I register it and insert it to my project successfully

After building I run the installer but it skip the WizPanelDestination

What could have been wrong?

CharlesW
01-07-2004, 08:27 AM
You also need to extend the "impl" classes for the destination panel. Please see the attached example which extends the destination panel.

Note: You do not register the "impl" classes. Only the "base" class is registered (GenericDestinationPanel).

CharlesW
01-07-2004, 12:17 PM
Here is the attachment.

bimborock
01-07-2004, 10:43 PM
Thank you it works fine with me!


By the way the reason why I need to create a custom Destination Panel is

1) to add a filter for
; + ! @ # $ % ^ & ( ) = { } [ ] ' ,
characters

because they can not be uninstall if was included on destination directory

2) to avoid user entering C:myFolder

because the user is expecting to write on "myFolder" on drive C:
and the error state can not write on that folder



I hope InstallShield may address my reason in the future

Thanks again! :-)