Quantcast
Channel: Support forum for BitRock InstallBuilder Multiplatform Installer - latest questions
Viewing all 1727 articles
Browse latest View live

Error running script on final page

$
0
0

On final page I have the following action: <runprogram> <program>${installdir}bin/cli/my_script</program> </runprogram>

On some sites that use automounter, they get error during the attempt to run this script: /.automounter/path/...../bin/cli/my_script. I suspect that the problem is related to the fact that somehow installdir is being expanded. The user specifies /vend/Paradigm but eventually, during install the path is altered. Is it possible to avoid this expansion? It also creates incorrect values of env var that are based on installdir setting.


choiceParameter shouldn't show the unselected choices in grayed-out text

$
0
0

The choiceParameter shows the unselected choices in grayed-out text. The grayed-out text usually means disabled (not selectable). Can you change it to show them as same text/font as the selected ones?

Why MAC Installers have more size?

$
0
0

Hello,

I have created installers for a program with same files in Windows and MAC. But the MAC installer has twice or more the size than the Windows installer. This is like with all the MAC installers. Why is that? The installer size is much more than the original files?

Is it possible to use a variable for the <platforms> setting in a component's folder?

$
0
0

I have a large project running on windows, osx and linux that must be built in several flavours that share most of the components.

Amongst other flavours for platform specific download installers there are two cd rom installers to be built:

  • One cd rom multiplatform network installer that should include and install files for all platforms on the target machine
  • And there is another cd rom installer that shall only include the windows and osx platforms and should install files only for the target machine's platform.

So I tried to set the <platforms> tag in the component's <folder> not to a fixed value like "windows" or "osx" but used variables like ${platform_windows} and ${platform_osx} which I define in <prebuildActionList>.

For example for the single platform installer build I use

<setInstallerVariable name="platform_windows" value="windows"/>

for the multiplatform network installer build I use

<setInstallerVariable name="platform_windows" value="all"/>

This way I thought I'd achieve that the platform files are included dependent on the setting of the variables for the different build types.

However folders having set this variable <platforms> setting are not included in any build at all. The variables are set correctly before the prebuild check is executed as you can see from a verbose build where I've written the variable values to the console.

[  0%] Executing pre build actions
[  0%] Checking output directory
platform_name=cdrom
platform_linux=linux linux-x64
platform_osx=osx 
platform_windows=windows 
[  0%] Prebuild check
[  0%] Copying product files

So my question is if it possible to use a variable for this setting? The InstallBuilder Manual does not say it is not possible.

linux files not packaged despite section present

$
0
0

I have the following contents for the xml file

<folderList>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfiles</name>
                <platforms>all</platforms>
                <distributionFileList>
                    <distributionDirectory>
                        <origin>dir1</origin>
                    </distributionDirectory>
                    <distributionDirectory>
                        <origin>dir2</origin>
                    </distributionDirectory>
                    <distributionDirectory>
                        <origin>dir3</origin>
                    </distributionDirectory>
                    <distributionDirectory>
                        <origin>dir4</origin>
                    </distributionDirectory>
                </distributionFileList>
            </folder>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfileslinux</name>
                <platforms>linux</platforms>
            </folder>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfileswindows</name>
                <platforms>windows</platforms>
            </folder>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfilesosx</name>
                <platforms>osx</platforms>
            </folder>
        </folderList>

Now, it turns out that dir3 and dir4 should be packaged only on linux, so I did

<folderList>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfiles</name>
                <platforms>all</platforms>
                <distributionFileList>
                    <distributionDirectory>
                        <origin>dir1</origin>
                    </distributionDirectory>
                    <distributionDirectory>
                        <origin>dir2</origin>
                    </distributionDirectory>
                </distributionFileList>
            </folder>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfileslinux</name>
                <platforms>linux</platforms>
                <distributionFileList>
                    <distributionDirectory>
                        <origin>dir3</origin>
                    </distributionDirectory>
                    <distributionDirectory>
                        <origin>dir4</origin>
                    </distributionDirectory>
                </distributionFileList>
            </folder>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfileswindows</name>
                <platforms>windows</platforms>
            </folder>
            <folder>
                <description>Program Files</description>
                <destination>${installdir}</destination>
                <name>programfilesosx</name>
                <platforms>osx</platforms>
            </folder>
        </folderList>

assuming that on linux I would get dir1,dir2,dir3,dir4, and on windows dir1,dir2. Unfortunately, on linux I obtained only dir1,dir2. This is strange: it seems like the linux machines (a centos 5.9 and an ubuntu 12.04) are not recognized as such, so it uses "all". If I got dir3, dir4, it would mean there's no implicit fallback to the "all" after the "linux" section, but this is not the case.

I am using Version 8.6.0 (2013-06-26).

Start Menu Shortcuts and Upgrade Mode

$
0
0

When using upgrademode and selecting a component that was previously not selected, it seems like the start menu shortcut for the newly selected is not created. Is this a bug? And if not how is this supposed to work? Let's say you have a program with an optional editor which needs a start menu shortcut and you want to be able to add or remove that optional editor during upgrademode of the installer.

Publisher field in Windows Installer

$
0
0

When building an installer for Windows, the publisher field does not seem to be set.

I've set the <vendor> project property but this is not used:

Screenshot

Please advise.

If it is important, I'm installing on Windows 7, 64 bit.

