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

Windows 7/8 installed file differences?

$
0
0

Is it possible to distinguish between Windows 7/8 and install different files based on that?

I have two DLL's, "msvcp100.dll" and "msvcr100.dll" that I need to have installed. On windows 7 I need the windows 7 versions, on windows 8 I need the windows 8 versions. They both have the same file name. How would I go about doing this?


Opening a PDF in postInstallationActionList

$
0
0

Hello everyone,

I am trying to open a gettingstarted.pdf file for the user after installation.

I have read this forum post as well as this one, applied them to my installer, but it is still not opening the file. I double checked the MIME type I chose by looking it up at this site.

Here is the code I have placed under the postInstallationActionList tag:

<associateWindowsFileExtension>
    <extensions>.pdf</extensions>
    <progID>mycompany.package</progID>
    <icon>${installdir}\company.ico</icon>
    <mimeType>application/pdf</mimeType>
    <commandList>
      <command>
        <verb>open</verb>
        <runProgram>${installdir}\GettingStarted.pdf</runProgram>
        <runProgramArguments>"%1"</runProgramArguments>
      </command>
    </commandList>
    <ruleList>
      <isTrue value="${pdf}"/>
    </ruleList>
 </associateWindowsFileExtension>

I do not understand all of the terms used in the previously mentioned forum posts so I believe the fault lies with my understanding of the progID or mimeType. Also if there is a better way of opening a pdf file than this please share.

Thank you

Qt build with Linux?

$
0
0

I've built an installer for my Qt app for Windows and now I need one for Linux, Ubuntu specifically, and I can't figure out how to get it to build. I've put all my materials in "Program Files (Linux)". In the drop down section on the "Packaging" tab, for "Build Platform", there is only Windows and Multiplatform CDROM. Is there a way to get a .run as output? Or am I missing something?

I'm using the InstallBuilder for Qt.

Scary incoming network warning with firewall enabled on mac

$
0
0

When we run our installer on mac with firewall enabled we get the following error message:alt text

We have the following settings set: alt text

So i know osx-intel is the actual installer executable, but can someone tell me what would be receiving incoming network connections in the installer? And can i disable it to get rid of this warning? And finally, can we change the name of the executables so it doesn't look totally non-descript and make users suspicious of it?

Thanks,

Mike

create OS X Service

$
0
0

Hi Forum,

I'm trying to create a OS X Service.

I'm installing a Postgres Database, init the database. Everything is fine. Then I tried to create the OSXservice. I'm using this code:

<createOSXService> <keepAlive>1</keepAlive> <program>${installdir}/TCMSOFT 4.app/Contents/Resources/datenbank/bin/pg_ctl</program> <programArguments>start -D ${user_home_directory}/Library/TCMSOFT/data -l ${user_home_directory}/Library/TCMSOFT/logs/postgresql.log &amp;</programArguments> <progressText>Erstelle TCMSOFT Datenbank Dienst</progressText> <serviceName>TCMSOFTdatenbank</serviceName> <username>${system_username}</username> <groupname>staff</groupname> </createOSXService>

There is no error message or something else. But there's no service!!! Starting the database with these arguments manually is working.

What's wrong??

Cheers Daniel

Clean up Open Project history...?

$
0
0

Is there an easy way to clean up the Open Project history on both Mac OS X and Windows?

Install log permissions

$
0
0

Is there a way to modify the install log permissions on Linux?

No problem changing other file permissions, but install log modification does not work.

How to avoid leaving old uninstallers?

$
0
0

Hi,

I'm installing into a fixed directory, one that doesn't include the version.

Each new version overwrites the old. But in Windows' control panel I have several versions, when I only want one, the latest.

Of course uninstalling "old versions" actually uninstalls the latest (and only one, there are no actual uninstallers for each version), which is going to confuse users.

So the question is as the title says, what do I put in my project to avoid Windows thinking I have several versions installed?


Can I overwrite the built-in variable windows-os-name?

$
0
0

I have an installer that was already released that has an error in a configuration for Windows 8. The installation for Windows 7 works fine though. Can I overwrite the built in variable windows_os_name on the command line so the installer thinks it is being run on Windows 7?

