This website uses cookies. By clicking OK, 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.
jackylv
Pilgrim
Jun 02, 2008
12:56 AM
Hi, it is run on Windows XP SP2. I had tried to run it in command line, it work and the final line of the result is "EXITING:0", and I see this line in the result of my batch file run. pv7721 wrote: On what type of Windows does this happen? If you launch build.exe yourproject.iap_xml in the command line, does it work?
... View more
May 20, 2008
10:09 PM
RobertDickau wrote: Please see the help topic Build Tools > Exit Codes. thanks Robert, I have read that help file and try to catch the exit code in a batch file by using ERRORLEVEL. build.exe myProject.iap_xml echo.%ERRORLEVEL% I saw from my command window, the exit code return by IA should be 0 (the last line from IA "EXITING: 0"), but the batch file echo return 4862 for the ERRORLEVEL. Is there any mistake I took here? thanks.
... View more
May 05, 2008
11:27 PM
thanks so much, that really works.
... View more
Mar 31, 2008
02:35 AM
thanks a lot, I still have a concern. is there any license issue of using those code in a commercial software product. since I have buy IA license, do i need separated license for those customer code? thank you. RobertDickau wrote: The following might be one approach to comparing version strings. (No guarantees---it worked once on one system as a messing-around-during-coffee-break test---but it might be useful for the general idea...) [code]// // CompareVersionAction: compares two version strings of the format 1.2.3, // taken from properties $VERSION_A$ and $VERSION_B$, returning // result in $VERSION_COMPARE_RESULT$, which can then be used in // a rule, for example. $VERSION_COMPARE_RESULT$ will be 1 if Version A // is greater, -1 if Version B is greater, and 0 if they're equal. // // Nonnumeric fields (such as "a" in 1.2.a) are treated as zero. // // To compile, run: // javac -classpath ...\IA\IAClasses.zip CompareVersionAction.java // // To package as an action, run: // jar cvf CompareVersionAction.jar CompareVersionAction.class // // Afterward, can use in an Execute Custom Code action. // // TODO: // * generalize not to use hard-coded variable names // * show error for empty VERSION_A and VERSION_B values // * write steps to debug log file // * handle semi-numeric fields such as "2a" better // * need to handle negative fields differently? currently 1.-2.3 goes through // import com.zerog.ia.api.pub.*; public class CompareVersionAction extends CustomCodeAction { public void install(InstallerProxy ip) { // read the two properties, split at dots String versionA = ip.substitute("$VERSION_A$"); String versionB = ip.substitute("$VERSION_B$"); String[] versionAPieces = versionA.split("\\."); String[] versionBPieces = versionB.split("\\."); // assume they're equal, try to disprove this later String result = "0"; int longerLength = Math.max(versionAPieces.length, versionBPieces.length); for (int i = 0; i < longerLength; i++) { int versionAField = 0; int versionBField = 0; try { versionAField = Integer.parseInt(versionAPieces); } // non-numeric or missing field assumed to be zero catch(NumberFormatException nan) { versionAField = 0; } catch(ArrayIndexOutOfBoundsException oob) { versionAField = 0; } try { versionBField = Integer.parseInt(versionBPieces); } catch(NumberFormatException nan) { versionBField = 0; } catch(ArrayIndexOutOfBoundsException oob) { versionBField = 0; } if (versionAField > versionBField) { result = "1"; break; } if (versionAField < versionBField) { result = "-1"; break; } } ip.setVariable("$VERSION_COMPARE_RESULT$", result); } public String getInstallStatusMessage( ) { return "..."; } public void uninstall(UninstallerProxy up) { /* do nothing on uninstall*/ } public String getUninstallStatusMessage( ) { return "..."; } }[/code]
... View more
Latest posts by jackylv
Subject | Views | Posted |
---|---|---|
318 | Jun 02, 2008 12:56 AM | |
9139 | May 23, 2008 02:43 AM | |
300 | May 20, 2008 10:09 PM | |
8970 | May 20, 2008 01:13 AM | |
452 | May 05, 2008 11:27 PM | |
6573 | May 05, 2008 02:00 AM | |
792 | Mar 31, 2008 02:35 AM | |
231 | Mar 31, 2008 02:33 AM | |
406 | Mar 25, 2008 04:37 AM | |
792 | Mar 25, 2008 04:27 AM |
Activity Feed
- Posted Re: why my command line build return 4862 on InstallAnywhere Forum. Jun 02, 2008 12:56 AM
- Posted why my command line build return 4862 on InstallAnywhere Forum. May 23, 2008 02:43 AM
- Posted Re: build using IA command line, what is the return value of ERRORLEVEL on InstallAnywhere Forum. May 20, 2008 10:09 PM
- Posted build using IA command line, what is the return value of ERRORLEVEL on InstallAnywhere Forum. May 20, 2008 01:13 AM
- Posted Re: is there any function in IA can perform as "Dynamic File Linking" like IS on InstallAnywhere Forum. May 05, 2008 11:27 PM
- Posted is there any function in IA can perform as "Dynamic File Linking" like IS on InstallAnywhere Forum. May 05, 2008 02:00 AM
- Posted Re: How to compare product versions during installation on InstallAnywhere Forum. Mar 31, 2008 02:35 AM
- Posted Re: VM bundle on InstallAnywhere Forum. Mar 31, 2008 02:33 AM
- Posted Re: update product version without having to open .iap_xml file on InstallAnywhere Forum. Mar 25, 2008 04:37 AM
- Posted Re: How to compare product versions during installation on InstallAnywhere Forum. Mar 25, 2008 04:27 AM
- Posted How to compare product versions during installation on InstallAnywhere Forum. Mar 20, 2008 09:18 PM
- Posted Re: Check if this is Upgrade on InstallAnywhere Forum. Feb 21, 2008 12:22 AM
Contact Me
Online Status |
Offline
|
Date Last Visited |
Mar 18, 2019
12:11 PM
|