Is it possible to embed scripts in the installer? Example implementation: I have zip (Windows platform) and cpgz (OS X platform) archives that contain a few thousand support files (binary and text format). My scripts will unpack and move these files to their respective installation targets. Can I do that with InstallBuilder?

asked 18 Nov '11, 15:15

lpjc1980's gravatar image

lpjc1980
1111
accept rate: 0%


You can pack your scripts as with other regular files. For example, you could use:

   <folder>
     <description>OS X Files and scripts</description>
     <destination>${installdir}</destination>
     <name>osxfiles</name>
     <platforms>osx</platforms>
     <distributionFileList>
       <distributionFile>
         <origin>/path/to/osx.cpgz</origin>
       </distributionFile>
       <distributionFile>
         <origin>/path/to/osx-script.sh</origin>
       </distributionFile>
     </distributionFileList>
   </folder>
   <folder>
     <description>Windows Files and scripts</description>
     <destination>${installdir}</destination>
     <name>windowsfiles</name>
     <platforms>windows</platforms>
     <distributionFileList>
       <distributionFile>
         <origin>/path/to/windows.zip</origin>
       </distributionFile>
       <distributionFile>
         <origin>/path/to/windows-script.bat</origin>
       </distributionFile>
     </distributionFileList>
   </folder>
link

answered 19 Nov '11, 13:35

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:

×3

Asked: 18 Nov '11, 15:15

Seen: 872 times

Last updated: 22 Nov '11, 08:07