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

Changing Default Install Dir

$
0
0

I have default InstallDir set to be <default>${platform_install_prefix}/${folderLocation}</default> but when user change their InstallDir ( default install dir C:/Program), they loose the folder location..

for ex: Currently : InstallDir : C:/Program Files/xYZ/aBC/<file> but if user change it Installer Dir : D:/<files>

How can i append xYZ/aBC after the used have changed the default, so that i have directory consistency..

roahn


Installing on OSX as an .app and not regular directory

$
0
0

Hi,

I have a program written in ruby which i'm trying to get installed on osx. Currently I have a running installer, which creates upon installation a regular directory in the /Applications directory. I was wondering if and how could I instead have it created as an .app, and have the code/some of the code inside of it signed. At the moment only the packed code within the installer file is signed, but gets unsigned upon unpacking and installing.

Thanks.

Combine projects during packaging process

$
0
0

Hi,

I would like to know if there is an option to combine projects together. If I have list of files which I would like to pack as minor package using BITROCK and then use the output as an input to my major project. So when I build my major project it will take into this minor package.

The main reason for that is due to the fact that we are getting list of file from different groups in other sites in the world and we prefer that these group to pack them with bitrock instead sync them.

Thanks, Ronen

Can i somehow mark that component already installed?

$
0
0

I have main installer and additional installers, that stored optional plugins. When i want add this plugins from additional installer to main, i want somehow mark in main installer that component installed to provide correct work of allowAddRemoveComponents functionality. Is there any way or workarounds to do this?

I want to add multiple "files" to the addFilesToUninstaller block, what is the correct syntax?

$
0
0

