File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,16 @@ Dim record
34
34
Set record = view.Fetch
35
35
Dim gFile, pos
36
36
Do While not record Is Nothing
37
- gFile = record.StringData( 1 )
38
- If Left(gFile, 8 ) = "psqlodbc" Then
39
- gFile = record.StringData( 3 )
40
- ' Check if the FileName field is ShortName|LongName
41
- pos = InStr(record.StringData( 3 ), "|" )
42
- If pos > 0 Then
43
- ' Omit the ShortName part
44
- gFile = Mid(record.StringData( 3 ), pos + 1 )
45
- WScript.echo record.StringData( 3 ) & " -> " & gFile
46
- ' And update the field
47
- record.StringData( 3 ) = gFile
48
- view.Modify msiViewModifyUpdate, record
49
- End If
37
+ ' Check if the FileName field is ShortName|LongName
38
+ gFile = record.StringData( 3 )
39
+ pos = InStr(gFile, "|psqlodbc" )
40
+ If (pos > 0 ) Then
41
+ ' Omit the ShortName part
42
+ gFile = Mid(gFile, pos + 1 )
43
+ WScript.echo record.StringData( 3 ) & " -> " & gFile
44
+ ' And update the field
45
+ record.StringData( 3 ) = gFile
46
+ view.Modify msiViewModifyUpdate, record
50
47
End If
51
48
Set record = view.Fetch
52
49
Loop
You can’t perform that action at this time.
0 commit comments