cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vijji123
Level 6

building the installer from the command prompt

Hi,

I am building the installer from the command prompt using build.exe.

>>build.exe %IA_PATH_ESIGN_HOME%\%IA_PROJECT_FILE%

My problem is:

When a particular resource is not found that is required by IA project,Build is failing when i am building with GUI(i.e opening project with IA and Build).

But with build.exe from the command prompt it simply saying following resouce is missing from the project but preparing build successfully.

The following resources are missing from the project:
$ESIGN_HOME$\
f $ESIGN_HOME$\RegAsm.exe

Do i need to give some extra settings for build need to fail in case of preparing from build.exe when a particular resource is not found.

Thanks,
Vijji123
Labels (1)
0 Kudos
(9) Replies
pv7721
Level 20

Open your project with the Advanced Designer, then from the Edit menu open the Preferences. In the newly opened window, in the first tab, (General Settings) there is this option: Command Line Builds where you should set to Fail if you want your command line builds to fail when a referenced file is missing!
0 Kudos
vijji123
Level 6

Hi,

By default that option was checked in the Advanced Designer, still it is failing.
But it is showing "The following resources are missing from the project:" in the console.

Thanks,
Vijji123
0 Kudos
vijji123
Level 6

Any Help on this issue
0 Kudos
pv7721
Level 20

