Client Management Suite

  • 1.  Deployment with multiple commands on one line

    Posted Dec 07, 2017 06:51 AM

    We have a package that requires some registry keys to be injected after the install to skip a registration phase.

    The following command line works when run manually:

    TrackVis_setup_v0.6.1.exe /S & reg.exe IMPORT trackvis_HKLM.reg /reg:64

    However, if I use this as part of a software deployment task, in the command line box, one of two things will happen:

    1. If the EXE installer is run fine the application installs correctly but the registry keys are not imported.

    2. If you swap them around the registry key fails to import, error code 1, and the application install is not even attempted.

    For now I have added an "install.bat" to the software package and called this instead, with the installation type set to "Windows Batch Installation file", which is not ideal and causes the batch file to appear on screen but it does work.

    Does Altiris not cope well with multiple commands like this or am I doing something wrong? Suggestions would be most welcome.

    Howard



  • 2.  RE: Deployment with multiple commands on one line
    Best Answer

    Posted Dec 07, 2017 09:29 AM

    Reg.exe needs to be run as

    CMD /C "reg.exe /import trackvis_HKLM.reg /reg:64"

    But I'd do this as two separate Software Releases with two separate detection rules. You can make the reg command Software Release dependent on the Trackvis Software Release or just put them both in order in a Managed Software Delivery Policy.



  • 3.  RE: Deployment with multiple commands on one line

    Posted Dec 07, 2017 10:50 AM

    Thanks Andy. Confirmed that the command above does indeed work. I'm assuming this is some issue with the way Altiris is passing that command line.

    We don't really make much use of the dependencies functionality as most of the things we do are more quick delivery rather than policy based, other than Software Portal installs, so much of what we do is self contained.

    Putting the registry key release on to the software portal with the application install as a dependency would work better than the other way around as the user would attempt to use the application before the registry keys had been deployed.



  • 4.  RE: Deployment with multiple commands on one line

    Posted Dec 07, 2017 12:33 PM

    Basically if you want to use Windows Command line commands like "reg" or "dir" you need to use the Command Interpreter ("CMD") first.