[izpack-users] verifier after install path selection needed

Bartz, Klaus Klaus.Bartz at coi.de
Fri Aug 10 09:28:38 CEST 2007


Hi Jürgen,
use a custom panel like

public class ExistentTargetPanel extends TargetPanel
{

    private static final String[] testFiles = new String[] { "server" + File.separator + "lib"
        + File.separator + "my.jar"};


    /**
     * @param parent
     * @param idata
     */
    public ExistentTargetPanel(InstallerFrame parent, InstallData idata)
    {
        super(parent, idata);
        setMustExist(true);
        setExistFiles(ExistentTargetPanel.testFiles);
    }

}

A more complex "example" is JDKPathPanel.
How to create the jar file look into %IZ_HOME%\src\build.xml at the JDKPathPanel entries.
Modifying the label texts is simple, but relative implicit. Look in and %IZ_HOME%\bin\langpacks\installer\<iso3>.xml (e.g. at JDKPathPanel.intro)
You can add the entries

ExistentTargetPanel.intro
ExistentTargetPanel.info
ExistentTargetPanel.extendedIntro

If declared, the will be used automatically.

Cheers

Klaus


> -----Original Message-----
> From: izpack-users-bounces at lists.berlios.de 
> [mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of 
> Bernd Jürgens
> Sent: Thursday, August 09, 2007 7:44 PM
> To: izpack-users at lists.berlios.de
> Subject: [izpack-users] verifier after install path selection needed
> 
> 
> Hello,
> 
> I need to verify the $INSTALL_PATH, since
> this the files for this project need to be 
> installed into an existing directory structure.
> 
> So I need to verify that the parents of 
> $INSTALL_PATH contain some known files. 
> 
> I tried for some hours now, but my jar
> never got called, 
> "java -DTRACE=true -DSTACKTRACE=true -jar install.jar"
> shows no hints of izPack trying to access it.
> 
> Has anyone a working example of a verifier
> that gets called after install path selection?
> 
> Thanks a lot,
> 
> Bernd
> 
> 
> 
> 
> -- install.xml --
> <jar src="proIzPack.jar" stage="install"/>
> 
> <resources>
>         <res id="InfoPanel.info" src="Readme.txt"/>
> 	<res id="TargetPanel.dir" src="TargetDir.txt" />
> 	<res id="TargetPanel.Spec.xml" 
> src="TargetPanel.Spec.xml"/> </resources>
> 
> -- TargetPanel.Spec.xml --
> <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> 
> <processing>
> 	<job name="VerifyPath">
> 	    <logfiledir>$INSTALL_PATH</logfiledir>
> <!---		<os family="windows" /> -->
> 			<executeclass 
> name="com.promedico.izpack.CheckPath">
> 				<args>
> 					<arg value="bla"/>
> 				</args>
> 			</executeclass>
> <!--		</os> -->
> 	</job>
> </processing>
> 
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de 
> https://lists.berlios.de/mailman/listinfo/izpack-users
> 


More information about the izpack-users mailing list