How do you quickly (command line?) export the installer's data into a zip or another archive (ie .7z)?

I don't mean simply zipping up the archive, but exporting the archive's data that is to be outputted.

Can this be done with a standalone installer?

asked 18 Aug '12, 15:04

Christopher's gravatar image

Christopher
1112
accept rate: 0%


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?

link

answered 19 Aug '12, 08:51

ridruejo's gravatar image

ridruejo ♦♦
57238
accept rate: 27%

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?

link

answered 19 Aug '12, 09:05

Christopher's gravatar image

Christopher
1112
accept rate: 0%

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>
link

answered 19 Aug '12, 09:44

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×19
×13
×10
×4
×1
×1

Asked: 18 Aug '12, 15:04

Seen: 2,493 times

Last updated: 19 Aug '12, 09:44