Then maybe it is a regression in IA 2010, we need the developer that monitors this forum to confirm it (I haven't installed this version yet).
0 Kudos
jijujacob27
Level 6

Hi Vijji123,

I tried reproducing this issue using commandline build.exe, but could not get it..
Here is an excerpt from the command line...
BuildInstaller: Asked to load D:\projectsIA\buildIssue\buildIssue.iap_xml
System's temporary directory = C:\Documents and Settings\p7104903\Local Setting
\Temp
Copying D:\projectsIA\buildIssue\buildIssueBuild.iap_xml. Using copy for build.
Original project unchanged
No VM Pack files exist in this directory

The following resources are missing from the project:
D:\games\
f D:\games\Pie2 Gates.exe
The Resource manager was unable to locate all resources for this project.
The Resource Manger settings are: Check for missing resources, fail build if
resources are missing.
To change these settings, change the appropriate properties in
in the Designer's preferences.

Please consult the InstallAnywhere manual for details.
EXITING: 1

D:\IA_Codebase\2010_public_hotfix>dir d:\projectsIA\buildIssue\
Volume in drive D is Data
Volume Serial Number is 8446-F445

Directory of d:\projectsIA\buildIssue

04/10/2010 09:23 AM .
04/10/2010 09:23 AM ..
04/10/2010 09:19 AM 107,100 buildIssue.iap_xml
04/10/2010 09:23 AM 107,100 buildIssueBuild.iap_xml
04/09/2010 06:15 PM buildIssuelocales_Default_Configuration
04/10/2010 09:19 AM 0 buildlog.xml
3 File(s) 214,200 bytes
3 Dir(s) 47,542,972,416 bytes free

D:\IA_Codebase\2010_public_hotfix>


Now based on this, i guess that whatever build output you might be seeing would be the output of a previous successful build.

Please let me know.

Thanks,
Jiju
0 Kudos
vijji123
Level 6

C:\Build>createInstaller.bat
get Project Directory

The required environment file C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\"make.bat" does
exist
Compiling Java source...
*** Please ensure the same Java JDK is used to compile this source as is used in InstallAnywhere ***
C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\
C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\;.;C:\Program Files\InstallAnywhere 2009 Enter
prise\resource\IAClasses.zip;;C:\Program Files\InstallAnywhere 2009 Enterprise\resource\services\services.jar;;C:\Program Files\InstallAnywhere 2009 En
terprise\resource\services\ppk\windowsppk.jar;
create customclasses,classes,lib folders
Compile cllasses...
Done
Create JAR...
added manifest
adding: com/idm/installer/esign/client/CheckDiskSpace.class(in = 2208) (out= 1071)(deflated 51%)
adding: com/idm/installer/esign/client/CheckIDMClientStatus.class(in = 5742) (out= 2909)(deflated 49%)
adding: com/idm/installer/esign/client/ClientInstallerConstants.class(in = 1207) (out= 680)(deflated 43%)
adding: com/idm/installer/esign/client/InstallLogCustomError.class(in = 1465) (out= 726)(deflated 50%)
adding: com/idm/installer/esign/client/InstallLogger.class(in = 813) (out= 486)(deflated 40%)
adding: com/idm/installer/esign/client/LogPrerequsiteChecks.class(in = 2069) (out= 1012)(deflated 51%)
adding: com/idm/installer/esign/client/UnInstallLogCustomError.class(in = 1354) (out= 660)(deflated 51%)
Done
get IA Installed Directory

C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer>cd C:\Program Files\InstallAnywhere 2009 Enter
prise

C:\Program Files\InstallAnywhere 2009 Enterprise>build.exe C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstaller.iap_xml

The access path 'ESIGCLIENT_HOME' which is defined by a system environment points to a non-existent folder, R:\devrelease\staging\ESIGClient\WindowsPC\MSWin\20.1.9091.7. Please quit InstallAnywhere, and change the system environment variable. Then restart InstallAnywhere.
The access path 'DICOM_RESOURCE_HOME' which is defined by a system environment points to a non-existent folder, R:\devrelease\staging\DICOM\WindowsPC\MSWin\20.1.9091.7. Please quit InstallAnywhere, and change the system environment variable. Then restart InstallAnywhere.
The access path 'ESIGCDT_HOME' which is defined by a system environment points to a non-existent folder, R:\devrelease\staging\ESIGCDT\WindowsPC\MSWin\20.1.9091.7. Please quit InstallAnywhere, and change the system environment variable. Then restart InstallAnywhere.
IAResourceBundle: create resource bundle: en
IAResourceBundle: create resource bundle: en
__________________________________________________________________________

InstallAnywhere 2009
Version: 10.0
Build: Build 3657
__________________________________________________________________________

Mon Apr 12 16:31:03 IST 2010

Free Memory: 21486 kB
Total Memory: 24448 kB

2 Command Line Args:
0: -b
1: C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstaller.iap_xml

java.class.path:
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\image_defaults
C:\Program Files\InstallAnywhere 2009 Enterprise\resource
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\compiler.zip
C:\Program Files\InstallAnywhere 2009 Enterprise\IAClasses.zip
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\linking.zip
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\update\update.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\build
C:\Program Files\InstallAnywhere 2009 Enterprise\isus\us.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\dim\dim.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6core.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6access.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6extra.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6http.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6js.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6https.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6ntlm.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6swing.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6util.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6xalan.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\icessl.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ui.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ibm\os400\jt400Small.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\commons-codec-1.3.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\fnp\EccpressoAll.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\fnp\flexlm.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\lax.jar

ZGUtil.CLASS_PATH:
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\image_defaults
C:\Program Files\InstallAnywhere 2009 Enterprise\resource
C:\Program Files\InstallAnywhere 2009 Enterprise\IAClasses.zip
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\build
C:\Program Files\InstallAnywhere 2009 Enterprise\isus\us.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\dim\dim.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6core.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6access.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6extra.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6http.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6js.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6https.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6ntlm.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6util.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\ib6xalan.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ice\icessl.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\ibm\os400\jt400Small.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\commons-codec-1.3.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\fnp\EccpressoAll.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\resource\fnp\flexlm.jar

sun.boot.class.path:
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\rt.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\i18n.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\sunrsasign.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\jsse.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\jce.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\charsets.jar
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\classes

java.ext.dirs:
C:\Program Files\InstallAnywhere 2009 Enterprise\jre\lib\ext

java.version == 1.5.0_11 (Java 2+)
java.vm.name == Java HotSpot(TM) Client VM
java.vm.vendor == Sun Microsystems Inc.
java.vm.version == 1.5.0_11-b03
java.vm.specification.name == Java Virtual Machine Specification
java.vm.specification.vendor == Sun Microsystems Inc.
java.vm.specification.version == 1.0
java.specification.name == Java Platform API Specification
java.specification.vendor == Sun Microsystems Inc.
java.specification.version == 1.5
java.vendor == Sun Microsystems Inc.
java.vendor.url == http://java.sun.com/
java.class.version == 49.0
java.compiler == null
java.home == C:\Program Files\InstallAnywhere 2009 Enterprise\jre
java.io.tmpdir == C:\DOCUME~1\vmothuku\LOCALS~1\Temp\
os.name == Windows XP
os.arch == x86
os.version == 5.1
path.separator == ;
file.separator == \
file.encoding == Cp1252
user.name == vmothuku
user.home == C:\Documents and Settings\vmothuku
user.dir == C:\Program Files\InstallAnywhere 2009 Enterprise
user.language == en
user.region == null
__________________________________________________________________________

BuildInstaller: Asked to load C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInst
aller.iap_xml
System's temporary directory = C:\Documents and Settings\vmothuku\Local Settings\Temp
Copying C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstallerBuild.iap_xml. Us
ing copy for build.
Original project unchanged

No VM Pack files exist in this directory
Using C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstallerBuild.iap_xml for c
onsole build option

Building Installers for: Windows+VM

Active Build Options: Web Default Optimize By Platform

InstallAnywhere temporary directory is located at:: C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Inst
aller\.buildinstaller1.tmp
Creating build directories...
[ 2010-04-12 16:31:10 ] BUILD STARTING
Preparing to build......
InstallAnywhere temporary directory is located at:: C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Inst
aller\.buildinstaller1.tmp
Checking free disk space...
Saving project...
Updating project pieces...
Generating script...
Populating labels...
Updating project pieces...
Generating script...
Populating labels...
XMLScriptWriter: No Installation Objects were skipped
Processing external properties...
Locale directory: C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstallerlocales

Saving external properties...
ExternalPropertySaver.loadPropertiesIfNeeded(): locale file...
...C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstallerlocales\custom_en
does not exist and will be created.
ExternalPropertySaver.saveObjectsExternalProperties: GUIComponentData.bidiOption()
returned an unsupported type for externalization: class java.lang.Integer
ExternalPropertySaver.saveObjectsExternalProperties: GUIComponentData.bidiOption()
returned an unsupported type for externalization: class java.lang.Integer
ExternalPropertySaver.printExternalizableScriptObjectInfo():
GUIComponentData.getBidiOption() returned an unlocalizable value: Integer
Cleaning up...

XMLScriptWriter: No Installation Objects were skipped
Processing external properties...
Saving external properties...
ExternalPropertySaver.loadPropertiesIfNeeded(): locale file...
...C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstallerBuildBtmplocales\c
ustom_en does not exist and will be created.
ExternalPropertySaver.saveObjectsExternalProperties: GUIComponentData.bidiOption()
returned an unsupported type for externalization: class java.lang.Integer
ExternalPropertySaver.saveObjectsExternalProperties: GUIComponentData.bidiOption()
returned an unsupported type for externalization: class java.lang.Integer
ExternalPropertySaver.printExternalizableScriptObjectInfo():
GUIComponentData.getBidiOption() returned an unlocalizable value: Integer
Optimizing installer actions...
Finished optimizing by action
Copying common files...
Finished copying common files
Assembling installer components...
Install SpeedFolder: CDT(BUILD): $ESIGCDT_HOME$\tower\INSTALLDIR\ESignClient\CDT
Install SpeedFolder: CDT(BUILD): $ESIGCDT_HOME$\tower\REGISTER-INSTALLDIR\ESignClient\CDT
(ELAPSED TIME): 16.688 seconds.
Install SpeedFolder: ESignClient(BUILD): $ESIGCLIENT_HOME$\tower\INSTALLDIR\ESignClient
(ELAPSED TIME): 16.703 seconds.
Install SpeedFolder: ESignClient(BUILD): $ESIGCLIENT_HOME$\tower\REGISTER-INSTALLDIR\ESignClient
(ELAPSED TIME): 7.438 seconds.
ZIP file must have at least one entry
(ELAPSED TIME): 0.0 seconds.
uninstallerResources not valid zip. May have had no entries, so will not be bundled.
Finished assembling installer components
Building Windows (VM) web installer...
The Windows (VM) web installer is located at:
C:\ccdepot\vobs\source\prod\InstallMedia\InstallAnywhere\IDM\MedicalRecordsInstaller\CDTClient_Installer\Esign_ClientInstaller_Build_Output\Web_Install
ers\InstData\Windows\VM\IDM_Medical_Records_Client.exe
Building web page for installer applet...
Finished building webapplet.
Build process finished.
Build time breakdown:

Compile and copy: 1 m, 18 s, 345 ms
Updating project pieces: 1 m, 16 s, 829 ms
Writing project to file: 797 ms

Optimize by platform: 9 s, 203 ms
Copying common files: 500 ms
Copying platform specific files: 515 ms
Windows : Optimizations 2 m, 52 s, 689 ms
Windows +VM: web 47 s, 829 ms
Web applet : 297 ms
===========================================================
Total build time: 5 m, 11 s, 379 ms
Build successful
null
Closed.


EXITING: 0



Hi Jiju,

Thanks for your reply.
I am sure that when ever i am building the installer from the command prompt,it is checking and giving information message on console and saying build successfully.

The same you can see above in the red.

If i open the same project in GUI, it is not allowing me to open the project if the specified resource is not found in the defined path.

So finally what i can say is there is problem with command prompt building.

Thanks,
Vijji123
0 Kudos
jijujacob27
Level 6

Hi Vijji123,

There could be one more setting in that preferences dialog, which dictates behaviour for building multiple configurations in command line. It basically asks the user if he/she wants the build to carry on with the next configuration build if a given configuration build has failed. This flag should be set to "Stop Building". Please let me know if this helps.

Thanks,
0 Kudos
vijji123
Level 6

Hi Jiju,

I am working with single project only.Single project picking resources from different home folders.If i open the same project using GUI,at the time of opening it self it giving error with the help of Resource Manager.If i build the same from command prompt it is giving resources not found but building successfully(i.e it is exting 0).

I am attaching General settings which i have in preferences tab here with.

Thanks,
Vijji123
0 Kudos
jijujacob27
Level 6

Hi Vijji123,

This looks like an IA 2009 issue and this is an IA 2010 forum. I was trying to reproduce this issue on IA 2010 and was not reproducible on IA 2010.

Thanks,
0 Kudos