This server name isn't fixed, so currently we're building a installer per servername. This requires me to change all references to this servername in the script. If I miss one then the installer is not usable (I do feel I need to point out that this wasn't setup by yours truly , I'm supposed to maintain it though )
I'd like two things:
1. How do I pass (dynamically) the servername to the MSI (use GPO command line variables perhaps?)
2. How do I dynamically write registry keys. The key needs to have a variable that holds the servername. Can I do
Code: Select all
Write Registry Key HDKU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Setting\\$SERVERNAME$\\2201, 0