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 23, 2008
02:43 AM
Hi all, I used command line to build my project (build.exe myproject.iap_xml) in a batch file. in the batch file, I wrote the following: build.exe myproject.iap_xml ECHO.%ERRORLEVEL% finally, it prints the ERRORLEVEL value is "4862". in the cmd window, I saw the last line of the IA build saying "EXITING:0". I need this ERRORLEVEL value to identy whether the build is successful or not, I check from the help file, 4862 is not list in the table and since IA build saying that "EXITING:0", I thought that the ERRORLEVEL value should be "0". do I do anything wrong here? thanks?
... View more
Labels
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 20, 2008
01:13 AM
Hi all, I am using a bat file to build my project, call "build.exe myproject.iap_xml". what is the value of ERRORLEVEL will this command line return? Or, how can I notice that the build is successful or failed? thanks.
... View more
Labels
May 05, 2008
11:27 PM
thanks so much, that really works.
... View more
May 05, 2008
02:00 AM
Hi all, In my Installer, I would like to pick up files in a source folder (e.g. results/lip/), the file name in this folder will be changed from version to version (e.g. from "Lip1aa.lip" to "Lip1bb.lip"). In InstallShield, I can set a "Dynamic File Link", just tell IS that to pick up all *.lip file in source folder "results/lip". I would like to know if there is any function in InstallAnywhere can perform this. Or how can I do setup my InstallAnywhere to fix this requirement. thanks so much..
... View more
Labels
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
Mar 31, 2008
02:33 AM
Hi, the VM budle with your installer is run as you run the installer, and it will not remain in the PC when you finish the installation. If you want your uninstaller work, you should install the JRE to the PC. ramalaks wrote: i choose bundle with VM but install JRE "never". installer works fine. but not uninstall? why does not this bundle VM in the uninstaller also?
... View more
Mar 25, 2008
04:37 AM
you can write a script using XML:: DOM to change the elements in a xml file. I have a question want to ask you that, how to use this product version in your product? can we compare the product version and determine that if it is a upgrade install? thanks. ramalaks wrote: We have every build setup that requires increase of the version number by 1 in the subdivsion automatically in a script without having to open the .iap_xml using IDE. i know we could do that in installshield .ism files using vbscript. anything equivalent to that available for .iap_xml that i could use.?
... View more
Mar 25, 2008
04:27 AM
thanks Robert, I have tried your suggestion, however, Find Component in [InstallAnywhere] Registry action can only find component with UUID. unfortunately, none the component I am going to packed into the installer have a UUID. thank you anyway.. RobertDickau wrote: The Find Component in [InstallAnywhere] Registry action supports version comparisons, so if you can base your decision on an installed IA component, that might work. Offhand I'm not aware of a built-in version-compare operator for the Windows registry, however.
... View more
Mar 20, 2008
09:18 PM
HI all, I have a question. I am developing an installation of our product, I put the product version to the windows registry. For the next installation, I will read the version from registry and compare with the current version I want to install. How can I know that it is older or newer since I cannot find any comparation action or rule that support "<" or ">". can I perform this without customer code? thanks.
... View more
Labels
Feb 21, 2008
12:22 AM
I am surprised too, I wonder why IA cannot work this out like IS, which can handle this by updating the minor version number. I can see there is product version field in IA, if it is not used for this purpose, what is it used for? ridch01 wrote: I ran into this problem on Windows. I used the registry to keep track of what is installed. It then checks to see if certain registry keys exist already. I'll eventually need to support other OS's besides Windows. I'm not sure the best approach. I guess we will need to somehow register our software with the OS. On HP, I thought there was a tool called SAM. (It's been a while since I worked with Unix, so I'm scratching my head.) I was somewhat surprised that IA did not really handle this for us.
... View more
Latest posts by jackylv
Subject | Views | Posted |
---|---|---|
291 | Jun 02, 2008 12:56 AM | |
9112 | May 23, 2008 02:43 AM | |
275 | May 20, 2008 10:09 PM | |
8945 | May 20, 2008 01:13 AM | |
416 | May 05, 2008 11:27 PM | |
6537 | May 05, 2008 02:00 AM | |
741 | Mar 31, 2008 02:35 AM | |
206 | Mar 31, 2008 02:33 AM | |
368 | Mar 25, 2008 04:37 AM | |
741 | 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
|