Export/Convert Installer Data to Zip?

Comments

3 comments

  • Avatar
    ridruejo

    The installer can compress files as they are packed using either ZIP or LZMA algorithms. I am guessing what you are asking is whether there's a way to invoke a standalone installer so it simply extracts its contents without actually running any actions or displaying the UI. If so, it is not possible. What scenario do you have in mind that you would need this functionality for?

  • Avatar
    Christopher

    Why doesn't this feature exist? Why not at least a 'silent' install command switch?

    Anytime you need to batch install you either need to repack everything or use a sophisticated shell script to press 'ok' and 'next' and it still fills up the screen with dialogs.

    If BitRock is using ZIP and LZMA why don't they give 7-Zip access to extract like other installers do?

    How could so many people not need this feature?

  • Avatar
    juanjo

    If just executing in "silent" mode would work for you you can just run the installer in unattended mode:

    installer.exe --mode unattended
    

    If you want also to avoid the execution of actions and just unpack, you could enclose you actionLists in an actionGroup and check a configurable parameter:

    <project>
        ...
        <readyToInstallActionList>
           <actionGroup>
             <actionList> 
                ...
             </actionList>
             <ruleList>
                <isFalse value="${onlyExtract}"/>
             </ruleList>
    
           </actionGroup>
        </readyToInstallActionList>
        <postInstallationActionList>
            <exit>
              <ruleList>
                <isTrue value="${onlyExtract}"/>
              </ruleList> 
            </exit>
            ...
        </postInstallationActionList>
        <parameterList>
           <booleanParameter name="onlyExtract" value="0" ask="0"/>
        </parameterList>
        ...
    </project>
    

Please sign in to leave a comment.