Running an MSI as part of my installer - Exit code: 1639

$
0
0

I spent most of today trying to work out why my MSI isn't being executed correctly. I kept getting Exit Code 1693 - ERROR_INVALID_COMMAND_LINE without any description or log of what was happening.

<project>
  <componentList>
    <componentGroup>
      <componentList>
        <component>
          <folderList>
            <folder>
              <actionList>
                <runProgram>
                  <programArguments>/qb /i "${tmpdir.dos}\ToolInstaller.x86_64.msi" /lv "${tmpdir.dos}\ToolInstaller.x86_64.log" INSTALLDIR="${installdir}"</programArguments>
                  <progressText>Installing External Tool</progressText>
                  <program>msiexec</program>
                </runProgram>
              </actionList>

By process of elimination I narrowed it down to the INSTALLDIR argument. Turns out it's because it can't cope with the quoting or spaces. Using .dos on the parameter name and removing the quotes resolved it:

<programArguments>/qb /i "${tmpdir.dos}\ToolInstaller.x86_64.msi" /lv "${tmpdir.dos}\ToolInstaller.x86_64.log" INSTALLDIR=${installdir}</programArguments>

Hope this helps someone and saves them the MSI pain that I've experienced today!


Silently Fail Validation

$
0
0

Can I fail a validation without showing an error message? I have a question dialog asking the user if he wants to ignore a connection error or not in a validation actionlist and depending on the answer I want to reshow the page (throw error to fail validation) or continue (don't show an error). When I throw an error there is a message box shown, which looks ugly because the user just answered the question in a dialog.

How do I prevent showMessageOnError showing messages in unattended mode?

$
0
0

Hi, I would like an error message to pop up when a runprogram action fails in GUI mode, but the same error message pops up in unattended mode. How do I turn this off? thanks!

Keep icon on dock on Mac OS X

$
0
0

Hi,

We create a java launcher for Mac OS X with Bitrock Installbuilder and add an icon to it by setting osxApplicationBundleIcon. When the application is started the icon is shown on the dock for a few seconds, and is then replaced by the Java icon. Is there a way to make our own icon stay on the dock (and preferably not show the Java icon) while the program is running?

Error building deb files

$
0
0

I am trying o build a debian installer with install builder and I keep getting this error:

Error building project

After running the build again with the --verbose flag I found that it is crashing in the Post build action

[100%] Executing post build actions

Mac OS application shortcut on the Dock (Part 2)

$
0
0

Hello,

First read the already solved question in the below link,

http://answers.bitrock.com/questions/2640/mac-os-application-shortcut-on-the-dock

The idea here is when the installer is finished installing it will set the new program's icon on the Dock. It works fine. In order for the newly added Dock icon to appear the Dock needs to restart. This is fine too. But when the Dock is restarted is maximizing all the minimized (other) programs.

How to prevent this when the Dock is restarted? Or how to make the icon appear without restarting the Dock?

Windows 8 problem

$
0
0

I created a installer that will write the required files in Program files folder and then install Python. It is working fine in Windows 7.

But, in windows 8 it is not working unless "Run as administrator" option is provided. The error when run without providing that option is "Cannot write to Program files (x86)".

I want to know what are the UAC policy changes in windows 8 that is making my installer fail when run without "Run as administrator" option.

PS: I provided "asInvoker" as the required elevation level during installer creation.

MAC OS - Is there a way to close a Java program?

$
0
0

Hello,

Is there a way to force quit a running Java application during un-installation in MAC OS?


change permission for Linux installation log file

$
0
0

I would like to change the permissions on the installation log file. I have added the following under <postinstallationactionlist> but it does not change the permission of the file.

<changepermissions> <files>${installer_installation_log}</files> <permissions>744</permissions> </changepermissions>

I imagine the installer log is the last file written during the install. How can I change the permission on it.

Thanks -Jon

How do I specify a different default installation directory for Unix and Windows?

$
0
0

For example: What should I do if I want to set in Unix a different default installation directory than the one used in Windows?

Installing Mono on Linux and Solaris

$
0
0

I'm planning to run a .NET application using Mono on Linux (SLES, RHEL, CentOS and Ubuntu) and Solaris (x86 and SPARC) systems. This works. But where this really gets messy is deployment/installation.

Does InstallBuilder have any built-in functionality to support Mono as a dependency on multiple platforms, or is there any good way to handle this?

${system_temp_directory} sometimes does not have write permission

$
0
0

During my install I create a folder and then place an executable in the system_temp_directory. I have some users reporting that on specific windows's PC's, sometimes this executable does not get placed. The folder is always created, but the executable is not copied in. The user will try the same process on a different windows PC and it works. Is there any case where this would fail? User's have admin rights when running the installer.

Here's how I'm doing this:

<createdirectory> <path>${system_temp_directory}/myTempFolder${serial_timestamp}</path> </createdirectory>

<unpackfile> <component>default</component> <destination>${system_temp_directory}/myTempFolder${serial_timestamp}/test.exe</destination> <folder>programfilesWIN</folder> <origin>test.exe</origin> </unpackfile>

Footer shows "BitRockInstaller", Can i hide the text.

$
0
0

Installer shows "BitRockInstaller" text when user runs exe, can I hide the text.

Viewing all 1727 articles
Browse latest View live