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

installer_is_root_install

$
0
0

Hello,

I installed my package on several station as different user type (admin,standard,remote user etc). I conditioned the installation only when install is root install variable is true (admin user). From some reason , on some machines , when UAC is off , the variable "installer is root install" returning wrong value, meaning when standard user doing the installation the condition that check if "installer is root install" is true are met. How the installer set "installer is root install"? what is the exactly method that installer use to set this variable? I would like to verify that there is nothing wrong with these machines , no missing libraries/command that might used by the installer and therefore I would like to set my own variable by using same way as the installer do.

I will appreciated you support.

Thanks, Ronen


Calling httpPost

$
0
0

quick question were doing some things with web authentication and can i call <httppost> a bunch of times within the xml?

ShowProgressDialog does not show progress

MacOS packaging options (DMG, Zip, etc)

$
0
0

Hi,

I am running InstallBuilder in a Windows 7 environment. I do not think I can have InstallBuilder create a .DMG package (as defined in section 27 of the user guide). Is this correct? If so then I am trying to come up with a better solution using .zip.

I am building a Client app and Server app that runs on Windows, Linux and MacOS. For the MacOS case I end up with a .zip file for each one of these. When I unzip the file it creates the standard Mac "Contents" directory structure. I have had complaints where since the same directory names are used for my Client and Server apps, there is a conflict when they are unzipped. This may be due to confusion about the install process.

Is it preferred to just unzip that initial .zip file directly into the Applications directory on a Mac? I think that for other apps it pops up the "drag and drop" window to drag the install (.zip) to Applications directory. Then it unzips there in the background. Can InstallBuilder pop up this type of window?

Also, if I move InstallBuilder to a Mac server, will I definitely be able to create the .DMG package then? I use the latest InstallBuilder Pro. The Windows/Linux install setup would not change in this case right?

Thanks,

Greg

Unable to build autoupdater for linux-x64

$
0
0

I'm using the "InstallBuilder for Qt - Linux-only edition" to build my installers for both platforms, linux and linux-x64, which works fine. Now I'm trying to add the autoupdate feature. For linux-x64 this fails because the 64bit runtime is missing. Is this by intention and do I need a Professional license to build the autoupdater although I'm able to build the installer itself in 64bit?

InstallBuilder not failing from the command line

$
0
0

Hi,

I'm running InstallBuilder on Mac OSX 10.8 (Mountain Lion). I have a project already set up that includes multiple pre-build actions in the form of HTTP GETs to download some resources. I set up an on error action for each to throw an error. When I try this from the GUI, it performs correctly and throws the error when the URL is invalid(404). But when I run it from the commandline, it works just fine and builds an installer. The installer however will error when it comes to the step of installing the component that it failed to download. What am I missing? I'm new to installbuilder and this is my first project.

Thanks, Ahmad

Code Signing during customer installation process?

$
0
0

Hi,

I am working on the code signing aspect of InstallBuilder. Initially I am using signtool for Windows but will also need to sign Mac & Linux .exe & .jar files. I can sign my main install file that I build with InstallBuilder (aka setup.exe). I have read about the postBuildActionList concept, so I can run signtool from there.

I just want to make sure that if I want a customer's final application executable to be signed (MyApp.exe), then I cannot sign it until they have run the setup.exe on their system. Therefore, I need to include a .pfx certificate file as part of the build? And I should probably include the signtool.exe so a customer does not have to install Microsoft SDK themselves? Not sure if signtool.exe depends on other .dlls that would also need to be present.

The .pfx file is password protected so seems like it's OK to distribute it. Can I define it (and signtool.exe) as a hidden file in the customer's install directory so they will not see it?

Please let me know if I am missing something here. I do not see a place when running InstallBuilder where I can sign the MyApp.exe file while building the install package.

Thanks

Installer appears not to work on Mac OS X 10.8

$
0
0

I downloaded a file (application) and after unzipping it double clicked the file. The Icon expanded but nothing else seemed to happen. Any thoughts, suggestions?


Difference in JavaLauncher runInConsole enable/disable?

$
0
0

I am signing my setup.exe install application in the postBuildActions section of my InstallBuilder .xml script. Later, the createJavaLaunchers block created the final MyApp.exe file, which I also want to sign. I have found that I can sign MyApp.exe if the createJavaLaunchers "runInConsole" = 1, but signing fails if runInConsole = 0.

I am using the same signtool.exe file and same .pfx certificate file for both operations.

What is different about creating the MyApp.exe using createJavaLaunchers based on this difference?

Thanks

Code Sign Linux/Mac install files with InstallBuilder on Windows?

$
0
0

I build Windows/Linux/Mac install packages using installBuilder 8.6.0 on Windows. I use signtool to digitally sign the Windows setup.exe just fine (in the postBuild phase). I also need to sign the Linux .run file as well as the MacOS package. Signtool does not recognize a .run file.

How do I do this using this Multiplatform InstallBuilder Tool?

Thanks

How to detect java version from a jre folder

$
0
0

So in my application i have java deployed as a prt of the app. It is currently not done as per bitrocks recommended way though. i have a folder named "jre" that is deployed as part of it. i want a way to read a the jre version from that folder using bitrock.

How to change the "BitRock Installer" string in installer dialogs?

$
0
0

I know how to adjust the installer's built-in strings (like window headers, button captions etc.), by overwriting them using localized strings. But this works only for strings that appear in the installer's en.lng file.

Now, I have users report that they get confused by the string "BitRock Installer" that is visible in almost every dialog (at the divider line at the bottom of the dialog which separates the dialog's content from the dialog's buttons), because it might imply that the product about to be installed is a BitRock product.

I'm not asking to entirely remove this string (although that would be fine as well), but to adjust it to something more clear, like "Created using BitRock InstallBuilder technology".

Is it possible to adjust or remove this string?

Is it possible to open the user's default email program and create a new mail with the log file as attachment?

$
0
0

For a complex updater I do much logging as there are many pitfalls on the user's side. In case of any error it would be very helpful for the support to see the log file.

So if an error occurs I would like to add sort of a mailto link as an option on the final page that opens the user's default mail program, sets the company's support address into the receiver field and attaches the installation log file to the mail!

How could I achieve this?

Running installer inside Docker

$
0
0

Hi,

I've been trying to run my installer generated with InstallBuilder inside a Docker container (v0.6.1), but it doesn't work. It doesn't raise any error, but it exits immediately with the return code 1.

The installer is for a 64bit platform (linux-x64), my Docker "host" is 64bit and I've tried with both the ubuntu docker image and the centos one, but to no avavail.

I was wondering if the generated installer would have any dependency against some library which might not be present in those minimal Docker images? I tried to install the "Base" group on the CentOS image but it didn't help.

How can I debug this problem further?

Thanks.

Update: Some more debug info as suggested by wojciechka

  • Running with --help or --mode text doesn't help (same behavior)
  • Running ldd on the installer returns not a dynamic executable
  • strace doesn't give any specific error, but I'm not sure how to interpret the output. It doesn't seem fundamentally different from the output of a working installer. I've put the output here if that helps.

Installation unable to generate an uninstaller.

$
0
0

I'm getting the following message in my installer log: Creating Uninstaller Problem creating uninstaller. Installation may have not completed correctly.

I've tried running it in the debugger, but there's no way to step into the "Creating Uninstaller" section. Any ideas?


Looping through variables

$
0
0

Greetings,

What I want to accomplish is to set up a Schedule in PGAdmin. The problem is that the SQL statement used wants a "t" or "f" for each minute, hour, weekday, etc. to say if the schedule will run on that minute of that day of that hour of that month (I have no control over this). For instance:

INSERT INTO pgagent.pga_schedule (jscid, jscjobid, jscname, jscdesc, jscminutes, jschours, jscweeksays, jscmonthdays, jscmonths, jscenabled, jscstart, jscend) VALUES(<jobid>, jscJobId, 'Daily at ${dailystarthour}:${dailystartmin}', '', '{t, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f}', '{f, f, t, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f, f}', '{f, f, f, f, f, f, f}', '{f, f, f, f, f, f, f, f, f, f, f, f}...

I think you get the idea, this particular job would run at 2:00 AM. What I wanted was to Append text to a file with the appropriate "t" or "f" for the schedule. The installer is already asking for, and filling in, the appropriate variable ${dailystarthour} and ${dailystartmin}. The problem is, how, for example, do I set a "t" at the 5th character in the file to say that it will start at the 5 AM hour?

I am really not sure how to go about this and was hoping that someone would be kind enough to help me out.

Thank you, Greg

Increment counter

$
0
0

I am trying to create a counter. Seems straightforward, you just add 1, yet every time I try, I get "Error in Math Expression". I set a variable in a while loop called ${loop_minutes} with a value of 0, for the Action, I want to add 1, I have tried the following: ${loop_minutes}=${loop_minutes}+1 ${loop_minutes}=${loop_minutes+1} ${loop_minutes}=${loop_minutes}+"1" ${loop_minutes}=${loop_minutes + "1"} How do I increment the counter?

Unknown error while running file

$
0
0

I'm getting the error "Unknown error while running file". The command I'm using to build is:

>builder-cli.exe build "C:\MyCodeBase\try-buy-installer\installer\config\MyInstaller 1.0.xml" windows --verbose --setvars builddir="C:\InstallerArtifacts" --debugtrace debug.txt

The output is:

[ 0%] Executing pre build actions [ 0%] Checking output directory

Error: Unknown error while running file C:InstallerArtifacts/apache-tomcat-7.0.41.zip Error building project Debug file written.

The XML snippet it is failing on is:

<runProgram>
        <program>file</program>
        <programArguments>${artifactsLocation}/apache-tomcat-7.0.41.zip</programArguments>
    </runProgram>

This runs on OSX, but not on Windows. Also the debug file does not get written, as I was hoping that may have a clue as to what is wrong.

How to ensure that installer always cleans up its temporary files?

$
0
0

When run in GUI mode, the installer creates temporary files (mostly image files, it seems) in a folder called .bitrock within the system's temporary folder.

When run in "normal" GUI mode, this temporary .bitrock folder gets successfully deleted after the installation process, but when run with parameter --mode unattended --unattendedmodeui minimalwithdialogs, this temporary .bitrock folder persists most often (maybe always, I'm not quite sure about that).

Is this a bug in InstallBuilder?

PS: I've set the <removeLogFile> project property to 1, and thus the bitrock_installer.log file is always deleted correctly.

PPS: I have designed my installer to explicitly call the built-in action <exit> (with an appropriate "exitCode" value) at the end of every possible execution path, to gain full control over the error code that is returned to the caller of my installer.

PPPS: My installer was created using InstallBuilder version 8.5.2-201305151211

PPPPS: This issue is present on Windows and on Mac OS X.

How to create serial key pages

Viewing all 1727 articles
Browse latest View live