strInstance is used before it is initialized in FineBuild2InstallSQL.vbs


strInstance is set on line 207 in FineBuild2InstallSQL.vbs but it is used on line 201 of FineBuild2InstallSQL.vbs.
Here's the snippet:
line 201: strFSShareName = GetParam(Null, "FileStreamShareName", "FS" & strInstance)
line 207: strInstance = GetBuildfileValue("Instance")
This works fine when you create a single instance because the FilestreamShareName is set to "FS" but if you try to create a second instance you get an install error saying that the share "FS" has already been created.
Closed Dec 13, 2011 at 2:57 AM by EdVassie


EdVassie wrote Dec 12, 2011 at 9:29 PM

This will be fixed in FineBuild v3.0.1.

To fix this problem in FineBuild v3.0.0:

1) Edit FineBuild2InstallSQL.vbs

2) Locate the line:
strHKLM = &H80000002

3) Insert the line:
strInstance = GetBuildfileValue("Instance")

wrote Dec 13, 2011 at 2:56 AM

wrote Dec 13, 2011 at 2:57 AM

wrote Feb 21, 2013 at 11:07 PM

wrote May 16, 2013 at 11:16 AM