This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
vjayaraman
Revenera
- Revenera Community
- :
- About vjayaraman
Jul 04, 2024
03:31 AM
Introduction :
This Article will helps you to understand the steps required to Check whether the current user is admin or not through Evaluate custom rule.
Instructions :
To Create/Evaluate custom rule follow these simple steps
Step1 : Open your InstallAnywhere project. Step2 : Go to "Rules" -> "Code Rules". Step3 : Click on "Add" to create a new code rule. Step4 : Give your rule a name (e.g., "Check if current user is admin"). Step5 : Paste the following code into the code editor:
import com.zerog.ia.api.pub.CustomCodeRule; import java.io.IOException;
public class AdminCheckRule implements CustomCodeRule { @Override public String getDefaultValue() { return null; }
@Override public String execute() { if (isAdmin()) { return "User is admin"; } else { return "User is not admin"; } }
private boolean isAdmin() { String osName = System.getProperty("os.name").toLowerCase(); if (osName.contains("windows")) { try { Process process = Runtime.getRuntime().exec("cmd.exe /c net session"); int resultCode = process.waitFor(); return resultCode == 0; } catch (IOException | InterruptedException e) { e.printStackTrace(); } } return false; // For non-Windows systems or if an exception occurs } }
Step6 : Click on "OK" to save the rule. Step7 : Now, you can use this rule in your InstallAnywhere project. When you use it, a message box will only appear if the current user is an admin.
To use this rule:
Go to the location where you want to use this rule in your InstallAnywhere project. Right-click on that location and choose "Add Action". Select "Run custom code" from the list of actions. In the properties for this action, select your custom code rule ("Check if current user is admin"). Configure any additional properties for your message box, such as the message to display. Build and run your InstallAnywhere project. The message box will only appear if the current user is an admin.
... View more
Labels:
Jul 04, 2024
03:29 AM
Introduction :
This Article will helps you to understand the steps required to change the name or icon of an installed application through InstallAnywhere.
Instructions :
To change the name or icon of an installed application through InstallAnywhere follow the below steps:
Step1 : Create the *.desktop Step2 : Set the exec script path and icon path and modify the $USER_INSTALL_DIR$ variables in the *.desktop sudo gedit studio.desktop [Desktop Entry] Name=OpenShot Video Editor GenericName=Video Editor X-GNOME-FullName=OpenShot Video Editor Comment=Create and edit amazing videos and movies Type=Application Exec = $USER_INSTALL_DIR$/bin/Lin/Test Icon =$USER_INSTALL_DIR$/just/openshot.png Step3 : Create a Project in InstallAnywhere Step4 : Add Set InstallAnywhere Variable-Multiple Variable > Edit Variable > USER_MAGIC_FOLDER_6 with the value /usr/share/applications Step5 : copy *.desktop to /usr/share/application using Copy file action Installed file : $USER_INSTALL_DIR$$/$bin$/$Lin$/$samp.desktop Path : $USER_INSTALL_DIR$$/$ Step6 : After installing the software, You see the icon has been shown in the applications.
... View more
Jun 20, 2024
01:31 AM
Introduction :
This Article will helps you to understand the steps required to run .bat file through IA.
Instructions :
To run a .bat file through InstallAnywhere follow these simple steps,
1. Create a New Project 2. Add the Execute Script/batch file Action as part of your project settings in the respective Sequence phase. 3. In the properties customizer section of the Execute Script/batch file Action, There is text area called Script : Add the following command : start cmd /k "$USER_INSTALL_DIR$$/batfile.bat" 4. The text area allows the end user to leverage the InstallAnywhere Variables like "USER_INSTALL_DIR" in the user script. 5. Build and run the installer.
More Information: You can also utilize the Execute Command action, which executes the entire script or batch file by specifying the .sh or .bat file directly in the command line.
... View more
May 31, 2024
03:19 AM
Summary : Fatal Exception : java.lang.IndexOutOfBoundsException: Index
Symptoms :
After making several adjustments to the settings and constructing the project, we mostly encountered errors,
java.lang.IndexOutOfBoundsException: Index :0 out of bounds for length 0 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at com.zerog.ia.designer.customizers.ApplianceHardwareInfo.refreshSettings(Unknown Source) at com.zerog.ia.designer.customizers.VMConfigurationCustomizer.aa(Unknown Source) at com.zerog.ia.designer.customizers.VMConfigurationCustomizer.setup(Unknown Source) at com.zerog.ia.designer.customizers.TBuildAppliance.setupThisApplianceBuildConfiguration(Unknown Source) at com.zerog.ia.designer.customizers.TBuildAppliance.setup(Unknown Source) at com.zerog.ia.designer.Dashboard.setObject(Unknown Source)
Resolution :
IndexOutOfBoundsException when opening a project typically indicate corruption in the project file. Killing a build process without letting it exit is one way in which a project may become corrupted. To resolve this issue, create a new project. When you open the project file with a text editor and search for the word ex :BuildAppliance/Virtual,Then, upon examining that section, you may notice that some parts are missing.
Once you find the appropriate missing property, if you compare the section with the original project xml file, you will see that chunk of sections are missing. This is what was causing the exception. Now, copy that entire element from the new project to your original project.
For Example: Corrupted file: <property name="virtualHardwareInformation"> <object class="com.flexera.ia.vapp.datastructures.hardware.VirtualHardwareInformation" objectID="7a696a669fce"/> </property> <property name="startupInfo"> <object class="com.flexera.ia.vapp.datastructures.VirtualSystemEntityStartupInfo" objectID="7a696a659fd7"> <property name="startupDelaySeconds">
The Actual Virtual appliance section is,
<property name="virtualHardwareInformation"> <object class="com.flexera.ia.vapp.datastructures.hardware.VirtualHardwareInformation" objectID="a7bf5d8ca5ac"> <property name="virtualHardwareProfileList"> <object class="java.util.ArrayList" list="true"> <method name="add"> <object class="com.flexera.ia.vapp.datastructures.hardware.VirtualHardwareProfile" objectID="a7bf5d8ca5ad"> <property name="profileId"> <string><![CDATA[A Virtual Machine]]></string> </property> <property name="profileDescription"> <string><![CDATA[Ubuntu 12.0 Linux]]></string> </property> <property name="hardwareItems"> <object class="java.util.ArrayList" list="true"> <method name="add"> <object class="com.flexera.ia.vapp.datastructures.hardware.VirtualCPU" objectID="a7bf5d8ba5ae"> <property name="id"> <int>53</int> </property>
... View more
Labels:
May 31, 2024
03:15 AM
Introduction
It reports that it's "not possible to establish a connection with the concurrent license server" and specifies that "The License server (localhost:27000) does not support this version of InstallAnywhere."
Troubleshooting Steps :
Step 1 : Check lmadmin log:
root Version: 11.19.0.0 build 284536 root.LicenseEngine started without redundancy. root.Vendor (mvsn) stopped. root.LicenseEngine (mvsn) exited with status 27. (No features to serve) root.Vendor (mvsn) stopped. root.LicenseEngine (mvsn) exited with status 27. (No features to serve)
and mvsn log, 22:57:03 (mvsn) (@mvsn-SLOG@) === Host Info === 22:57:03 (mvsn) (@mvsn-SLOG@) Host used in license file: ap-testintool12 22:57:03 (mvsn) (@mvsn-SLOG@) HostID node-locked in license file: 00155dddec04
Step 2 : Verify that the localhost/hostname/ethernet address you utilized for the connection is accurate with the license file.There isn't a feature available to deliver an error message indicating an incorrect host ID or a mismatch with the license file. Outcome : In the scenario described, utilize "ap-testintool12" to establish a connection with the concurrent license server, ensuring that the host entry in the license file matches. If the host ID matches, the connection will be successful.
... View more
Labels:
Apr 04, 2024
10:18 AM
The issue fixed in IA2023 R2
... View more
Apr 04, 2024
01:54 AM
Are those files from the 'Install speed' folder contained within a JAR?Did the files happen to get duplicated?
... View more
Apr 04, 2024
01:33 AM
Introduction
This article will helps you to understand to keep and replace the old configuration after new installation if old configuration found
Instructions
1. Add show message dialog box and add the message which you want to display to the customer. 2. Put a rule on Message box to check whether the version you are checking is already installed or not, rules > add rule > Check File/Folder Attributes >In File/Folder path, mention the file/folder where the older version installed. 3. Create a jar out of the code below and add an Execute custom code then add the jar and the class name
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.StandardCopyOption; import java.util.Date;
public class OldConfig {
public static void main(String[] args) { // Define the paths for the old and new configuration files String oldConfigFilePath = "path/to/old/config/file.txt"; String newConfigFilePath = "path/to/new/config/file.txt";
// Check if the old configuration file exists File oldConfigFile = new File(oldConfigFilePath); if (oldConfigFile.exists()) { // Backup the old configuration file (e.g., by appending a timestamp) String timestamp = new Date().toString().replace(" ", "_").replace(":", ""); String backupFilePath = "path/to/backup/config/file_" + timestamp + ".txt";
try { // Copy the old configuration file to the backup location Files.copy(oldConfigFile.toPath(), new File(backupFilePath).toPath(), StandardCopyOption.REPLACE_EXISTING); System.out.println("Old configuration file backed up to: " + backupFilePath);
// Optionally, you can delete the old configuration file if needed // oldConfigFile.delete(); } catch (IOException e) { e.printStackTrace(); } }
} }
4. Build and run the Installer.
... View more
Labels:
Apr 04, 2024
01:32 AM
Introduction :
The command-line build should not check the evaluation data if the product has already been registered. some registered users do copy the preferences folder to their build machines in order to easily register the product. As the evaluation data is user specific, the user will see a message saying "This is an incomplete installation of InstallAnywhere 2022 Evaluation."
Troubleshooting Steps :
Step 1 : Double check the Hostname in the license file Step 2 : Delete the com.zerog.ia.Designer.properties file out of <user.home>/InstallAnywhere/220/Premier/references Step 3 : Setting "M" as the value of the middleInitials property in <user.home>/InstallAnywhere/220/premier/references/com.zerog.ia.jdev.properties From, # #Thu Aug 17 05:16:08 PDT 2023 registration.middleInitials=S To, # #Thu Aug 17 05:16:08 PDT 2023 registration.middleInitials=M
... View more
Labels:
Feb 13, 2024
11:03 PM
Version of InstallAnywhere and Java? OS version? It sounds like you are running a pure 64-bit launcher with a 32-bit JVM. Try bundling a 64-bit launcher with the installer to be sure that is what gets used at run time.
... View more
Feb 13, 2024
10:58 PM
If you require further assistance, please feel free to create a new support incident. The support site is expected to be at https://community.flexera.com. Thank you for being a valued Revenera customer!
... View more
Feb 13, 2024
10:46 PM
InstallAnywhere 2023 supports Java 11 on wards, it will not support java 8.
https://docs.revenera.com/installanywhere/rn/Content/helplibrary/Supported_Java_Virtual_Machines.htm#installanywhere2023_releasenotes_734607827_1051614
If you face any issues with Java 11, please paste the error message.
... View more
Feb 13, 2024
05:27 AM
This issue Got fixed in IA2021 SP1.
... View more
Feb 13, 2024
12:29 AM
I believe you're attempting to launch an EXE/Installer that was generated by a newer version from an older version.
... View more
Latest posts by vjayaraman
Subject | Views | Posted |
---|---|---|
384 | Jul 04, 2024 03:31 AM | |
333 | Jul 04, 2024 03:29 AM | |
446 | Jun 20, 2024 01:31 AM | |
738 | May 31, 2024 03:19 AM | |
442 | May 31, 2024 03:15 AM | |
1829 | Apr 04, 2024 10:18 AM | |
810 | Apr 04, 2024 01:54 AM | |
337 | Apr 04, 2024 01:33 AM | |
519 | Apr 04, 2024 01:32 AM | |
1228 | Feb 13, 2024 11:03 PM |
Activity Feed
- Posted Check whether the current user is admin or not through Evaluate custom rule on InstallAnywhere Knowledge Base. Jul 04, 2024 03:31 AM
- Posted Change the name or icon of an installed application through InstallAnywhere : Linux on InstallAnywhere Knowledge Base. Jul 04, 2024 03:29 AM
- Posted Execute a .bat file using InstallAnywhere on InstallAnywhere Knowledge Base. Jun 20, 2024 01:31 AM
- Posted Fatal Exception : java.lang.IndexOutOfBoundsException: Index on InstallAnywhere Knowledge Base. May 31, 2024 03:19 AM
- Posted The License server (localhost:27000) does not support this version of InstallAnywhere on InstallAnywhere Knowledge Base. May 31, 2024 03:15 AM
- Posted Re: JRE patch enhancement in Java 11.0.20 crashing Installers on InstallAnywhere Knowledge Base. Apr 04, 2024 10:18 AM
- Posted Re: Upgraded from IA 2023 R1 to R2. Now two log4j jar files are zero size on InstallAnywhere Forum. Apr 04, 2024 01:54 AM
- Posted Retain old configuration files after new installation if old configuration found on InstallAnywhere Knowledge Base. Apr 04, 2024 01:33 AM
- Posted Unable to build commandline : This is an incomplete installation of InstallAnywhere 2022 Evaluation. on InstallAnywhere Knowledge Base. Apr 04, 2024 01:32 AM
- Posted Re: Error getting at the time of IICS sercure agent installation" Windows_Pure_64_Bit\resource\iawin32.dll not found" on InstallAnywhere Forum. Feb 13, 2024 11:03 PM
- Posted Re: Install Anywhere 2023 Error (com.zerog.ia.auto) - Trying to checkout IAEB version=23.0 on InstallAnywhere Forum. Feb 13, 2024 10:58 PM
- Posted Re: Use OS Java to build an installer instead of the InstallAnywhere embedded Java on Linux on InstallAnywhere Forum. Feb 13, 2024 10:46 PM
- Posted Re: InstallAnywhere fails to launch with Fatal Application Error on InstallAnywhere Forum. Feb 13, 2024 05:27 AM
- Posted Re: License Compatibility on InstallAnywhere Forum. Feb 13, 2024 12:30 AM
- Posted Re: Installanywhere 2013 build issue on InstallAnywhere Forum. Feb 13, 2024 12:29 AM
- Posted Re: Announcing InstallAnywhere 2023 R2? on InstallAnywhere Forum. Feb 13, 2024 12:19 AM
- Got a Kudo for Re: Java Requirement. Jan 29, 2024 11:56 PM
- Posted Re: Java Requirement on InstallAnywhere Forum. Jan 29, 2024 11:02 PM
- Posted Re: Rule doesn't work on InstallAnywhere Forum. Dec 20, 2023 03:51 AM
- Posted Re: Error: Could not create the Java Virtual Machine, extensions mechanism no longer supported on InstallAnywhere Forum. Dec 11, 2023 02:41 AM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Jul 04, 2024
03:53 AM
|