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

Easy way to automatically generate an uninstaller?

$
0
0

Hi,

I have the same problem with the uninstaller not being signed, on windows. Is there an easy way to have the installer/builder generate the uninstaller at build time, so it can be signed?

Right now it seems I have to:

  1. Make a build of the installer,
  2. Install the application,
  3. Copy the uninstaller to the input of the build,
  4. Sign the uninstaller,
  5. Include it in the installer,
  6. Rebuild the installer, with uninstaller disabled (since the signed one is bundled)

So for every change done to the installer project, I would need to do this by hand.

It would be awesome if I could automate this.


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

How to abort installation when close java launcher window

$
0
0

Hi all,

My installer launches Java launcher at the time of installation. I have Two requirements. 1) How to disable cancel button of the main installation window when the launcher window is launched and enable cancel button after the launcher window close. 2) If the user directly closes the launcher window (which is for key registration) there should be a question or alert message for User if the user selects "NO" then continue installation and if selects "Yes" then abort the installation. Please suggest me how doing this.

<project>
...
 <postInstallationActionList>
    <runProgram progressText="Launch ${project.fullName}">
        <program>${installdir}\MyPro\lib\MyLauncher.exe</program>
    </runProgram>
  </postInstallationActionList>
...
</project>

Never want to override the some files in upgrade insaller

$
0
0

While upgrading the installer, I never not to changes two files in the specific folder. whether "onlyIfNewer" condition is valid or not. that folder has many other files but during the upgrade, that two files never changes. How to do that please give any solution.

How to emit 'wm_settingchange' message | Refresh System Environment variables in Install Builder

$
0
0

Hi,

In our main installer, we are installing a component along with our application. The component will set environment variables on installation. Those environment variables are not be accessible in main installer.

Say, (in windows) if we open a command prompt and after that if we externally change System environment variables then the change in System environment variables will not reflect in the command prompt. Unless we close and open the command prompt.

So consider,

  • Our main installer is the command prompt
  • The component sets environment variables will look like externally changing System environment variable
  • So the change in System environment variables will not reflect in main installer

Our application requires those environment variable. If we launch our application in final page of our main installer, then our application is not able to access the environment variable.

To solve this issue, we need to emit a message 'wm_settingchange' from InstallBuilder to refresh and access environment variables

For more information refer: 'http://stackoverflow.com/questions/3636055/how-to-modify-the-path-variable-definitely-through-the-command-line-in-windows'

Do we have option in InstallBuilder to emit 'wm_settingchange'?

How to install to multi locations

$
0
0

Example . I find a file in location AppDataRoamingMetaQuotesTerminal71808ACDDF4589A555C107AF1E5AEBA0origin.txt and I want to look for another location and install. I have tried a bat file and packed it un packed it looking for locations cd c: dir origin.txt /b /s > installDir.txt is there a easier way ? I have this also done in a JRE that finds all the locations. But I can nto get the bat file or JRE 2 run correctly . But I would not need them if I can find multi locations of the file above

<actionList>
    <findFile>
        <abortOnError>0</abortOnError>
        <baseDirectory>${windows_folder_appdata}</baseDirectory>
        <pattern>origin.txt</pattern>
        <variable>FoundFile</variable>
        <onErrorActionList>
            <showText>
                <text>MetaTrader not Installed</text>
                <title>Install MetaTrader</title>
            </showText>
        </onErrorActionList>
    </findFile>
    <readFile>
        <encoding>unicode</encoding>
        <name>origin</name>
        <path>${FoundFile}</path>
    </readFile>
    <setInstallerVariableFromRegEx name="new_installdir" pattern="(.*)\\(.*)" substitution="\1" text="${FoundFile}"/>
    <setInstallerVariable name="installdir" value="${new_installdir}"/>
</actionList>

 <showQuestion>
    <default>yes</default>
    <text>What desk is being installed? ${origin} </text>
    <variable>bWhichDesk</variable>
