
Module that causes error during diskette creation:

Setupwiz.mdb

Module: zws_OutputSTF

Private Function ConvertReference (dst As Dynaset, ByVal unique As String)
    Dim ret As String, strIn As String
    Dim criteria As String, search As String
    Dim i As Integer, j As Integer
    Dim tmp As Integer
    
    strIn = unique

    ' FRUNOTE: Super HOKEY code.
    ' I want to convert all references, so I'm just running a goto until i = 0 and we exit function.
    ' Oh well...  Should get cleaned up later.
convert_again:

    i = InStr(1, strIn, "!", 0)

    If i = 0 Then
        ConvertReference = DblQuote(strIn)
        Exit Function
    End If
    
    j = InStr(i, strIn, "\", 0)
        
    If j = 0 Then
        search = Mid(strIn, i + 1)
    Else
        search = Mid(strIn, i + 1, j - i - 1)
    End If
    
    criteria = "[Unique ID] = '" & search & "'"
    dst.FindFirst criteria
    If dst.NoMatch Then
        tmp = MsgBox("convertReference: Unable to find " & search)
        ret = ""
    Else
        If i = 1 Then
            ret = "%" & Trim(Str(dst("ObjID")))
        Else
            ret = Left(strIn, i - 1) & "%" & Trim(Str(dst("ObjID")))
        End If
        If j > 0 Then
            ret = ret & Mid(strIn, j)
        End If
    End If
    strIn = ret
    GoTo convert_again

End Function
___________________________________________

Error at line 325 is causing the diskette to PC installation to fail, 
in file SETUP.STF on diskette:

319		==== Installing USER's Options ====										
320		---- User File Copying ----		Group	321 322							
321		USER_File_intrprog_mdb		CopyFile	"""User Files"", ""intrprog_mdb"""					%d		
322		USER_File_welcome_ini		CopyFile	"""User Files"", ""welcome_ini"""					%17		
323		---- User Non File Work ----		Group	324 326 329							
324		---- User ProgMan Items ----		Group	325							
325		USER_UserPM_1		AddProgmanItem	""""", """", ""%26\msarn200.exe %321\intrprog.mdb /ini %322\welcome.ini"", """""							
326		---- User INI Entries ----		Group	327 328							
327		USER_UserINI_1		AddIniLine	"""%322\welcome.ini"", ""Options"", ""UtilityDB"", ""%26\utility.mda"""							
328		USER_UserINI_2		AddIniLine	"""%322\welcome.ini"", ""Options"", ""SystemDB"", ""%26\system.mda"""							
329		Create SYSTEM.MDA		CustomAction	"""msacahbb.dll"", ""SyncEXECalloutCAH"", ""%s\wrkgadm.exe /sil /ini welcome.ini"""					%40		


The problem with line 325 can be fixed by putting the program manager group description after the third " immediately following
AddProgmanItem. The quotes after the first "," on line 325 I believe should contain the database file's icon name.

Robert Breen
EXECasyst

100250,3212

22 October 1994
