Skip to Main Content
Patch My PC Feature and Application Request

A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize request, please see:

1 VOTE
Status SHIPPED
Created by Guest
Created on Mar 18, 2020

Add path variable to modify command line function

Trying to add our custom .MST for adobe reader, and I am able to add the .MST file into "Custom pre/post update installation scripts" this gets the file to download into the ccmcache directory on the client. I then in modify command line added TRANSFORMS=Reader.mst.

This successfully runs the correct install command line, however the install fails with 1624 which is a failure to apply a transform file. In troubleshooting I modified the package.xml file on my test client to change the command line from

<CommandLine>/MainFile=AcroRdrDC2000620034_en_US.exeÿ"/MainArg=/sALL /rs /MSI /qn /norestart ALLUSERS=1 EULA_ACCEPT=YES DISABLE_ARM_SERVICE=1 UPDATE_MODE=0"ÿ/AdditionalArg=TRANSFORMS=Reader.mst</CommandLine>

to

<CommandLine>/MainFile=AcroRdrDC2000620034_en_US.exeÿ"/MainArg=/sALL /rs /MSI /qn /norestart ALLUSERS=1 EULA_ACCEPT=YES DISABLE_ARM_SERVICE=1 UPDATE_MODE=0"ÿ/AdditionalArg=TRANSFORMS=c:\windows\ccmcache\2e\Reader.mst</CommandLine>

saved the file and retried the installation from software center, and it installed successfully with the transform file applied correctly.

From looking at the PatchMyPC-ScriptRunner.log file i can tell based around Argument #1 is: /MainFile=AcroRdrDC2000620034_en_US.exe that some logic already exists to tell script runner what directory it is in. If this can be extended for modified command line arguments to use the ccmcache directory that the install is running out of it will provide a massive amount of flexibility for admins particularly around the base installation functionality.

  • Attach files
  • Guest
    Reply
    |
    Apr 16, 2020

    Works exactly as expected thanks so much for the quick turn around on this one! I see a lot of uses for this.

  • Admin
    Justin Chalfant
    Reply
    |
    Apr 14, 2020

    This should be available now in build 1.7.5. You can download the MSI now to upgrade. It's not enabled for self-update yet. If you add TRANSFORMS=Reader.mst we will dynamically add the full relative path on the client-side at execution. The application will need to be deleted and re-created with version 1.7.5 for this to work though. Please let us know if you have any feedback.