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.
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)
Please log in to answer
Posted by:
anonymous_9363
9 years ago
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
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