/build/static/layout/Breadcrumb_cap_w.png

How to log info with Installshield

I have written a script to build the Installshield project file(.ism) to setup files(.msi or .exe based on the release settings..).

So when the user runs the AutoIT script the process will be automatic for multiple ism files.

Func Build($sOutputIsm,$ReleaseName,$sFilePath="None",$NewName="None")  ;build the ism to get the msi

    If not FileExists($sOutputIsm) Then
        Logging("File Not Found: $sOutputIsm$",4)
        MsgBox($MB_OK + $MB_ICONERROR, "Error", "Could not find file ""$sOutputIsm$"".")
        Return
    EndIf
    Logging("Started Building $sOutputIsm$",4)
    ShowTrayTip($AppName, "Started Building $sOutputIsm$", 10, $TIP_ICONASTERISK)
    Dim $sBuildExe,$sBuildCommand,$Ret
    $sBuildExe = FindFileInPath("ISCmdBld.exe", "%ProgramFiles(x86)%\InstallShield")
    $sBuildCommand = """$sBuildExe$"" -p ""$sOutputIsm$"" -r ""$ReleaseName$"" -s"
    ;MsgBox(0,"",$sBuildCommand)
    $Ret = RunWait($sBuildCommand)
    If $Ret <> 0 Then
        ShowTrayTip($AppName,"ISM Build Failed, Please build the ISM Manually.",10, $TIP_ICONHAND)
        MsgBox($MB_OK + $MB_ICONERROR, "Error", "Could not build ""$sOutputIsm$"". Please build manually.")
        Logging("Error $Ret$ while Building $sOutputIsm$",4)
        Return;Exit(1)
    Else
        ShowTrayTip($AppName,"ISM Build Completed",10, $TIP_ICONASTERISK)
        Logging("Completed Building $sOutputIsm$",4)
        if not StringCompare($NewName, "None")=0 then MoveEXE($sFilePath,$NewName)
    EndIf
EndFunc

The problem is when we run the ISCmdBuild.exe the RunWait will give whether fail or success but not what are the errors we got.
If we use Run, it will give that logging but we don't have the feature of getting fail/success as RunWait.

If we run the above code by removing -s and using redirection operator > to a file, it is running manually but failing with autoit.

Like
 

$sBuildCommand = """$sBuildExe$"" -p ""$sOutputIsm$"" -r ""$ReleaseName$"" > c:\logs\uday.log"

Any help on this??

 

And also, in some machines the installshield shortcut is launching fine as licensed version but with ISCmdBld.exe it is giving error as licensing info missing or not registered.

 

Any suggestion on this too??


1 Comment   [ + ] Show comment
  • Through GUI I can see option only to check the license status of itself.

    Can you tell how to check the license status of the iscmdbld from the IDE?? - ur00361883 5 years ago

Answers (1)

Posted by: Badger 5 years ago
Red Belt
0

there is separate licensing for using iscmdbuild on remote machines, make sure you have that in place.

 


Comments:
  • we are connecting to license server for licensing...For other machines in our team, the commandline version is working but not in my machine. - ur00361883 5 years ago
    • just your machine?? Is DNS resolving the server name OK - Badger 5 years ago
      • yes..all other shares are working.. - ur00361883 5 years ago
      • its not about shares. if installshield is working on your machine, you might still need another separate license for the iscmdbld part of the app. - Badger 5 years ago
  • We are connecting to the internal license server for licensing of installshield.

    In my peers machines, iscmdbuild.exe is also working.But it is not in my machine.Even the "Flexnet Licensing Service" is also running.

    Could you please suggest what I need to check in that machine o troubleshoot the same. - ur00361883 5 years ago
    • 'not working' = fails to launch?? Or can be launched by fails, is there a log or anything in eventvwr?? is it a licensing issue, or do you just think its a license issue - Badger 5 years ago
      • When I build the exe using Wizard then it is building correctly.When I do with ISCMDBuild.exe then I am getting the console output as below screenshot.

        http://www.mediafire.com/view/rjafp97c9j0vqpq/ISCmdBuild.exe+error.PNG

        http://www.mediafire.com/download/rjafp97c9j0vqpq/ISCmdBuild.exe+error.PNG - ur00361883 5 years ago
      • Below is the console output, if you can't access the screenshot.

        Microsoft Windows [Version 6.1.7601]
        Copyright (c) 2009 Microsoft Corporation. All rights reserved.

        C:\Users\kirud01>"C:\Program Files (x86)\InstallShield\2014\System\IsCmdBld.exe"
        -p "H:\ERwin ISM\x64\ISM\ERwin Data Modeler r9.64.02_64bit.ism" -r "Release 1"
        InstallShield (R)
        Release Builder
        Copyright (c) 2013 Flexera Software LLC.

        All Rights Reserved.

        Build started at Aug 19 2016 03:07 PM
        Building Release: Release 1

        ISDEV : fatal error -7159: The product license has expired or has not yet been i
        nitialized.
        Product Configuration 1\Release 1 - 1 error(s), 0 warning(s)

        Build finished at Aug 19 2016 03:07 PM - ur00361883 5 years ago
      • Can you check the license status of the iscmdbld from the IDE?? - Badger 5 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