Want to create Multi Platform installers, troubleshoot installers, and want to develop custom code.....
Monday, June 29, 2009
Adding external jar to your CustomCodeAction
Installing JBoss server and application using IA
Monday, April 27, 2009
HTML Display in InstallAnywhere swing Panel.
Some more InDepth to segmentation fault on UNICES..
- Use gdb to track exact source of problem.
- Make sure correct hardware installed and configured.
- Always apply all patches and use updated system.
- Make sure all dependencies installed inside jail.
- Turn on core dumping for supported services such as Apache.
- Use strace which is a useful diagnostic, instructional, and debugging tool.
- Google and find out if there is a solution to problem.
- Fix your C program for logical errors such as pointer, null pointer, arrays and so on.
- Analyze core dump file generated by your system using gdb
Re: Segmentation Fault
Hi,Generally why does segmentation fault appears in Linux machine when an installer with a huge payload is run. But this does not happen while running a simple project in the same machine with all the java compatibility. I believe this fault will appear when the rules of the Linux machine are violated for exampe: trying to access a resource in the machine which is not available. So, does the large installer tries the scenario like what i have mentioned above? Please explain to me.Thanks for your time.Tony
--
FreshersDirect Team
http://www.freshersdirect.com
Saturday, April 18, 2009
Re: InstallAnywhere details
The reason being, execute run script uses Java Process.getRuntime.exec() thread to run the batch or command passed. Here Process.waitfor() method is used, if the underlying script uses @echo ON inside the script the behavior is very abrupt. Only the first script's 1 to 6th or 7th steps are run after that the script keeps on waiting thereby making the installation hang.
I would suggest to use your own plugin for executing command or batch specifically when the command or script calls another shell to execute the sequence of steps.
In the plugin spawn a thead and dont wait for the thread to complete. here the disadvantage is you will not get the complete the stderr, stdout till the theread completes but its a nice tradeoff done where you want to set gurentee for the underlying command to complete sucessfully.
I have developed a plugin which you can use if you want.
Hi,I am a beginner with IA and I want to know about the Execute Script/Batch action and how it works. I believe the exit code in this action is only for the action and not for the script or the commands it executes. So, how can i get an exit code for the executed script? Please explain to me in a detailed manner.ThanksTony
Friday, April 17, 2009
Re: Help
Wait I will explain in detail
If your requirement is just to find the end users machine architecture
either run a custom java code or run a execute command utility in IA found under Add Action --> General Tab,
The command to run in uname -m, it will return u i386 which is 32 bit,
To find out more about various OS check out this link for determining the OS architecture, http://www.stata.com/support/faqs/win/64bit.html
Regarding running this write a Java class which would determine the OS version and subsiquently the OS architecture. Store the result in a IA variable
Code snippet
<>
class MyCustomCode(InstallerProxy ip) extends IACustomCode
{
/* Run the logic to store the OS tye in a variable say MyOS */
ip.substitute("OS_TYP", MyOS) // here the value of MyOS determined earlier is stored in a IA valiable $OS_TYP$
}
Inside the Install action under ur IDE you can add a compare installanywhere action to install any specific file or folder
e.g $OS_TYP$ equals 64bit then install else move ahead.
I do not have an IDE infront of me right now otherwise I would have sent you some screen shots.
If you are still face the issue I will create a sample project for you...for this logic
****************************************************************************************************
I am trying to download the enterprise version.
But there is still one doubt which is - the panel "get user input" is for the end user not for the developer (who is using InstallAnywhere for making installer e.g. me).
Can u throw some light on it please???
Actually I want InstallAnywehre to prompt me (developer) for taking the input as 32 bit or 64 bit at the time of building the project as shown below as per the requirement of the end user.
Thursday, April 16, 2009
An issue with 32 bit and 64 machine
Problem :
Installerwhich build the application for multiple platforms (targeting Linux, AIX, HP-UX, Solaris and Windows).My application has binaries for above 5 platforms each of 32bit and 64bit (so kind of 10 platforms).
I have a directory structure like below
Application
|
|-----Linux
| |-Linux32
| |-Linux64
|
|-----AIX
| |-AIX32
| |-AIX64
|
|-----HP-UX
| |-HP-UX32
| |-HP-UX64
|
|-----Solaris
| |-Solaris32
| |-Solaris64
|
|-----Windows
| |-Windows32
| |-Windows64
|
Now what required is when I build as shown below my application and check the Linux box it should prompt me to take input as "Linux32" or "Linux64" (user input) so that the Linux installer of 32bit or 64bit is built.
Solution :
Its quite easy to do that, installanywhere has an inbuild functionality to check the OS architecture. You can store the OS architecture in the IA variable and implement your logic once you are known to end users OS architecture.
You will find this feature in Organization settings.
InstallAnywhere buildoutputs are independent to platform architecture, you can build your application for any desired platform with or without VM and run it. At the run time have a user input panel or at rutime decide the architecture of the user machine and cotinue with your installation logic.
Like this
Application ----
Folder 1 <Only if 32 bit>
Folder 2 <Only if 64 bit>
In the install section you can put a rule of compare installAnywhere variable so that it gets installed only when the rule is met.
Tuesday, February 24, 2009
Uninstaller Errors
When the uninstaller was called it threw a java exception saying target invocation exception stating
ZeroGu5: c:\program files\OpenSource\InstallFrameWork\Uninstaller\resource\iawin32.dll not found
at ZeroGa2.b(DashoA10*..)
at ZeroGa2.b(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.b(DashoA10*..)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA10*..)
at com.zerog.ia.installer.Main.main(DashoA10*..)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
Upon inspection I found that the resource folder that contains platform specific dll's under the uninstall folder. Even the global registry file that contains the file/folder installation was also found to be missing, so practically the uninstaller cannot work without this file.
Scratching my head for hours I build the installer with high debug enabled (jvm parameters -Dlax.debug.level=3 -Dlax.debug.all=true) with stderr and stdout directed to a file, but could not trace out any specific problem.
The installer archive contained all the resources that are required inside the uninstall folder, so there was no question that its a build issue.
Then I started the the dry run of the program my normalizing the payload to zero, modifying the project information properties and found that the product name had a trailing space at the end
Once the trailing space was removed the installation and uninstallation started working properly.
Although a is a kind of cosmetic defect but took hell lot of time to dig it out. Probably the Install Anywhere team forgot to check the product name property for any trailing spaces that can disrupt their XML transformation logic.
Monday, February 2, 2009
Avinash Anand
An accomplished software engineer looking for a challenging opportunity with a globally respected organization that provides ample opportunities to showcase my expertise, enhance my knowledge and allows me to contribute as a positive factor in the progress of the company. Active contributor in open source world, currently working in Google appengine and Java based open source cross platform installer framework.
Professional Summary
* Over 42 months of Development experience in Java/J2EE (Core Java, JSP, Servlet, JDBC, XML).
* Responsible for System Analysis, Design, Coding, and Qualitative experience in managing project modules independently.
* Extensive exposure to: Waterfall and Agile Development approaches.
* Development processes like Analysis, Design, Coding, Testing and Maintenance.
* Client-Server Architecture and MVC Architecture.
* Object Oriented Analysis and Design (OOAD).
* Worked with protocols such as SNMP, TCP/IP, UDP, SIP, H.323.
* Well exposed to both Client/Server and Web environment.
* Experience in doing unit testing using JUnit. Created test plan for unit testing.
* Used Rational Purify Plus for analyzing code coverage, code optimization and memory management.
* Interactive team player and proactive personality.
* Experience in installation, configuration and maintenance of Operating Systems, Web Servers, Database Systems and Mail Servers.
Product Software Components :
Operating Systems : Windows 2000/2003, Sun Solaris, IBM AIX
Databases : SQL Server 2000, Oracle, DB2
Web Server : Microsoft Internet Information Server, Sun ONE Web Server, IBM HTTP Server, Tomcat
Application Server : IBM WebSphere Application Server
Work Profile includes :
* Involved in creating multi Installer for the product using ISMP 5.0 and InstallAnywhere over various platforms such as Windows AIX and Solaris.
* Worked in installer migration from ISMP to InstallAnywhere 2009.
* Written blog over InstallAnywhere http://installanywhere.blogspot.com
* Involved in writing Java Beans for integration with Install Shield, custom code and plugin development for InstallAnywhere
* Worked with Accresso support team bug reporting and getting timely fixes.
Integration of various modules created under the project.
* Addressed various bugs filled against the installer.
* Documented all the defects to be addressed against the product in concern with the current minor release
* Created Installer framework for the current service pack release over ISMP 5.0 for all the platforms supported by the product Windows, AIX and Solaris
* Worked on cumulative service project. Designed completely new architecture for the service pack layout.
* Preparing/Attending the Interim/Internal Audits.
* Project Status Reporting and other related Escalations to the Development Manager.
Skill Matrix
Languages : Java, C, C++, Junit, Python
Operating System : Windows, Linux, AIX, Solaris.
Database/RDBMS : Oracle, DB2, MS SQL Server 2000.
Application Server : IBM WebSphere Application Server, Tomcat
Web Server : Microsoft Internet Information Server, IBM HTTP Server
Scripting : JavaScript, XML
Knowledge of : VMware, LPAR and TDD
Contact me
avinash.anand007(at)gmail.com
Location : Pune, India
Thursday, January 29, 2009
InstallAnywhere global registry
Some times it becomes tough for the end user or project author to get rid of a corrupt installation or uninstallation.
.com.zerog.regostry.xml file contains product name, version, UUID and description apart from the components and DIM registration information. This is typically useful if you have to identify a IA installation from a different framework say Install Shield.
This file is stored in /var directory or user on the UNIX machine if the installation is done by the root user else the file is stored in the home folder of the user.
In case of windows the file gets created under windows home drive (c: or d:)
A case study and its remedy
Q My installer/uninstaller did not run successfully! Can not proceed with a fresh installation
Ans- Remove/rename the global registry file and try running the installer/uninstaller
Q Needs to identify the components installed by the installer or need to find which components were removed by the uninstaller
Ans- Check the xml file it will contain the component information, the file in itself is self explanatory in nature.
Q. By mistake I have removed the global registry file but installation is intact, will by uninstallation work properly?
Ans- Yes absolutely, if the uninstaller does not find the global registry file it will look for the file at $USER_INSTALL_DIR$/Uninstall_$PRODUCT_NAME$/.com.zerog.registry.xml file it contains all the information about that individual installation.
So conclude with the global registry file can help the user to manipulate the installation or uninstallation in a desired manner and is sometimes very helpful in recovering the product instance after a corrupt installation