Hi, I've a mix of files that I'm trying to install, some in the Unix text mode and others in the DOS text mode. Is there a project-wide property that I can use to setup text mode of the installed files based on the destination platform? I understand there are "unix2dos" and "dos2unix" built-in actions, but that assumes I'm aware of which files are of which mode and where they can be found, which is not always possible in my case. Besides, I want to use any built-in feature to minimize overhead on account of conversions.

Thanks, Reddy

asked 22 Oct '12, 09:14

laxmireddy's gravatar image

laxmireddy
1202020
accept rate: 0%


InstallBuilder treats all files as binary and does not convert newline characters when unpacking the files.

If you do not want to use the built-in actions, and to avoid convertion by installer itself, it may be best to simply create two sets of files when building the installer - and package different files for Windows and different for Unix systems.

You can then use <preBuildActionList> and write a shell script that uses find and unix2dos and dos2unix shell commands to convert it.

link

answered 22 Oct '12, 09:34

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

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:

×2
×1

Asked: 22 Oct '12, 09:14

Seen: 721 times

Last updated: 22 Oct '12, 09:34