cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Flexerauser
Level 2

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
Labels (1)
0 Kudos
(3) Replies
GetExp
Level 6

In which langauge the custom code is written? Java?
0 Kudos
Flexerauser
Level 2

yes it is written in Java language
0 Kudos
RobertDickau
Flexera Alumni

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...";
}
}
0 Kudos