Clarity Client Automation

Expand all | Collapse all

How to create a software package with configuration file

Jump to Best Answer
  • 1.  How to create a software package with configuration file

    Posted 03-15-2017 10:50 AM

    Hi,

     

    I have created a Junos pulse secure msi package under the software package library and it's working perfectly. Now, how do I add a preconfig file in this msi package, which helps to configure Junos during the installation. Should I add another procedure? Then what will be the procedure source file and how do I add the parameters?

     

    Please find the below parameters which I used to install junos pulse manually via cmd.

     

    JunosPulse.x86.msi CONFIGFILE="%USERPROFILE%\Downloads\Default.jnprpreconfig" \passive

     

     

    Thanks & regards,

    Paul



  • 2.  Re: How to create a software package with configuration file

    Posted 03-17-2017 07:30 AM

    Paul,

     

    Did you import the native MSI or are you invoking from a script?

     

    Rgds,

    Steve



  • 3.  Re: How to create a software package with configuration file

    Posted 03-17-2017 07:49 AM

    Steve,

     

    I've import the MSI and created a MSI package. But now I want to add a config file with that MSI package and insert some installation parameters. Is it possible ?



  • 4.  Re: How to create a software package with configuration file

    Posted 03-17-2017 07:56 AM

    Paul,

     

    If you have delivered the package to any test systems, then from the GUI first delete the install records from the packages\installations. Once that is done you can unseal the package, copy any new files into the source\GUID\, and then modify you install procedure to add a new MSI property containing the name of your configuration file.

     

    Rgds,

    Steve.



  • 5.  Re: How to create a software package with configuration file

    Posted 03-17-2017 08:52 AM

    Steve,

    I've unsealed the package and added the config file to the source\GUID\ , also I've create a property [ CONFIGFILE]  for that installation procedure and assigned the value[ "$ip\Default.jnprpreconfig" ]. But, still it's not working.

     

    [Note: Default.jnprpreconfig is name of that config file]



  • 6.  Re: How to create a software package with configuration file

     
    Posted 03-17-2017 09:31 AM

    Try to run the package manually with the same options.  What is the result

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 7.  Re: How to create a software package with configuration file

    Posted 03-17-2017 10:40 AM

    Hi Richard,

     

    I've tried below command in test machine by using cmd and it works.

    JunosPulse.x86.msi CONFIGFILE="<config file name and path>" \passive

     

    Paul



  • 8.  Re: How to create a software package with configuration file

    Posted 03-17-2017 10:49 AM

    Try removing the $ip from the path in the filename parameter, just have the filename. The current path of the job will be the temporary source directory SD creates for the job so specifying the path is not necessary.

     

     

     

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Stephen.McCormick@ca.com<mailto:Stephen.McCormick@ca.com>



  • 9.  Re: How to create a software package with configuration file

     
    Posted 03-17-2017 12:52 PM

    The proper way to do it is to create a transform file.  And pass in the transform file name

     

    There are 2 other options

     

     

    1.      Create an external procedure that runs msiexe and pass in needed parameters as in this example.  $ip is the path of the sd package

     

     

     

     

     

    2.      Create a batchfile install.bat as an example

     

    In that file is

     

    msiexec /I 7zip.exe configfile=configfilename /quiet not passive as there is no place to display the progress bar

     

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 10.  Re: How to create a software package with configuration file

    Posted 03-20-2017 05:02 AM

    I choose the 2nd option and it works perfectly. I've created a batch file with required parameters and put it into a package.

     

    But, now I'm facing with another problem. It's showing an "Interactive Services Detection" message if I'm trying to deploy this package. Could you please tell me how to avoid this message?

     

    Note: I want to deploy this package in windows 7 (x86 & x64) systems.



  • 11.  Re: How to create a software package with configuration file
    Best Answer

    Posted 03-20-2017 06:42 AM
      |   view attached

    When submitting the job select the option “Enable user interaction” this will cause what aver is triggering the Interactive Session to be displayed.

     

     



  • 12.  Re: How to create a software package with configuration file

    Posted 03-17-2017 10:07 AM

    Paul,

     

    When you say not working could you be a bit more specific? Is the config file not being used, do you get an error, what is shown in the SD Agent log and the MSI log etc?

     

    Rgds,

    Steve.