Scripting Question

How to modify the answer file on the fly during a deployment like the setcomputername.exe scripting does

12/15/2015 1145 views
So, I want to inject a few little changes into the answer file during the deployment before the answer file gets used.  I want to change a few little details in the answer file depending on the location of the office the deployment is occuring in.  

I would love to be able to have a script that can make any change I want to the answer file in the same way the setcomputername.exe does, but allowing me to enter my own variables.
0 Comments   [ + ] Show comments


Community Chosen Answer

It will be a quadzillion times easier to repackage the installation as an MSI and use properties to tailor it the way you want.
Answered 12/16/2015 by: VBScab
Red Belt

  • Repackage what installer?
    • Because ITNinja is primarily an application packaging fora (with KACE Support added) the terminology you used ("deployment", "answer file") led people who answered your question to believe that your question was about deploying software.

      It would seem that you are talking about OS deployment and associated answer files - which is where the confusion came in. Please update your tags to support the type of question you've posted.

All Answers

Our K2000 had stock pre- and post-install tasks for getting and setting the computer name that used VB scripts. Do you have them on your K2000? You could probably check how those scripts do the modification and use them as an example. The answer file is XML so anything that can modify XML should be able to make changes to it.

Answered 12/16/2015 by: chucksteel
Red Belt

depending on the settings you want to change I would do this as a post install task, since the way you want to do would work but will be a pain if something is not working as suspected.
Answered 12/17/2015 by: Nico_K
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


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