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

How can I read the installer name during installation?

$
0
0

My requirement is to read the installer name during installation then extract some parameter string from name and pass these parameter on application launch. This installer file name is not available in installerFilename variable as installer name will be changed later.

For example, I have an installer MyAppInstaller.exe and I changed the name manually to MyApp[appkey-100&domain-domainName]Installer.exe. I want to read parameters appkey = 100 and domain = domainName during installation so that I can pass them on launch of MyApp.exe. Is this feasible with InstallBuilder?


fileParameter is not showing a browser

$
0
0

In Linux on xwindows graphical mode, fileParameter is not showing a browser to locate a file (in this case a python install). Is this because I'm using xwindows?

alt text

<project>
  <parameterList>
    <parameterGroup>
      <description>parameter_python_install.description</description>
      <insertBefore>components</insertBefore>
      <title>Python Install</title>
      <orientation>vertical</orientation>
      <explanation>Is Python version 2 installed this machine?</explanation>
      <value/>
      <cliOptionShow>0</cliOptionShow>
      <ask>1</ask>
      <ruleEvaluationLogic>and</ruleEvaluationLogic>
      <name>python_install_group</name>
      <parameterList>
        <booleanParameterGroup>
          <orientation>vertical</orientation>
          <value>0</value>
          <name>pythoninstalled</name>
          <cliOptionShow>1</cliOptionShow>
          <validationType>always</validationType>
          <ask>1</ask>
          <ruleEvaluationLogic>and</ruleEvaluationLogic>
          <description>Python v2 installed</description>
          <parameterList>
            <fileParameter>
              <description>Location of Python install</description>
              <allowEmptyValue>1</allowEmptyValue>
              <width>55</width>
              <default>${pythonpath_default}</default>
              <mustExist>1</mustExist>
              <explanation>Locate a Python v2 install on this machine</explanation>
              <value/>
              <osxBundlesAreFiles>0</osxBundlesAreFiles>
              <cliOptionName>pythonpath</cliOptionName>
              <cliOptionShow>1</cliOptionShow>
              <ask>yes</ask>
              <mustBeWritable>0</mustBeWritable>
              <ruleEvaluationLogic>and</ruleEvaluationLogic>
              <name>pythonpath</name>
            </fileParameter>
            <labelParameter>
              <description>If you need to download Python, please use this link:</description>
                ...
          </parameterList>
        </booleanParameterGroup>
      </parameterList>
      <postShowPageActionList>
        ...
      </postShowPageActionList>
      <preShowPageActionList>
        ...
      </preShowPageActionList>
      <validationActionList>
        ...
      </validationActionList>
    </parameterGroup>
  </parameterList>

Error copying file - file does not exist

$
0
0

I'm getting the following error message whilst doing an install.

alt text

What's being unpacked is 2 .zip files and 2 .tar.gz files. I don't want them extracted, just placed in the file system.

All the rest of my files are being extracted as expected, it's just these files that are causing an issue.

They are selected, not by the user directly but by readyToInstallActionList if other components are selected as shown below. It is a downloadable component and seems to be downloaded correctly.

<readyToInstallActionList>
    <componentSelection>
      <ruleEvaluationLogic>or</ruleEvaluationLogic>
      <select>flextools</select>
      <ruleList>
        <componentTest>
          <negate>0</negate>
          <name>component1</name>
          <logic>selected</logic>
        </componentTest>
        <componentTest>
          <negate>0</negate>
          <name>component2</name>
          <logic>selected</logic>
        </componentTest>
      </ruleList>
    </componentSelection>
    <componentSelection>
      <deselect>flextools</deselect>
      <ruleEvaluationLogic>or</ruleEvaluationLogic>
      <ruleList>
        <componentTest>
          <negate>0</negate>
          <name>component1_parent_component</name>
          <logic>not_selected</logic>
        </componentTest>
      </ruleList>
    </componentSelection>
  </readyToInstallActionList>

