/build/static/layout/Breadcrumb_cap_w.png

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

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

Answers (3)

Posted by: anonymous_9363 9 years ago
Red Belt
1
It will be a quadzillion times easier to repackage the installation as an MSI and use properties to tailor it the way you want.

Comments:
  • Repackage what installer? - Vivalo 9 years ago
    • 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. - dunnpy 9 years ago
Posted by: chucksteel 9 years ago
Red Belt
0
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.

Posted by: Nico_K 9 years ago
Red Belt
0
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.

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:

Share

 
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