How can I create uninstall logs?

$
0
0

I have enabled logs in my installer. But if I uninstall single component then uninstaller does not create uninstall log file. I want that it should create for every component uninstall. Could you please let me know how to achieve this?

Is there a way of getting the localized name of Windows built in accounts?

$
0
0

I have an installer that needs to be able to use the localized name of the Network Service account. Is there a way of getting this from InstallBuilder?

Thanks,

Matthew

Problem running uninstaller with spaces in install path

$
0
0

I create an installer and during installation the user is asked for the install path. If the user enters a path that contains spaces, then I can get the uninstaller to run, but at the end of the uninstall process, all the features that should have been removed have not been.

The user is asked for the install directory as follows:

<directoryParameter name="installdirOrig"
            default="${platform_install_prefix}/${project.vendor}/${product_shortname}"
            ask="yes"
            mustBeWritable="yes"
            mustExist="0"
            width="40">
    <validationActionList>
        <!-- Replace space with '+', then in scripts revert '+' to space -->
        <setInstallerVariableFromRegEx name="installdir"
        pattern=" "
        text="${installdirOrig}"
        substitution="+"/>
        <globalVariables names="installdir"/>
    </validationActionList>
</directoryParameter>

The install path has spaces replaced by '+' and the scripts that use the install path revert '+' to space

During uninstall I run a number of powershell scripts initiated from functions. A typical example is to ask for the user password as follows:

<runProgram program="cmd.exe" 
        showMessageOnError="0"
        abortOnError="0">
    <programArguments>/C "${msg(PowershellTemplate)} -File ${installdirOrig.dos}/scripts/validate-credentials.ps1 ${accessUsername} ${accessDomain} ${accessPassword.password} &amp;"  </programArguments>
</runProgram>

where ${msg(PowershellTemplate)} is defined as:

PowershellTemplate=powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -WindowStyle Hidden

I've used ${installdirOrig.dos} so that spaces will be handled correctly However, the uninstall log has entries like

Validate the user credentials
Executing cmd.exe /C "powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -WindowStyle Hidden -File C:\PROGRA~1\InstallPath\Path with spaces/scripts/validate-credentials.ps1 username domain **** &"
Script exit code: 0

It looks like 'Program Files' has been altered, but 'Path with spaces' has not

All of the scripts that are executed in this manner return a script exit code of 0, but when the install path contains spaces, not everything is removed as expected by the uninstaller. In contrast, when the install path does NOT contain spaces, everything is removed as expected by the uninstaller.

The & at the end of the arguments was found to be necessary, otherwise the scripts failed with:

child killed: unknown signal

I'm not sure exactly what is happening, but because there are spaces in the -File switch to the powershell.exe command, then I'm guessing that the remainder are treated as parameters.

How can I correctly handle a path with spaces during uninstall ? Thanks for any help

Can I change the directory structure of osx build

$
0
0

Hi,

I am creating osx build "componentgroupsexample-1.0-osx-installer.app" using InstallBuilder 8.6.0. It creates five files at path "componentgroupsexample-1.0-osx-installer.app/Contents/MacOS/". These files are installbuilder, installbuilder.sh, osx-10.2, osx-intel and osx-ppc.

I have a specific requirement that at path "componentgroupsexample-1.0-osx-installer.app/Contents/MacOS/", only installbuilder.sh file should exist and all other files should be moved to some other folder. Is this requirement feasible? Please suggest.

Thanks.

Installer Version Number

$
0
0

I know that it is easy to find the version number of the product you are downloading onto the users machine, but what I want to know is if there is any version tracking for the installer. I have not been able to find anywhere in the installer creation GUI or the XML code anything that mentions the version of the installer, I can only ever find the product version references.

I would like to to display the version of the installer when it runs on the users machine as well.

For example, if the installer I am working on is in beta then I would like the user to be able to see somewhere on the first launch screen "Installer version x.x.x Beta".

I am currently using an evaluation version of BitRock InstallBuilder so this is the initial screen I see when running the generated executable for my installer.

Would I be able to change or add below the line that currently states "Created with an evaluation version of BitRock InstallBuilder" something like "Installer version x.x.x. Beta created by BitRock InstallBuilder"?

