Sep 27, 2013
05:12 PM
This is not quite the same as http://community.flexerasoftware.com/showthread.php?207316-IA-reports-erro-when-building-from-command-line-but-builds-fine-with-GUI I noticed we get these types of error when building on the command line, especially when setting the productVersion value: Unable to invoke the method: Vector.addElement() Some installer configuration information may be lost java.lang.NoSuchMethodException at Flexeraan7.az(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.ar(Unknown Source) at Flexeraan7.am(Unknown Source) at Flexeraan7.ab(Unknown Source) at Flexeraads.ap(Unknown Source) at Flexeraads.es(Unknown Source) at Flexeraads.a4(Unknown Source) at Flexeraadz.run(Unknown Source) Unable to invoke the method: Vector.addElement() Some installer configuration information may be lost java.lang.NoSuchMethodException at Flexeraan7.az(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.ar(Unknown Source) at Flexeraan7.am(Unknown Source) at Flexeraan7.ab(Unknown Source) at Flexeraads.ap(Unknown Source) at Flexeraads.es(Unknown Source) at Flexeraads.a4(Unknown Source) at Flexeraadz.run(Unknown Source) Unable to invoke the method: Vector.addElement() Some installer configuration information may be lost java.lang.NoSuchMethodException at Flexeraan7.az(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.ar(Unknown Source) at Flexeraan7.am(Unknown Source) at Flexeraan7.ab(Unknown Source) at Flexeraads.ap(Unknown Source) at Flexeraads.es(Unknown Source) at Flexeraads.a4(Unknown Source) at Flexeraadz.run(Unknown Source) Unable to invoke the method: Vector.addElement() Some installer configuration information may be lost java.lang.NoSuchMethodException at Flexeraan7.az(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.as(Unknown Source) at Flexeraan7.ar(Unknown Source) at Flexeraan7.am(Unknown Source) at Flexeraan7.ab(Unknown Source) at Flexeraads.ap(Unknown Source) at Flexeraads.es(Unknown Source) at Flexeraads.a4(Unknown Source) at Flexeraadz.run(Unknown Source) XMLScriptWriter: No Installation Objects were skipped Please help. greenaj
... View more
Labels
- Labels:
-
InstallAnywhere 2012
Sep 27, 2013
12:14 PM
I don't think you can. I posted about this in http://community.flexerasoftware.com/forumdisplay.php?288-InstallAnywhere-2012. No one has answered me yet, I would like to find a Flexera approved method of supporting this. I resorted to modifying the component version contents using Python scripting with some XPath navigation and XML document manipulation libraries (lxml etree). For such, PowerShell, VBScript + MSXML, Ruby, etc. should work just fine. Just be sure that the XML declaration of the modified project that you save is NOT or you will get some freakish error messages echoed to STDOUT about the xml attributes being invalid when doing a command line build. The package will still build, and the single quotes are standard and should work, but InstallAnywhere's build give you some spooky messages. The best way to find the component you are interested in is using the following XPath expression: (NOTE: This is Python 3) r = root.xpath('/InstallAnywhere_Deployment_Project/installationObjects//object[@class="com.zerog.ia.installer.InstallComponent" and ./property[@name="componentName"]/string[.="YOUR_COMPONENT_NAME_HERE"] ]') if len(r): prjFileIsModified = True r[0].find("property[@name='versionMajor']/int").text = vers[0] r[0].find("property[@name='versionMinor']/int").text = vers[1] r[0].find("property[@name='versionRevision']/int").text = vers[2] r[0].find("property[@name='versionSubRevision']/int").text = vers[3] Where "YOUR_COMPONENT_NAME_HERE" is the name of your component. That frees you from having to use the objectID attribute or the component guid. You see, I think that the ... in the XML forces you to use and integer as opposed to a build variable. Advanced designer won't even let you enter a variable for any of the 4 version values (Major, Minor, etc.). Good luck. This should be more easily addressed for automated builds. I tried to use the InstallAnywhere automation API, but I can't get it to work reliably. If you open up a project in Java and simply save it someplace else, I have been getting a lot of information stripped out. If you managed to get that to work, I would love some advice.
... View more
Sep 18, 2013
12:12 PM
You may want to enclose the arguments in quotes if there is a space in the path.
... View more
Sep 12, 2013
02:02 PM
Your source path variables are in %USERPROFILE%\InstallAnywhere\140\Enterprise\preferences\C:\Users\agreen\InstallAnywhere\140\Enterprise\preferences\com.zerog.ia.PathManager.properties What I have found is that once a source path variable is defined there, e.g. $MY_SOURCE_DIR$, setting IA_PATH_MY_SOURCE_DIR as an environment variable in the command line build DOES NOT CHANGE IT. I have found dealing with file and path variables in InstallAnywhere painful and frustrating. You could script the the changing of the variables in the com.zerog.ia.PathManager.properties file in each command line build. That is ugly. One approach I have take is to define a source path var e.g. $MY_WINDOWS_SRC$ pointing to something like C:\Development\MyProject\build. Now in this directory you do this mklink /D libs "C:\Development\MyProject\4.5.6\libs" The IA project file, foobar.ia_xml references files in C:\Development\MyProject\build\libs. The symlink in Windows Vista or better saves you the heartache. Hopefully you are not stuck building with Windows 2003/XP. If you're using Linux, great! Windows 2008/7 can ease some of the pain when dealing with switch source paths during build. Since you are using ClearCase, I extend my sympathies.
... View more
Sep 12, 2013
01:32 PM
A lot of the build.exe output to STDOUT seems like noise, but towards the end: IAScript.loadScript() failed: Flexeraak4: C:\Program Files (x86)\InstallAnywhere 2012\null\My_ProductBuild.iap_xml (The system cannot find the path specified) You may be asked to attach this project file to an email. ============================================================ The project C:\Project\For_Test\My_Product\My_Product.iap_xml could not be loaded. Terminating build. It seems to be confused about a path, hence "C:\Program Files (x86)\InstallAnywhere 2012\null\My_ProductBuild.iap_xml" You may try placing your project file in C:\MyPathNoSpaces\My_Product.iap_xml From a DOS prompt, C:\Windows\system32>cd C:\MyPathNoSpaces C:\MyPathNoSpaces>SET PATH=%PATH%;C:\Program Files\InstallAnywhere 2012 C:\MyPathNoSpaces>build My_Product.iap_xml See if that works.
... View more
Sep 12, 2013
12:29 PM
I'll answer my own post. You can't. Open up the .ia_xml project file with your favorite XML editor and find the CDATA section(s) containing the file names. There is where you edit. This may not be supported, but it is the only way. This may be better than having to delete files in Advanced Designer and add them in again with paths containing variables.
... View more
Sep 06, 2013
12:58 PM
I needed to change some folders containing installation files and change hard coded paths ones containing $IA_PROJECT_DIR$. So far, the only way I have accomplished this is by editing the iap_xml project file. Advanced Designer seems to have editing the paths disabled. This this the way it is supposed to work? I don't want to have to delete the files and re-add them. I would also like to use variables to compose the names of source values, such as libMySdk.so.$MAJOR_VER$.$MINOR_VER$.$REV_NUM$. These file names change with builds. Is there a "best practices" way of doing this, or do you manually edit the iap_xml file? I am new to InstallAnywhere, mostly familiar with Wix (Windows only MSI) and NSIS. For both of these tools, you can do this. Cheers, greenaj
... View more
Labels
- Labels:
-
InstallAnywhere 2012
Latest posts by greenaj
Subject | Views | Posted |
---|---|---|
2026 | Sep 27, 2013 05:12 PM | |
1575 | Sep 27, 2013 12:14 PM | |
594 | Sep 18, 2013 12:12 PM | |
1292 | Sep 12, 2013 02:02 PM | |
565 | Sep 12, 2013 01:32 PM | |
511 | Sep 12, 2013 12:29 PM | |
1851 | Sep 06, 2013 12:58 PM |
Activity Feed
- Posted Weird error messages to STDOUT for command line build. on InstallAnywhere Forum. Sep 27, 2013 05:12 PM
- Posted Re: How to set component version at build time? on InstallAnywhere Forum. Sep 27, 2013 12:14 PM
- Posted Re: Error when Register a Window service on InstallAnywhere Forum. Sep 18, 2013 12:12 PM
- Posted Re: Adding files with variable in path on InstallAnywhere Forum. Sep 12, 2013 02:02 PM
- Posted Re: Strange error when build IA project with command line "build.exe My_Product.iap_xml" on InstallAnywhere Forum. Sep 12, 2013 01:32 PM
- Posted Re: How to edit source files paths in Install pane Advanced Designer? Can't seem to. on InstallAnywhere Forum. Sep 12, 2013 12:29 PM
- Posted How to edit source files paths in Install pane Advanced Designer? Can't seem to. on InstallAnywhere Forum. Sep 06, 2013 12:58 PM