The debugger gives no additional information.

Using strace on Linux, I can see:

lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/sraby", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/home/sraby/.local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install/Internals", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install/Internals/flex-tools", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server/flexlm_tools_windows_32_bit.zip", {st_mode=S_IFREG|0664, st_size=2415286, ...}) = 0
lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/sraby", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat("/home/sraby/.local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install/Internals", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/sraby/.local/opt/install/Internals/flex-tools", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
access("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server", W_OK) = 0
stat("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server/flexlm_tools_windows_32_bit.zip", {st_mode=S_IFREG|0664, st_size=2415286, ...}) = 0
stat("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server/flexlm_tools_windows_32_bit.zip", {st_mode=S_IFREG|0664, st_size=2415286, ...}) = 0
chmod("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server/flexlm_tools_windows_32_bit.zip", 0664) = 0
stat("/home/sraby/.local/opt/install/Internals/flex-tools/custom-flex-server/flexlm_tools_windows_32_bit.zip", {st_mode=S_IFREG|0664, st_size=2415286, ...}) = 0
access("/media/sf_Shared/XXXSDK/BitrockInstallbuilder/Output/XXXSDKPro-0.1.1-linux-x64-installer.run/dist/flextools/flextools_folder/custom-flex-server", F_OK) = -1 ENOTDIR (Not a directory)

This looks like an issue with the installer as I can;t see why it would be trying to access /dist directory on the installer. No other component is accessed in this way.

The component is setup as follows:

<project>
  <componentList>
    <component>
      <requiredSize>0</requiredSize>
      <name>flextools</name>
      <show>0</show>
      <selected>0</selected>
      <shouldPackRuleEvaluationLogic>and</shouldPackRuleEvaluationLogic>
      <downloadable>1</downloadable>
      <canBeEdited>1</canBeEdited>
      <description>Flexera License Server Tools</description>
      <folderList>
        <folder>
          <description>Flexera License Tools</description>
          <destination>${basedir}/Internals/flex-tools</destination>
          <shouldPackRuleEvaluationLogic>and</shouldPackRuleEvaluationLogic>
          <platforms>all</platforms>
          <ruleEvaluationLogic>and</ruleEvaluationLogic>
          <name>flextools_folder</name>
          <distributionFileList>
            <distributionDirectory>
              <origin>/home/sraby/XXXSDK/installer/Components/staging/0.1.1/installer/flextools/*</origin>
              <includeFiles>*</includeFiles>
              <allowWildcards>1</allowWildcards>
              <filterEvaluationLogic>and</filterEvaluationLogic>
            </distributionDirectory>
          </distributionFileList>
        </folder>
      </folderList>
    </component>
  </componentList>

system vs. user updates for addEnvironmentVariable and addDirectoryToPath

$
0
0

My installer detects if it was run as root/admin or normal user and then sets <addEnvironmentVariable> and <addEnvironmentVariable> to update the <scope> to system or user variables. On MS Windows, the installed updates registry values as I would expect, in the HKEY_CURRENT_USER\Environment\ for users and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment\ for system updates.

On Linux, updates to <scope> with either system and user values change the $HOME/.bashrc and $HOME/.profile files. In effect, does this mean there is no difference between <scope> system/user values on Linux? To make a difference, would it be better to update the respective /etc/bash.bashrc and /etc/profile files when <scope> is system?

code signing installer on Mac OSX 10.9.5

$
0
0

Codesigning on Mac OSX has changed for 10.9.5 and 10.10

Now when we attempt to codesign the installer application I get the following:

codesign -f -s "My Cert" --deep "Application Installer.app"

Application Installer.app: replacing existing signature

Application Installer.app: main executable failed strict validation

In subcomponent: ./Application Installer.app/Contents/MacOS/osx-intel

When I try and sign just that component I get:

codesign -f -s "My Cert" "Application Installer.app/Contents/MacOS/osx-intel"

Application Installer.app/Contents/MacOS/osx-intel: replacing existing signature

Application Installer.app/Contents/MacOS/osx-intel: main executable failed strict validation

I've used InstallBuilder 8.2, 8.6 and 9.0.

I've tried everything I can think of, the osxsigner tool in the tools folder only signs it with a V1 cert, the new cert is V2.

Any help would be appreciated.

Problem downloading components to Windows 7

$
0
0

We are testing the installer and finding that on a fresh VM install of Windows 7 Professional 64 bit (from MSDN - en_windows_7_professional_x64_dvd_x15-65805.iso) we are unable to download any components.

alt text

The files are being served from "Apache/2.2.15 (CentOS) Server at Port 80". I check the logs and there are not requests.

The files can be downloaded manually if I put the URL from the log file into Internet Explorer (on the same box) - so connection to the web server is not the issue.

We've tried upgrading to SP1, turning off firewall, UAC, Defender etc but nothing helps.

Can't delete file in the uninstall

$
0
0

One exe file just cant be deleted. I tried deleting it specifically, tried to delete the entire folder via . , tried to rename it and then delete but the rename doesnt work. The file is not in use because I stop all processes in the preuninstall and delete the file in the postuninstall. After the uninstall finish I can delete the file in windows without any problem. This is a windows installer. Is there something else I can try? some kind of post all script to run? other ideas? Thanks

preUninstallationActionList not executing on uninstall

$
0
0

I have my preUninstallationActionList rules setup as follows, but they are not being run as part of the uninstaller.

I put the same rules in initializationActionList and they work fine there for the installer.

As the debugger is not available for uninstalls - please help!

<preUninstallationActionList>
    <throwError>
      <text>my-application.exe is running, please exit before uninstalling this product.</text>
      <abortOnError>1</abortOnError>
      <ruleList>
        <processTest>
          <negate>0</negate>
          <name>my-application.exe</name>
          <logic>is_running</logic>
        </processTest>
      </ruleList>
    </throwError>

Choose which files to uninstall on uninstaller runtime

$
0
0

Can I use a rule list on removeFilesFromUninstaller such that a dialogue can be shown "Do you want to remove user files as part of the uninstallation?" and if the user chooses 'Yes' the files are added, otherwise they are not removed?

I tried using the following but on doing further reading, I suspect this may be invalid as the file list is already chosen.

Please advise the correct way to do this?

<preUninstallationActionList>
    <actionGroup>
      <actionList>
        <showQuestion>
          <default>no</default>
          <text>Do you want to remove user files as part of the uninstallation?</text>
          <variable>delete_user_files</variable>
          <title>User Files</title>
        </showQuestion>
        <if>
          <conditionRuleEvaluationLogic>and</conditionRuleEvaluationLogic>
          <actionList>
            <removeFilesFromUninstaller>
              <files>${userdir}/*/*/*/*/*/*</files>
              <matchHiddenFiles>1</matchHiddenFiles>
            </removeFilesFromUninstaller>
          </actionList>
          <conditionRuleList>
            <compareText>
              <negate>0</negate>
              <text>delete_user_files</text>
              <nocase>0</nocase>
              <value>no</value>
              <logic>equals</logic>
            </compareText>
          </conditionRuleList>
          <elseActionList>
            <addDirectoriesToUninstaller>
              <files>${userdir}</files>
              <matchHiddenFiles>1</matchHiddenFiles>
              <addContents>1</addContents>
            </addDirectoriesToUninstaller>
          </elseActionList>
        </if>
      </actionList>
      <ruleList>
        <ruleGroup>
          <negate>0</negate>
          <ruleEvaluationLogic>and</ruleEvaluationLogic>
          <ruleList>
            <fileTest>
              <negate>0</negate>
              <path>${userdir}</path>
              <condition>exists</condition>
            </fileTest>
            <fileTest>
              <negate>0</negate>
              <path>${userdir}</path>
              <condition>is_directory</condition>
            </fileTest>
          </ruleList>
        </ruleGroup>
      </ruleList>
    </actionGroup>
  </preUninstallationActionList>
</project>

Feature request: command timeout

$
0
0

When using runProgram I would like to add a timeout.

Our installer calls and external installer that occasionally hangs (usually waiting for user input). Whilst we are working to ensure the external installer behaves - I suggest it would be a useful feature to set a time limit on external programs as an option in BitRock.

Unpacking lots of small files seemes quicker with zip compression

$
0
0

One of our packages contains LOTS of small files and our perception is that using ultra-lzma compression, the install actually takes longer than using zip compression.

Do you have any observations on this?

How to remove the " Created with an evaluation version of BitRock InstallBuilder" tag on my example application installer, please help me.

$
0
0

How to remove the " Created with an evaluation version of BitRock InstallBuilder" tag on my example application installer, please help me.

im getting the " Created with an evaluation version of BitRock InstallBuilder" in red color on my example application installer is it possible to convert to black color..?

$
0
0

im getting the " Created with an evaluation version of BitRock InstallBuilder" in red color on my example application installer is it possible to convert to black color..?

Run script in installer

$
0
0

I am trying to run script:

<runProgram>
                <program>./ChangeService.bat</program>
                <programArguments></programArguments>
            </runProgram>

and the install keeps failing on this script. The script file exists in the same directory as the xml of the installer is. and I use relative paths to all other files. Can you detect what I did wrong? Thanks

Add dependency to Windows service

$
0
0

I tried to add dependency to my windows service in the Create Service action. I added in the Service Dependencies field the value "LanmanServer" and when I installed the service failed to start even though this service is up and running. Is there some known issue about this problem? Thanks


Uninstaller tile on windows 8 - when?

$
0
0

I have installed an application via bitrock installbuilder in Windows 8.1. There is currently no tile for the uninstaller appearing. But on an other windows 8 system some time ago, there was this uninstaller tile. Has Microsoft changed something with showing the applications uninstaller tiles?

Can I set the pop-up width of tag.

$
0
0

I want to wrap the text displayed in showInfo tag. Can I fix the width of this pop-up or any other solution to wrap the text to be shown to user as information.

mac osx unzip

$
0
0

I would like for the <unzip> action to NOT create a directory of the same name (minus the '.zip'). As you can see from the verbose output below, the zip file's name is created as a subdirectory of the destination.

My action:

<unzip> <destinationDirectory>${assembleDir}/pre</destinationDirectory> <zipFile>${preZipPath}</zipFile> </unzip>

The verbose output [ 0%] Executing pre build actions [ 0%] Checking output directory [ 0%] Prebuild check [ 1%] Copying product files [ 1%] Processing component Default Component [ 1%] Processing component pre zip distribution [ 1%] Adding /Users/dummy/projects/psm-pre/installer/build/assemble/pre [ 1%] Creating subdirectories structure for /Users/dummy/projects/psm-pre/installer/build/assemble/pre [ 2%] Creating directory psm-pre-0.5-b5 [ 4%] Creating directory psm-pre-0.5-b5/bin [ 5%] Creating directory psm-pre-0.5-b5/lib

How can I pipe information to a script when using runprogram?

$
0
0

Hi, I need to run something like this, using runProgram and nothing I'm doing seems to work: echo yes | myscript.sh

Thanks!

Supporting en_UK and en_US

$
0
0

Hello there,

I wish to support both UK English and US English in my installer - not that installer strings will be very different but I am more interested in user preferred language which can be used further later. Currently, I do not see any support for en_UK and en_US separately, all I can see is English.

Any inputs on how should I go about supporting the locales will be highly appreciated :-)

Thanks!

Viewing all 1727 articles
Browse latest View live