alt text

Can the installer rename itself?

$
0
0

Hi, I was able to do this when i used installjammer to build my installer. I have a process that starts up the installer if it finds in in a particular folder and I need the installer to rename itself or move itself to another folder so it doesn't get started again. Is there any way to do this? thanks!


Path as command line parameter

$
0
0

I'm sending an installation path as a parameter when upgrading my application in unattended mode. I seem to be having problems when I have spaces in the name. When using quotes to encapsulate my destination it seems to confuse the updater.

As a result I am escape the path and thus call:

open -a /Path\ To\ My\ Updater/myupdater.app --args --mode unattended --installdir /Path\ To\ My\ Application

That all works fine except that at the last step of my updater I attempt to start my app. When running my updater normally the path that gets selected isn't escaped, so I execute the following command from:

open -a "${installdir}/myapplication.app"

That works great unless I've started my updater through the aforementioned script to run it in unattended mode. As now I'm using an escaped path but it is between quotes it can't start the application.

So the question is, is there either a way not to use an escaped path when calling the updater but put the path between quotes or else is there a way to detect an escaped path was used and convert it to a non-escaped path before starting the application at the end of the updater?

SQL Express Installer

$
0
0

I have tried everything I can think of tho make this work, including using a configurationfile.ini to command line operators. Here is my latest attempt:

<runProgram>
                <abortOnError>0</abortOnError>
                <customErrorMessage>Error installing SQL x64.</customErrorMessage>
                <program>${installdir}\PostInstall\SQLExpress2008\SQLEXPR_x64_ENU.exe</program>
                <programArguments> /ACTION=Install /UpdateEnabled=False /QS  /INSTANCENAME=SQLEXPRESS /FEATURES=SQLEngine /TCPENABLED=1 /SECURITYMODE=SQL /SAPWD="Pa55w0rd"  /SQLSYSADMINACCOUNTS="Builtin\Administrators" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /IAcceptSQLServerLicenseTerms</programArguments>
                <progressText>Installing SQL Express</progressText>
                <ruleList>
                    <platformTest>
                        <type>windows-x64</type>
                    </platformTest>
                </ruleList>
            </runProgram>

Has anyone solved how to install SQL Express 2008 from Bitrock? Thanks in advance!

Using variables set at build time in built installer

$
0
0

I've tried lots of different ways of getting a variable set in the pre-build section to be available at runtime of the installer and I keep drawing a blank.

My latest attempt was using a parameter as suggested in http://installbuilder.bitrock.com/docs/installbuilder-userguide/ar01s07.html

I have also tried setting persist=1 on the variable when I set it in the pre-build section.

When I run the debugger, I see no user variables and the parameter is unchanged when I inspect it:

alt text

alt text

<project>
    ...
    <parameterList>
            <stringParameter name="test123" value="NOTSET" ask="0" />
    </parameterList>    
    ...
    <componentList>
            <component>
                    <name>X</name>
                    ...
                    <preBuildActionList>
                            <setInstallerVariable name="myvar" persist="1" value="Hello World"/>
                            <setInstallerVariable>
                                    <name>${project.parameter(test123).value}</name>
                                    <value>${myvar}</value>
                            </setInstallerVariable>
                    </preBuildActionList>
            </component>
    </componentlist>
</project>

Detecting if variable has a value

$
0
0

We control certain aspects of the installer building process with variables passed through the --setvars option. To get command lines less verbose, we'd like the builder to use default values if variable values are not 'forced' by the --setvars. We tried several rules (is True, lenght, is Equal...) to detect if a variable is set or not, but without success. My question is: Is it possible to detect (in a pre-build action) if a certain variable is actually set (i.e. was passed from the --setvars) and when it's not set, to set it to some default value?

Is it possible to compare two files by date?

$
0
0

From various historic Non-InstallBuilder-Installations of a software series on OS X there are two possible locations for a file on my customers disk.
In a sort of maintenance installation I have to determine the newer one of this files and move it to a certain location.
I found no InstallBuilder action to retrieve or compare file dates or timestamps. How could I achieve this?

Viewing all 1727 articles
Browse latest View live