Monday, 30 September 2013

Install shield projects building from Jenkins machine fails with product license has expired

Problem: 
Projects which gets executed from Jenkins are failing with error, please refer Logs section. 
If projects are build from build machine we are not getting any error and build is successful, which indicate Install shield Licence is proper and working perfectly.

Logs:
BuildInstallRelease:
     [echo] Building InstallShield Self Extracting Executable Release
     [echo] (this could take up to 5 minutes to display output)
     [exec] InstallShield (R)
     [exec] Release Builder
     [exec] Copyright (C) 2011 Flexera Software, Inc.
     [exec] and/or InstallShield Co. Inc.
     [exec] All Rights Reserved.
     [exec] 
     [exec] Build started at Sep 30 2013 11:28 AM
     [exec] 
     [exec] ISDEV : fatal error -7159: The product license has expired or has not yet been initialized.
     [exec] PROJECT_ASSISTANT\SINGLE_EXE_IMAGE - 1 error(s), 0 warning(s)
     [exec] 
     [exec] Build finished at Sep 30 2013 11:28 AM
     [exec] Result: 1

Solution:
1. go to services and find the "Jenkins Slave" service. This will be visible only if Jenkins slave has been installed as services.

2. Go to "Log on" Tab:

3. Select "This account" radio button and give build machine (Where this Jenkins Slave is installed) Account and password which should be used by Jenkins Master while firing the build. In this case i have given my build machine account and password.

4. Once we say "Apply". changes will be saved and we will get below warning message.

5. Say "Ok


6. restart "Jenkins Slave" service and fire build from Jenkins Dashboard, it should not give Licencing error again. The Above changes worked for me and hope it will help others as well.


3 comments: