Advertisement
penright

Untitled

Oct 3rd, 2023
2,314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 3.73 KB | None | 0 0
  1.    Sub FixIrisAuthServIni()
  2.         Dim HeartSIPIni As New PrivateIniFile("c:\iris\ini\HeartSIP.INI")
  3.         Dim ProticoTIDsIni As New PrivateIniFile("C:\BraumsRecovery\ini\PorticoTIDs.INI")
  4.         Dim SmartTimeOutValue As Integer = 15
  5.         If IO.File.Exists("C:\SmartTimeOutValue.dat") Then
  6.             SmartTimeOutValue = CIntNull(IO.File.ReadAllText("c:\SmartTimeOutValue.dat"))
  7.         End If
  8.         If SmartTimeOutValue = 0 Then
  9.             DispThis("Something Wrong, Smart Timeout was 0" & NewLine)
  10.             LogIt.Log("Something Wrong, Smart Timeout was 0", True)
  11.         End If
  12.         Dim IrisAuthServIni As New PrivateIniFile("c:\iris\ini\IrisAuthSrvr.INI")
  13.         IrisAuthServIni.WriteString("General", "InterfaceType", "SCADevice")
  14.         If PosMaint.StoreNumber < 470 Then
  15.             IrisAuthServIni.WriteString("General", "Logging", "0")
  16.         Else
  17.             IrisAuthServIni.WriteString("General", "Logging", "1")
  18.         End If
  19.         IrisAuthServIni.WriteString("General", "LogFilename", "c:\iris\log\IrisAuthSrvr_CC.log")
  20.         IrisAuthServIni.WriteString("General", "LogFilter", "127")
  21.         IrisAuthServIni.WriteString("General", "VerifoneInstallPath", XpientInstallPath_ServerOnly("\\10.77.77.30\c", "Credit Card Application") & "Credit Card Application")
  22.         IrisAuthServIni.WriteString("General", "SettlementAppName", XpientInstallPath_ServerOnly("\\10.77.77.30\c", "Credit Card Application") & "Credit Card Application\CCAManager\ccmanager.exe -s")
  23.  
  24.         'CLean up both Smart and SCADevices
  25.         IrisAuthServIni.DeleteSection("Smart")
  26.         IrisAuthServIni.DeleteSection("SCADevice")
  27.         For xLoop As Integer = 0 To 100
  28.             IrisAuthServIni.DeleteSection("SCADevice" & xLoop)
  29.         Next
  30.         IrisAuthServIni.DeleteSection("VeriFone")
  31.         IrisAuthServIni.DeleteSection("Ingenico")
  32.         IrisAuthServIni.DeleteSection("IngenicoForms")
  33.         IrisAuthServIni.DeleteSection("EN2100")
  34.         IrisAuthServIni.DeleteSection("Services")
  35.         HeartSIPIni.DeleteSection("PorticoTIDs")
  36.         HeartSIPIni.DeleteSection("HeartLoaderFiles")
  37.  
  38.         Dim HLTestVsProd As String = "P"
  39.         If PosMaint.StoreNumber > 400 Then
  40.             HLTestVsProd = "T"
  41.         End If
  42.         HeartSIPIni.WriteString("HeartLoaderFiles", "IPP350_Serial", "C:\IRIS\Data\DeviceData\HeartSIP\HeartLoader\Ingenico\HL" & HLTestVsProd & "PP35032S.OGZ")
  43.         HeartSIPIni.WriteString("HeartLoaderFiles", "ISC250_SERIAL", "C:\IRIS\Data\DeviceData\HeartSIP\HeartLoader\Ingenico\HL" & HLTestVsProd & "SC25032S.OGZ")
  44.  
  45.         IrisAuthServIni.WriteString("Services", "SCADevice", "SCADevice")
  46.  
  47.         For xLoop As Integer = 0 To PosMaint.RegisterInformations.Count - 1
  48.             HeartSIPIni.WriteString("PorticoTIDs", xLoop.ToString, ProticoTIDsIni.GetString(PosMaint.StoreNumber.ToString.PadLeft(3, "0"c), "Reg" & PosMaint.RegisterInformations(xLoop).RegisterNumber, ""))
  49.         Next
  50.  
  51.         IrisAuthServIni.WriteString("Router", "SCA", "SCADevice")
  52.         IrisAuthServIni.WriteString("Router", "DEBIT", "SCADevice")
  53.         IrisAuthServIni.WriteString("Router", "JCB", "SCADevice")
  54.         IrisAuthServIni.WriteString("Router", "AMEX", "SCADevice")
  55.         IrisAuthServIni.WriteString("Router", "DISCOVER", "SCADevice")
  56.         IrisAuthServIni.WriteString("Router", "MASTERCARD", "SCADevice")
  57.         IrisAuthServIni.WriteString("Router", "VISA", "SCADevice")
  58.         IrisAuthServIni.WriteString("Router", "GIFTCARD", "SCADevice")
  59.         IrisAuthServIni.WriteString("Router", "EFTCARDDATA", "SCADevice")
  60.         IrisAuthServIni.WriteString("Router", "EBTFood", "SCADevice")
  61.         For xLoop As Integer = 0 To PosMaint.RegisterInformations.Count - 1
  62.             FixIrisAuthServIni_SCADevice(PosMaint.RegisterInformations(xLoop).RegisterNumber)
  63.         Next
  64.  
  65.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement