In install files action, when the files cannot be created, it displays a message saying it cannot create the file. Is there a way to add custom error message and fail the installation.
If the user presses "Cancel", the "Install files" action will fail and its configured error message will be displayed. As of install4j 6.0, there is no way to skip this message box if a file installation fails.
As for configuring the error message:
On the "Installer->Screens & actions" step, locate the "Install files" action. The "Error message" property is set to ${i18n:FileCorrupted} by default and the "Failure strategy" property is set to "Quit on failure" by default.
Related
I have a Problem with the Install4j Startup Error Message:
When I start my app, a splash screen appears.
During this i try to establish a database connection.
if that fails, the app quits with an error message.
at the same time, an error message from install4j pops up.
Where do I set that the install4j error message is not displayed?
thanx :)
In the launcher wizard, on the "Executable info" step, deselect the "Fail if an exception in the main thread is thrown" check box.
Until now, we installed and started out services with "Run executable or batch file" action and it worked fine.
I want to switch these actions with new "Install/start/stop a service" respectively actions, so I tried doing it with moderate steps - first switching the 1st executable install action with "Install a service" action.
It seems the installer do install the service but it won't start it. when I try to manually start it - I'm getting the error:
error 1053 the service did not respond to the start or control request in a timely fashion
I doubled checked myself & both old executable action and the new "Install a service" action are configured the same, while the only different between them, is that on the executable action I also configured the "Wait for termination" property along with the "wait for output streams" property.
Is my problem stems from that difference, and if so, is there any way configuring the new action as well?
Today I have a question about the addon installation medium. We have to create an installer which installs some tools to extend the main application. Therefore I created a project and configured it as an addon installer. Therefore I set the application ID from the main application to the addon configuration. Then I expected that the installer checks whether the main app is installed or not. I also avoid to bundle the jre so the installer should use the jre from the main application. When I try to install the addons the installer ask for a suitable jre and then starts to install the component. I expected an error message and the installation to be aborted. Maybe I missed some configuration?
You can call
ApplicationRegistry.checkApplicationId(context.getInstallationDirectory())
in a "Run script" action in add-on installer to check whether a main installer installation has been found. If the above returns false, you can return false from the script, set the "Failure strategy" property to "Quit on failure" and the "Error message" property to the error message that you wish to display.
This is using Kepler service release 2
Build id: 20140224-0627
Also below that:
An internal error occurred during : "Task List Indexer".
I have tried restoring past task lists but does not work.
Refresh Indexes does not work.
Also :
Typing key word in "Find" field gives this:
"Refresh Filter" has encountered a problem"
"An internal errors occurred"
Below that:
"An internal error has occurred.
For input string: "My MacBook Pro.gen"
Fixed this by changing mylyn folder location in preferences.
Imported old task lists.
It worked!
Moved working folder back to original location.
Changed path in preferences back.
I'm using Install4J to build an installation for my application (lets call it MainApp), and it work great.
To be able to use MainApp, you also need to install my second application (lets call this one SecondApp).
My question is this. Is there a way to get Install4J to first install MainApp, and as the last step in the installation download SecondApp (an exe file located on a webserver) and execute it?
You can do that by adding two actions to the "Installation" screen:
"Download file" action, for downloading the "SecondApp" installer
"Run executable or batch file" action, for executing it. Select the "Wait for termination" property to wait for the installer to complete.
To improve user feedback add the following two actions to before the "Run executable or batch file" action:
"Set the progress bar" action with "Type of change" set to "Set to indeterminate state"
"Set messages" action with "Use status" selected and "Status message" set to "Installing second app ..."
If you do not want to keep the "SecondApp" installer executable, use ${installer:sys.workingDir}/secondapp.exe to download it to the temporary directory of the installer. It will be deleted automatically when the installer exits.