PDA

View Full Version : How to add custom panel/dialog 5.5



mslama
09-01-2005, 08:37 AM
I have custom panel, I registered it using Add-In Manager but my panel does not appear in Dialog list after pressing Insert in Sequence. This way worked fine in IS MP 5. I did not find any additional trick in docs. My custom panel is subclass of TextDisplayPanel. (I do not have my custom BeanInfo class but I suppose it should use it from superclass. I can add it by editing project file (uip) directly as I have this panel already included in other project. This works fine ie. it means my custom panel is registered properly.

I created corresponding BeanInfo class according to help but it does not help. Still I do not see any way how to add my custom bean (wizard panel) to installation sequence - it is missing in in list of available dialogs when pressing Insert. It works fine with my custom wizard action - I registered it and then it appears in list of available actions after I press Insert -> Actions.

Any idea?

Thanks

brianl
09-07-2005, 12:07 PM
You can only add 5.x style custom wizard panels to a 5.x type project in InstallShield 11. To create a 5.x type project:

1. Select Options under the Tools menu.
2. On the General tab, check "Show 5.X Projects"
3. Create a new project. In the new project dialog, you will now have a tab for "ISMP 5.x" from which you can select to create 5.x type projects and add 5.x type custom panels.

mslama
09-08-2005, 02:03 AM
Thanks for info. When we migrated to IS11 I converted my IS MP 5.x projects to IS 11 projects as I plan to replace old IS MP 5.x panels by new IS 11 panels.

brianl
09-08-2005, 09:44 AM
Yes, when you migrate an MP 5.0x project into IS 11, you get a project which allows you to add both MP 5.0 style custom dialogs as well as custom dialogs from the dialog editor.

mslama
09-08-2005, 10:08 AM
But as I described above I do not see my custom panel in any available list when I press Insert. The same way works fine for custom wizard action. If I add my custom panel directly by editing project xml file it works fine. I see my panel in install sequence and I can build my project. Built installer works fine.

I just tried: If I create IS MP 5.x type project it works fine as you said above. With my converted project it does not work.
Test project header:
<isjeProject name="Test5" class="com.installshield.isje.product.TypicalProductProject" framework="com.installshield.isje.product.ProductWizardFramework" savedIn="11" compatibility="9">
Converted project header:
<isjeProject name="NetBeans AS Bundle Installer For Linux" class="com.installshield.isje.product.MixTypicalProject" framework="com.installshield.isje.product.ProductWizardFramework" savedIn="11" compatibility="9">

If I change project type of my converted project to TypicalProductProject it starts to work but I cannot use Dialog editor. It looks like it is not possible to work on old and new dialogs inside one project (even if I can have old panels in new project).

As I plan to redesign my custom panels to new dialog type in future I will leave project type of my converted projects MixTypicalProject.

Thanks

brianl
09-08-2005, 02:44 PM
I was able to verify that 5.x wizard panels can't be added to a mixed type project. At this point, I'm not sure if this should be classified as a bug or "by design", since the idea behind mixed project types are to migrate 5.x dialogs to the new(er) dialog editor type dialogs.