How to use setInstallerVariableFromScriptOutput?

Comments

2 comments

  • Avatar
    juanjo

    The weird part is the installer resolving dir to /usr/bin/dir. Could you confirm that you are executing that on Windows?

    In addition, could you try executing:

    <setInstallerVariableFromScriptOutput>
        <exec>cmd</exec>
        <name>DB_INIT_SCRIPTS</name>
        <execArgs>/C dir /s /b</execArgs>
    </setInstallerVariableFromScriptOutput>
    
  • Avatar
    laiyongyong

    hi, i fix the issue using following xml code:

    <actionList>
        <setInstallerVariableFromScriptOutput>
            <exec>cmd</exec>
            <execArgs>/C dir /s /b </execArgs>
            <name>DB_INIT_SCRIPTS</name>
            <workingDirectory>${installdir.dos}/mysql/dbscripts/init/</workingDirectory>
        </setInstallerVariableFromScriptOutput>
        <foreach>
            <progressText>${msg(Installer.Progress.creatingTables.info)}</progressText>
            <values>${DB_INIT_SCRIPTS.escape_backslashes}</values>
            <variables>script</variables>
            <actionList>
                <showInfo>
                    <text>${script}</text>
                </showInfo>
            </actionList>
        </foreach>
    </actionList>
    

    i try many times until i saw the user guid "4.2 Modifier Suffixes". thanks anyway

Please sign in to leave a comment.