This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Custom actions not getting executed
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Mar 13, 2006
02:31 PM
Custom actions not getting executed
I am trying to add a custom event to my universal project. I have a jar file with my necessary classes but no matter what I try, the classes will not get executed in the installer. The IDE allows me to add them in the add-in manager without complaining and I can then add the custom wizard action in the sequences view. When running in debug mode, all I see is "skipping bean Wizard Bean Place Holder (bean2) because it could not be loaded". This warning, however, should not affect the execution of the class. I even tried putting this as the very first step in the event and I do not even see the text in debug mode.
public void execute(WizardBeanEvent event)
{
System.out.println("Executing...");
Any ideas how to get this to work or why it wouldn't be working properly?
public void execute(WizardBeanEvent event)
{
System.out.println("Executing...");
Any ideas how to get this to work or why it wouldn't be working properly?
(3) Replies
‎Mar 13, 2006
06:42 PM
ok so now yet a different problem.. still getting those weird errors once in a while.
Now I have found that if my CustomAction calls the constructor of another class then I get this:
An error occurred during wizard bean change notification:
java.lang.NoClassDefFoundError: com/mycompany/installer/wizard/action/SimpleMessageTest
The SimpleMessageTest.class file is built into the same jar as the class referencing it. There are no compile errors and there are no build errors from the IDE.
Any Ideas???????
Now I have found that if my CustomAction calls the constructor of another class then I get this:
An error occurred during wizard bean change notification:
java.lang.NoClassDefFoundError: com/mycompany/installer/wizard/action/SimpleMessageTest
The SimpleMessageTest.class file is built into the same jar as the class referencing it. There are no compile errors and there are no build errors from the IDE.
Any Ideas???????
‎May 23, 2006
05:44 AM
Hi,
I am facing the same problem..
Have you fixed it yet. Any solution would be appreciated.
thanks,
george.
I am facing the same problem..
Have you fixed it yet. Any solution would be appreciated.
thanks,
george.
rmackay wrote:
ok so now yet a different problem.. still getting those weird errors once in a while.
Now I have found that if my CustomAction calls the constructor of another class then I get this:
An error occurred during wizard bean change notification:
java.lang.NoClassDefFoundError: com/mycompany/installer/wizard/action/SimpleMessageTest
The SimpleMessageTest.class file is built into the same jar as the class referencing it. There are no compile errors and there are no build errors from the IDE.
Any Ideas???????
‎May 23, 2006
12:30 PM
yes this all has to do with how the jar is included in the archive. it needs to be added in the build method of your custom action. Try using one of the custom beans provided by InstallShield on their custom beans page and then work forward from there.