rkligman
09-27-2005, 11:30 AM
I was creating my Server Update script and noticed a small issue once I went to make it live. This is a LAN update. There is a line in the Server script that looks like:
-- Where do you want to download the installer/patch file from?
g_PatchFileSource = SessionVar.Expand("C:\\Projects\\SPMG\\Setup.exe");
This tells the Update where to find the Install file. It worked great. But on the Live system the location in not there. In fact, the location is NOT on my system. It's in \\Spmgfs1\ShrdFls\CA. So the script needed to be changed to:
g_PatchFileSource = SessionVar.Expand("\\\\Spmgfs1\\ShrdFls\\CA\\Setup.exe");
It worked great on the Live system but I now have a small dilemma on future updates. In order to test it on my system I have to uncomment one line and comment another. I suppose I could use an IF statement with a variable or Constant but it brings up a bigger question.
Let's say that I wanted some redundancy. It appears as if my redundant systems need to be the same hierarchically. How would I handle it if they weren't?
Now that I'm writing this out, the thought that comes to mind would be some way of knowing which TrueUpdate Server I'm on in order to set the g_PatchFileSource variable correctly. Is this the way to do it and if so, how?
-- Where do you want to download the installer/patch file from?
g_PatchFileSource = SessionVar.Expand("C:\\Projects\\SPMG\\Setup.exe");
This tells the Update where to find the Install file. It worked great. But on the Live system the location in not there. In fact, the location is NOT on my system. It's in \\Spmgfs1\ShrdFls\CA. So the script needed to be changed to:
g_PatchFileSource = SessionVar.Expand("\\\\Spmgfs1\\ShrdFls\\CA\\Setup.exe");
It worked great on the Live system but I now have a small dilemma on future updates. In order to test it on my system I have to uncomment one line and comment another. I suppose I could use an IF statement with a variable or Constant but it brings up a bigger question.
Let's say that I wanted some redundancy. It appears as if my redundant systems need to be the same hierarchically. How would I handle it if they weren't?
Now that I'm writing this out, the thought that comes to mind would be some way of knowing which TrueUpdate Server I'm on in order to set the g_PatchFileSource variable correctly. Is this the way to do it and if so, how?