IT Management Suite

  • 1.  Deployment package + copy and replace file

    Posted Feb 29, 2016 11:14 AM

    I need to create a deployment package for Cisco that once installed it copies and replaces a file with the same name while making the package available for the users to download and install it themsleves.

    The file is a config file that needs replacing so it has the updated vpn settings etc. I know how to copy a file using a deplyment package but the file it is replacing wont replace it using a task as the file is in use so it stops the job from copying and replacing the file. The developers have advised that if we install the exe and then copy and replace the file.

    Whats the best way to achive this while still having the option for the users to download and install it themselves.



  • 2.  RE: Deployment package + copy and replace file

    Posted Feb 29, 2016 11:26 AM

    I have created a client job that has 2 tasks, the first taks installs fine and the 2 tasks successfully copies and replaces the file. I just to figure out how to make the client job available for download.



  • 3.  RE: Deployment package + copy and replace file

    Trusted Advisor
    Posted Feb 29, 2016 11:33 AM

    Are you saying,

    1. You have a cisco package which to deploy needs an updated VPN configuration file.
    2. You've been advised to install the exe and then replace the config file
    3. You've tried this and this fails as the config file is locked.

    If the above is correct, is there a reason why you can't repackage software to include the VPN file that you want?



  • 4.  RE: Deployment package + copy and replace file

    Posted Mar 07, 2016 01:27 PM

    We've approached this in 2 ways here:

    1. When uploading the installer package to the catalogue, also include the files to be copied post-install along with a script that basically calls the installer, and then copies the files to the destination afterwards e.g.

    msiexec /i installer.msi /qn

    copy filetobecopied.txt c:\destinationfolder

    Use that script as your commandline in the package resource.  The downside with that is you have to create your own software detection rules etc.

     

    2. Create a separate task that copies the files (copy file task), and include that task as a post-install task in the managed software delivery policy or in a job that calls the quick deploy task for the software installer first.

    Hope that helps.



  • 5.  RE: Deployment package + copy and replace file

    Posted Mar 24, 2016 02:17 PM

    So I have a similar issue - I need to push Google Chrome enterprise to over 300 computers.
    Google supplies an MSI file for enterprise use.
    But as soon as it's installed I need to replace a single file that has the master default preferences in it - these determine how it will first open, what the home page is and so on.
    It is called master_prefrences and goes into the same folder as the Chrome exe file once Chrome is installed.
    Of course installing Chrome can be done with the software management if I ever get this 747 if the software world figured out - the trick is I need to bundle a task with it that will copy that file intot he Chrome program folder AFTER Chrome is installed.
    I can't figure that part out - I know it will need to be a task - I can do that and other things via command lines. (also set a service to disabled)
    But my questions are - what do I tell the task to do - where is the file going to be copied from - I need to supply a path.
    It is currently in the SAME folder on our Altiris server that the Chrome MSI is in.
    How is that addresses? What's the source path in the task?
    The destination should be easy.......

    So I need this as a taks to run in the SAME policy that installs Chrome - the question marks are because I don't know where to tell these commands to get the file from. It's in the "software library" where the MSI is.
    But this is so very confusing as this is a HUGE set of apps, and the going back and forth trying to figure out if this is a program, or a version or just what the heck it is! Then to get it installed I have to go to manage policies and work in there........ it's not all in the manage software area so going back and forth has me lost.

    if exist "c:\Program Files\Google\Chrome\Application\master_preferences" copy /y "?????????\master_preferences" "C:\Program Files\Google\Chrome\Application\master_preferences"
    if exist "c:\Program Files (x86)\Google\Chrome\Application\master_preferences" copy /y "???????\master_preferences" "C:\Program Files (x86)\Google\Chrome\Application\master_preferences"
    reg add HKLM\Software\Policies\Google\Update /f /v AutoUpdateCheckPeriodMinutes /d 0
    sc stop gupdate
    sc config gupdate start= disabled

    Where will the task get the file from if it's in the software library folder with the Chrome MSI?
    What do I tell it the path or source is?