I want to remove symlinks (on user's desktop) created during install when the user uninstalls. How do I specify multiple files? I tried the following, but it warns it's incorrect syntax:

<addFilesToUninstaller> 
 <files>${user_home_directory}/Desktop/ShortCut1</files>
 <files>${user_home_directory}/Desktop/ShortCut2</files>
 <files>${user_home_directory}/Desktop/ShortCut3</files>
 </addFilesToUninstaller>

Should it be

<files>${user_home_directory}/Desktop/ShortCut*</files>

or

<files>${user_home_directory}/Desktop/ShortCut1;${user_home_directory}/Desktop/ShortCut2</files>

Thanks

Substituting text in regular expression

$
0
0

Is this behaviour correct?

<initializationActionList>
    <setInstallerVariable name="foo" value="multiline
variable
value" persist="1"/>
    </initializationActionList>

    <preUninstallationActionList>
    <showInfo text="${foo}"/>

    <setInstallerVariableFromRegEx>
        <name>foo</name>
        <pattern>variable
value</pattern>
        <substitution>expr</substitution>
        <text>${foo}</text>
    </setInstallerVariableFromRegEx>

        <showInfo text="${foo}"/>
    </preUninstallationActionList>

Getting 2 time?

multiline
variable
value

Enabling Cancel Button During Uninstall

$
0
0

Hi,

I am trying to enable the cancel button, but looks like disbaled by default. How do we enable it.

Rohan

Directory exists and is writable check

$
0
0

Hi I want to verify that a directory parameter exists and is writable conditionnal to a boolean value. I did the following but it does not work:

<directoryParameter>
    <name>NetPath</name>
    <title>Network Path</title>
    <description>Network Path</description>
    <explanation></explanation>
    <value>${IniNetPath}</value>
    <default>g:\</default>
    <allowEmptyValue>0</allowEmptyValue>
    <mustBeWritable>0</mustBeWritable>
    <mustExist>0</mustExist>
    <width>100</width>
    <validationActionList>
        <throwError>
            <explanation>Directory ${NetPath} is not writable.</explanation>
            <text>Directory is not writable</text>
            <ruleList>
                <compareValues>
                    <logic>equals</logic>
                    <value1>${NetSetups}</value1>
                    <value2>1</value2>
                </compareValues>
                <fileTest>
                    <condition>not_writable</condition>
                    <path>${NetPath}</path>
                </fileTest>
            </ruleList>
        </throwError>
    </validationActionList>
</directoryParameter>

Knowing if a CLI option was given

$
0
0

Our installer saves the value of a particular parameter in a file. The default value for the parameter is only used at new install. At upgrade in GUI mode, the saved value is used to initialise the parameter, and in case the user changes the value some actions are performed. Now, to achieve this behaviour for unattended mode, I can’t come up with a solution without knowing whether the parameter is given in an --optionfile or on the command line or not. How can I do that, without requiring the user to state the option? Or am I overlooking something simpler?

Problems with runProgram under InstallBuilder 16

$
0
0

We recently moved from InstallBuilder 15 to InstallBuilder 16 ("BitRock InstallBuilder for Windows 16.1.0", to be exact).

After that running sub-installers was broken on two occasions. Both sub-installers were invoked using the <runProgram> action. One concerned the JDK installer, one an invocation of msiexec.

Here is the msiexec invocation:

<runProgram>
  <program>msiexec</program>
  <programArguments>/passive /norestart /i "my msi file.msi" ADDLOCAL=Foo /lv "${installdir.dos}\foo\msi.log" INSTALLDIR="${installdir.dos}\foo\installation"</programArguments>
</runProgram>

This was the Java installer invocation:

<runProgram>
    <program>${installdir}/jdk-8u73-windows-x64.exe</program>
    <programArguments>/s INSTALLDIR="${INSTALLDIR}\jdk\${javaVersion}" /L "${INSTALLDIR}\jdk\log"</programArguments>
</runProgram>

Both had suitable values for the installer variables. Both ran fine under InstallBuilder 15. Both started to fail when we upgraded to InstallBuilder 16. In both cases the program being run had difficulties with the command line parsing. The Java installer threw up with something like "error in configuration file: line 1", and msiexec opened the help dialog for its command line arguments. Both could be fixed by putting the entire invocation in a Windows .cmd file (via <writeFile>) and calling this instead.

Has something changed between InstallBuilder 15 and 16 in the way subprocesses are invoked, or arguments passed to them? Is there a better way to resolve my issues (e.g. better quoting)?

Bitrock does not place folders in Start Menu

$
0
0

I have been using Bitrock for a good number of years and this is the first time I have problems with it. For some reason the installer does not place the folders I specify in the Start Menu. The strangest thing is that this only happens to my computer. Worst yet is that it worked a while back ago and all of a sudden stopped working. The strange this is that even the "Basic Demo Project" does not place folders in the Start Menu.

Dynamic JVM parameters at launch time

$
0
0

Hi

I'm using BitRock to install and run JavaFX applications. I have a number of JVM parameters set within the BitRock config file - this works fine.

I need to add a JVM parameter based on user preferences, so ideally the launcher would be able to pick up additional parameters from a file if it exists.

How would I go about doing this - or is there a better way to approach the problem.

Thanks for your help

OSX - application name show as ${java_launcher_binary_name}

$
0
0

Hi

I'm using installbuilder to create a DMG install file for distribution on Macs. My application is Java and a java launcher is correctly created.

My problem is that the CFBundleName is set to ${java_launcher_binary_name} in the Info.plist file. It's as if the variable has either not been initialised or is not being expanded.

I could modify the .plist after installation, but I'd rather not as I have had a few problems where users were unable to launch the application.

How can I make installbuilder put the expanded name (or any other name I choose) into CFBundleName?

Other than this, the automatic DMG/signing seems to work perfectly!

Thanks

Install log in Mac

$
0
0

We have an Product.app which we drag and drop to /Applications folder in Mac, does it operation get logged, as we dont see and logs in

/tmp/ or /{install_dir}/

where as in Windows its works fine. we are able to see logs in the {install_dir} based on this <installationlogfile>${installdir}/${project.shortName}-installLog.log</installationlogfile>

-rohan

Not Responding in Panel Title

$
0
0

Hello,

Occasionally, while running a <runprogram> action the installer panel will fade and display "Not Responding" in the title for several seconds before returning and continuing with the install. Any ideas what could be causing the "Not Responding" to occur? Is it OS related?

Thanks!


Dependency between steps

$
0
0

Hi,

I'm trying to create a Daemon (service) as part of the installation, and before creating the new one I'm deleting the previous one, and under the new one I check whether the previous has been deleted, and only then create it. I've tried first using the innate "Create Service" block of the installer, but when it checks whether the old Daemon exists, it seems to not delete fast enough and the creation step just gets skipped.. so I've changed it to instead cp a .plist file and launchctl load it.. but after the cp, if i do a rule in the launchctl command to check for the file's existence, it also doesn't see it - i assume because it doesn't wait for the cp to finish and just continues. I've solved the problem by putting a 5s wait between the cp and the launchctl (I've also noticed that in the Windows service deletion you can add a <delay> tag to wait for the deletion - why is there no such option for the OSX service tag?).

Is there a better way to do this? maybe tell one step to wait for the previous step to finish? or have a step wait for the program being run to actually run or finish running? since I can't really count on an arbitrary delay number, and I can't increase it to no end.

Thanks.

Customize installer label based on normal/upgrade path

$
0
0

We have a requirement of customizing the installer localized label(custom-en.lng) depending on Fresh/Upgrade install. For example: Installer.Installing.Title=Installing ${project.fullName} - during fresh install Installer.Installing.Title=Upgrading ${project.fullName} - during upgrade

Is it possible to do that?

Modify parameter in unistallation acttion list

$
0
0

Can parameters variable be modify in preUninstallationActionList with setInstallerVariable?

Does selecting a component group select the entire component list contained by that group?

$
0
0

Pretty straight forward question. Does selecting a component group, at runtime, by the user or through a component selection action, select all components and/or component groups that this group contains in its component list? I apologize as I do believe this was not quite answered in section 5.7 of the documentation or it seemed unclear to me. The select action on a group seems to enable selection for sub-components, but not select them. I do not have a test for this, but I was hoping that someone can spare me the trouble.

Three more questions related to this.

Is there a way to select all components in the project's component list, for instance in a full installation scenario?

Should the default for a component group be <selected>0</selected>, where it contains components that should not be selected by default?

What happens in the following scenario? Is componentA installed? Is componentB installed and everything else in the sub-group? Is this more than three questions?

...
<allowComponentSelection>0</allowComponentSelection>
...
<componentGroup>
    ...
    <selected>1</selected>
    ...
    <componentList>
        <component>
           <name>componentA</name>
           ...
           <selected>0</selected>
           ...
        </component>
        <componentGroup>
            <name>foo</name>
            ...
            <selected>0</selected>
            ...
            <componentList>
                <component>
                    <name>componentB</name>
                    ...
                    <selected>1</selected>
                    ...
                </component>
            </componentList>
        </componentGroup>
    </componentList>
</componentGroup>

Removing Trailing Slash(es) From Input String

$
0
0

Hello,

I'm still getting up to speed using regular expressions when parsing strings. Can you provide the solution for removing trailing slash(es) from an input string?

Thanks!

Viewing all 1727 articles
Browse latest View live