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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Custom Code not working
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2009
07:58 PM
Custom Code not working
hi All,
I am using InstallAnywhere 2009 SP1 Enterprise edition, I tried creating a Custom class with some code, i put my class in a jar file and specify that location in "Path" and the name of the class file in "class". but when i run it, it seems its not getting inside the custom code 😞 .
Is there any way by which we can debug the custom code that whether it is getting inside the code or not?
If anybody has any idea please let me know..thanks in advance for help!
Ashish
I am using InstallAnywhere 2009 SP1 Enterprise edition, I tried creating a Custom class with some code, i put my class in a jar file and specify that location in "Path" and the name of the class file in "class". but when i run it, it seems its not getting inside the custom code 😞 .
Is there any way by which we can debug the custom code that whether it is getting inside the code or not?
If anybody has any idea please let me know..thanks in advance for help!
Ashish
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
04:01 AM
In which langauge the custom code is written? Java?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
05:12 PM
yes it is written in Java language
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 04, 2009
06:00 PM
As a sanity check, does code calling JOptionPane.showMessageDialog work? Something like this, perhaps:
import com.zerog.ia.api.pub.*;
import javax.swing.*;
public class FirstCustomCodeAction extends CustomCodeAction
{
public void install(InstallerProxy ip)
{
JOptionPane.showMessageDialog(null,
"Greetings from FirstCustomCodeAction!");
}
public void uninstall(UninstallerProxy up)
{
// do nothing during uninstallation
}
public String getInstallStatusMessage( )
{
return "Installing FirstCustomCodeAction...";
}
public String getUninstallStatusMessage( )
{
return "Uninstalling FirstCustomCodeAction...";
}
}
![](/skins/images/7DF1852B2C95702E61A73F170B191DAC/responsive_peak/images/icon_anonymous_message.png)