</showQuestion>
<if>
    <actionList>
        <showWarning>
            <text>Please Browse to correct desk</text>
        </showWarning>
    </actionList>
    <conditionRuleList>
        <isFalse>
            <value>${bWhichDesk}</value>
        </isFalse>
    </conditionRuleList>
</if>

Unable to delete files that created after installation

$
0
0

Hi all, Uninstaller, not deleted files which are created after installation inside the ${installdir} if I installed my services in D, E or any other drive it will be deleted in uninstallation but I installed my services in C drive then uninstaller not deleted those files

InstallBuilder not installing on mac

$
0
0

Hello,

I have downloaded the InstallBuilder Professional 15.10.1 from your website.

After the .dmg package is downloaded I click on it and the installbuilder installer.app file is shown I try to click on the .app file and an "are you sure you want to open it" dialog pops up. After I click on open, the installation fails silently and nothing happens.

I have tried the same procedure on a colleague's macbook and it works. other software on my machine work and can be installed also.

Any thoughts on what I am missing ? I am running OSX El Capitan with full admin rights.


Silent installation of dependency

$
0
0

Hi, I am trying to bundle VC++ along with my software. But, during installation, the VC++ installer pops up and displays stuff. Is there a way to do a silent installation of VC++ along with the installer? Thanks. This is my code:

<folder>
                <destination>${installdir}</destination>
                <name>vcfiles</name>
                <platforms>all</platforms>
                <actionList>
                    <runProgram>
                        <program>${installdir}/vcredist-2013-x64.exe</program>
                        <programArguments>/q:a /c:"msiexec /i vcredist.msi /qn /l*v ${system_temp_directory.dos}\vcredist.log"</programArguments>
                        <progressText>Installing VC++ 8 runtime</progressText>
                    </runProgram>
                </actionList>
                <distributionFileList>
                    <distributionFile>
                        <origin>vcredist-2013-x64.exe</origin>
                    </distributionFile>
                </distributionFileList>
            </folder>

program_stdout for java launcher

$
0
0

Is it possible to grab the output (System.out.println's) of a java launcher using the program_stdout variable? If not, are there any alternatives to get the output without using additional text files/ other stuff

Uninstaller shortcut icon removed from startmenu on windows 10

$
0
0

We are facing an issue with installer created using bitrock install builder on Windows 10, where shortcut icon of uninstaller is not shown in startmenu programs folder. We are using version 15.1 of bitrock Installbuilder professional.

This is working fine on other version of windows like 7, 8 et.c

Not Abort installation when close java launcher window

$
0
0

My installer launches Java launcher at the time of installation. My java launcher is created in <postinstallationactionlist> and just after creating it run the launcher. see the below code.

<project>
...
 <postInstallationActionList>
 <createJavaLaunchers>
            <destination>${installdir}</destination>
            <javaLauncherList>
                <javaLauncher>
                    <allowCommandLineArguments>1</allowCommandLineArguments>
<binaryName>MyLauncher</binaryName>
                    <arguments>${Myargument}</arguments>
                    <classpath></classpath>
                    <jarFile>${installdir}\register.jar</jarFile>
                    <mainClass></mainClass>
                    <preferredJavaBinary></preferredJavaBinary>
                    <runInBackground>1</runInBackground>
                    <runInConsole>1</runInConsole>
                    <usePropertiesFile>0</usePropertiesFile>
                    <vmParameters></vmParameters>
                    <windowsResourceFileVersion>1.0.0.0</windowsResourceFileVersion>
                    <workingDirectory>${installdir}</workingDirectory>
                </javaLauncher>
            </javaLauncherList>
    </createJavaLaunchers>

    <runProgram progressText="Launch ${project.fullName}">
        <program>${installdir}\MyLauncher.exe</program>
    </runProgram>
  </postInstallationActionList>

     </installationAbortedActionList>
<kill>
<path>${installdir}\MyLauncher.exe</path>
</kill>
    </installationAbortedActionList>
...
</project>

alt text In the screenshot you can see there are two windows one is main installer setup and one is java launcher. If we click on close or cancel button of installer setup window then the popup come with a question "Do you want to abort the installation process?" If we select "Yes" then installer abort the installation but launcher window will not close; so we also required java launcher window should close when aborting the installation.

I want the same action on the close button of java launcher window. If we click on close button of java launcher window there should be a popup like an installer window close button.

We need to abort the installation process either of the installer setup window or java launcher window, as we click on any of the close buttons.

Component Selection

$
0
0

Hello,

I've added <allowcomponentselection>1</allowcomponentselection> to my installer. It is working correctly, allowing users to select/deselect components. Is there a way to require at least one component is selected before allowing user to continue? It currently allows user to continue even if no components were selected.

Cheers!

Delete install dir while canceling in upgrade mode

$
0
0

Hi,

During upgrading an installer, if a user clicks on cancel or abort installation button then already

MAC OS - License Dialog Error?

$
0
0

Hello,

In MAC OS, I tried to add the license file and it produces errors. I tried to add a RTF file format and the License dialog has unwanted characters as shown in the image below,

alt text

So I added the TXT text file format and I get the following error as shown in the image below. The License dialog's GUI messes up and the dialog hangs up,

alt text

What is the issue here? This happens on MAC OS.


Dynamically create start menu group

$
0
0

Using this pattern

http://answers.bitrock.com/questions/331/how-can-i-add-entries-to-the-start-menu-on-windows

I have been able to create a query in my installer to dynamically create start menu items or not. Because I don't want to use my product full name as the start menu group name I have specified the <startmenugroupname> in my project file. Unfortunately this has had the side effect of always defining my start menu group, regardless of whether the installer was instructed to place any items in the start menu group or not.

Is there a way I can define a startMenuGroupName but only use it conditionally depending on whether the installer has been instructed to create start menu items?

Thank you, David

folder deletion

$
0
0

I am able to successfully uninstall and remove the content of the files inside my application folder. But i am not able to delete the Folder itself.

<postUninstallationActionList>
            <deleteFile>
              <path>${installdir}</path>
            </deleteFile>
    </postUninstallationActionList>
    <preBuildActionList>

what is am i missing ?

Creating a DMG via the builder is failing

$
0
0

Hi,

I'm trying to create a DMG using the builder.. I'm successfully creating the .app file, and able to run it and all, but when I tell the builder to create a .dmg with --verbose, it fails: "[ 96%] Executing post build actions [ 96%] Creating DMG for <filename>.app

Warning: Unknown error packaging <filename>.app [100%] Build Complete"

When running it directly from the GUI, it's creating the .dmg properly.. but not from command line. What could be causing this/is there a way I could debug this more thoroughly while building?

Thanks.

Error: Unknown error signing from command line using a PKCS#12 file

$
0
0

Hi,

Running on OS X. Trying to sign an installer (the .app file created in the end of the process). Both running it directly from the GUI and the command line gives a warning at the beginning: "Warning: Cannot sign application: Invalid identity", but I assume that it's because the ID isn't in my keychain.. when it then proceeds to process the build, the command line gives the following error: "Error: Unknown error signing <filename>.app", and doing codesign -vv on the file says that it's not signed. Doing the build from the GUI doesn't throw an error and the codesign says "valid on disk", "satisfies its Designated Requirement".. so seems like it has been signed. What could be the problem here?

Thanks.

MAC OS - Remove Dock Icon?

$
0
0

Hello,

In MAC OS, how to remove a Dock icon during uninstallation? Previously, I used to run the following AppleScript during uninstallation do to that,

try
    tell application "System Events"
        set dockPlistFile to property list file "~/Library/Preferences/com.apple.dock.plist"
        tell dockPlistFile
            tell property list item "persistent-apps"
                set appTileItems to value of (every property list item whose value of property list item "tile-data"'s property list item "file-label" is not "dockappname")
                set its value to appTileItems
            end tell
        end tell
    end tell
    tell application "Dock" to quit
end try

This worked in MAC OS Mountain Lion. But this not working on Mavericks and above. As explained in the answer in this link I know how to add a Dock icon. Is there a similar way in the new BitRock InstallBuilder version to remove it?

Viewing all 1727 articles
Browse latest View live