ThuCommix.UpdateServices - Dein Intelligentes UpdateSystem 1.3.0.0

    • Beta

    Es gibt 488 Antworten in diesem Thema. Der letzte Beitrag () ist von Trade.

      Ah Danke
      Müsste die Datei dann ungefähr so aussehen?:

      VB.NET-Quellcode

      1. Hier stehen ein Paar Infos
      2. Download-Link1
      3. ...



      Edit by Manschula: Bitte keine Mehrfachposts: es gibt eine Bearbeiten-Funktion! --> Beiträge zusammengeführt

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Manschula“ ()

      ThuCommix schrieb:

      Ich glaub ich habs behoben, hab nur leider kein Beispiel Projekt da, kannst du nochmal gucken? Btw, im normalen Windows Design sieht man den erst garnicht ;)


      hey

      wenn ich nun die neue lib nehme und die gleichen code zeilen kommen ich bei

      VB.NET-Quellcode

      1. sr.SearchIn = Invert.Release

      einen fehler, der da lautet: "Invert wurde nicht deklariert. Auf das Opjekt kann aufgrund seiner Schutzstufe möglicherweise nicht zugegriffen werden."
      und bei

      VB.NET-Quellcode

      1. sr.UpdateDetailsRelease = New Uri(".../info.txt")

      kommt, das UpdateDetailsRelease kein Member mehr von UpdateOption sei.

      wäre super wenn du das noch korrigieren kannst.

      Verweise ist jetzt endlich richtig gesetzt

      Alle anderen Fehler sind bereits behoben nur will er mir einreden der Typ sei nicht deffiniert.
      FrameWork 3.5 ist aber die Basis, HILFE!

      Fehler 1 Der Typ "UpdateOption" ist nicht definiert. \CSC-Creator v 9.1.00.0\mainForm.vb 30 23 CSC-Creator v 09.1.00.0
      Fehler 2 Der Typ "UpdateSystem" ist nicht definiert. \CSC-Creator v 9.1.00.0\mainForm.vb 41 25 CSC-Creator v 09.1.00.0
      Spoiler anzeigen

      VB.NET-Quellcode

      1. Imports System
      2. Imports System.IO
      3. Imports smartUpdate
      4. Imports smartUpdate.Settings
      5. Public Class mainForm
      6. Dim _Modelnummer As String
      7. Dim _CSCpackages As String
      8. Dim _CSCVersion As String
      9. Dim _CSC As String
      10. Dim _T9DB As String
      11. Dim _ValuePath As String
      12. Dim _Path As String
      13. Dim _FixedPath As String = My.Application.Info.DirectoryPath
      14. Dim _SolutionPath As String = _FixedPath + "Solution"
      15. Dim _TempPath As String = Path.Combine(My.Application.Info.DirectoryPath, "Temp")
      16. Dim _DataPath As String = Path.Combine(My.Application.Info.DirectoryPath, "Data")
      17. Private Sub mainForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
      18. 'Befüllen der Steuerelemente
      19. deviceComboBox.Items.AddRange(System.IO.File.ReadAllLines(Path.Combine(_DataPath, "device.txt")))
      20. CSC_PackageComboBox.Items.AddRange(System.IO.File.ReadAllLines(Path.Combine(_DataPath, "csc-packages.txt")))
      21. XT9CheckedListBox.Items.AddRange(IO.Directory.GetFiles(Path.Combine(_DataPath, "T9DB")))
      22. languageCheckedListBox.Items.AddRange(IO.Directory.GetDirectories(Path.Combine(_DataPath, "CSC")))
      23. Dim sr As New UpdateOption()
      24. sr.AllowCancel = False ' Bestimmt ob der Abbrechen Button verfügbar ist
      25. sr.ApplicationVersion = "1.00.0.0"
      26. sr.ApplicationIcon = Me.Icon
      27. sr.SearchIn = Settings.Invert.Release 'Update Channel
      28. sr.DialogLanguage = Settings.Language.English
      29. sr.IncludeChangelog = True 'Changeog aktivieren
      30. sr.ChangeLog = New Uri("Zensiert")
      31. sr.UpdateDetailsRelease = New Uri("zensiert")
      32. sr.UpdateModus = Modus.Normal '/Force/Silent
      33. sr.ResponseWindow = True 'Öffnet ein Fenster falls kein Update verfügbar ist, false logischerweiße nicht.
      34. Dim updt As New UpdateSystem(sr)
      35. updt.StartUpdate() 'Starten
      36. End Sub
      37. Private Sub readIn1Button_Click_1(sender As System.Object, e As System.EventArgs) Handles readIn1Button.Click
      38. _Modelnummer = CStr(deviceComboBox.SelectedItem)
      39. _CSCpackages = CStr(CSC_PackageComboBox.SelectedItem)
      40. _CSCVersion = _Modelnummer + _CSCpackages
      41. End Sub
      42. Private Sub build1Button_Click_1(sender As System.Object, e As System.EventArgs) Handles build1Button.Click
      43. build1ProgressBar.Value = +10
      44. 'Ordner werden erstellt
      45. My.Computer.FileSystem.CreateDirectory( _
      46. (Path.Combine(My.Application.Info.DirectoryPath, "Solution")))
      47. build1ProgressBar.Value = +20
      48. My.Computer.FileSystem.CreateDirectory( _
      49. (Path.Combine(My.Application.Info.DirectoryPath, "Temp")))
      50. build1ProgressBar.Value = +30
      51. 'CSCVersion.txt wird erstellt
      52. Dim file As System.IO.FileStream = System.IO.File.Create(Path.Combine(My.Application.Info.DirectoryPath, "CSCversion.txt"))
      53. file.Close()
      54. build1ProgressBar.Value = +40
      55. 'CSCVersion.txt wird beschrieben
      56. My.Computer.FileSystem.WriteAllText(Path.Combine(My.Application.Info.DirectoryPath, "Temp\CSCVersion.txt"), _CSCVersion, True)
      57. 'build1ProgressBar.Value = +50
      58. 'build1ProgressBar.Value = +60
      59. 'build1ProgressBar.Value = +70
      60. 'build1ProgressBar.Value = +80
      61. 'build1ProgressBar.Value = +90
      62. build1ProgressBar.Value = +100
      63. MsgBox("Vorgang erfolgreich Abgeschlossen.", MsgBoxStyle.Information)
      64. End Sub
      65. Private Sub clean1Button_Click_1(sender As System.Object, e As System.EventArgs) Handles clean1Button.Click
      66. 'Verzeichnisstruckturen werden bereinigt
      67. If My.Computer.FileSystem.DirectoryExists(Path.Combine(My.Application.Info.DirectoryPath, "Solution")) Then
      68. My.Computer.FileSystem.DeleteDirectory(Path.Combine(My.Application.Info.DirectoryPath, "Solution"), FileIO.DeleteDirectoryOption.DeleteAllContents)
      69. End If
      70. If My.Computer.FileSystem.DirectoryExists(Path.Combine(My.Application.Info.DirectoryPath, "Temp")) Then
      71. My.Computer.FileSystem.DeleteDirectory(Path.Combine(My.Application.Info.DirectoryPath, "Temp"), FileIO.DeleteDirectoryOption.DeleteAllContents)
      72. End If
      73. build1ProgressBar.Value = 0
      74. End Sub
      75. Private Sub readIn2Button_Click_1(sender As System.Object, e As System.EventArgs) Handles readIn2Button.Click
      76. _CSC = CStr(languageCheckedListBox.SelectedItem)
      77. _T9DB = CStr(XT9CheckedListBox.SelectedItem)
      78. _ValuePath = _CSC
      79. _Path = Path.Combine(_ValuePath, _CSC)
      80. End Sub
      81. Private Sub build2Button_Click_1(sender As System.Object, e As System.EventArgs) Handles build2Button.Click
      82. build2ProgressBar.Value = +10
      83. My.Computer.FileSystem.CreateDirectory( _
      84. (Path.Combine(My.Application.Info.DirectoryPath, "Temp")))
      85. build2ProgressBar.Value = +20
      86. 'Daten werden kopiert
      87. My.Computer.FileSystem.CopyFile( _
      88. Path.Combine(My.Application.Info.DirectoryPath, "Data\CSC\customer.xml"), Path.Combine(My.Application.Info.DirectoryPath, "Temp\customer.xml"), True)
      89. build2ProgressBar.Value = +30
      90. 'Daten werden kopiert
      91. My.Computer.FileSystem.CopyFile( _
      92. Path.Combine(My.Application.Info.DirectoryPath, "Data\CSC\others.xml"), Path.Combine(My.Application.Info.DirectoryPath, "Temp\others.xml"), True)
      93. build2ProgressBar.Value = +40
      94. 'Daten werden kopiert
      95. My.Computer.FileSystem.CopyFile( _
      96. Path.Combine(My.Application.Info.DirectoryPath, "Data\CSC\sales_code.dat"), Path.Combine(My.Application.Info.DirectoryPath, "Temp\sales_code.dat"), True)
      97. build2ProgressBar.Value = +50
      98. 'Daten werden kopiert
      99. My.Computer.FileSystem.CopyDirectory(_Path, _TempPath, True)
      100. 'build2ProgressBar.Value = +60
      101. 'build2ProgressBar.Value = +70
      102. 'build2ProgressBar.Value = +80
      103. 'build2ProgressBar.Value = +90
      104. build2ProgressBar.Value = +100
      105. MsgBox("Vorgang erfolgreich Abgeschlossen.", MsgBoxStyle.Information)
      106. End Sub
      107. Private Sub clean2Button_Click_1(sender As System.Object, e As System.EventArgs) Handles clean2Button.Click
      108. 'Verzeichnisstruckturen werden bereinigt
      109. If My.Computer.FileSystem.DirectoryExists(Path.Combine(My.Application.Info.DirectoryPath, "Solution")) Then
      110. My.Computer.FileSystem.DeleteDirectory(Path.Combine(My.Application.Info.DirectoryPath, "Solution"), FileIO.DeleteDirectoryOption.DeleteAllContents)
      111. End If
      112. If My.Computer.FileSystem.DirectoryExists(Path.Combine(My.Application.Info.DirectoryPath, "Temp")) Then
      113. My.Computer.FileSystem.DeleteDirectory(Path.Combine(My.Application.Info.DirectoryPath, "Temp"), FileIO.DeleteDirectoryOption.DeleteAllContents)
      114. End If
      115. build2ProgressBar.Value = 0
      116. End Sub
      117. Private Sub websiteButton_Click_1(sender As System.Object, e As System.EventArgs) Handles websiteButton.Click
      118. 'Website zur CSC-Creator Website wird angegeben
      119. System.Diagnostics.Process.Start("http://www.david.geister.org")
      120. End Sub
      121. Private Sub donationButton_Click_1(sender As System.Object, e As System.EventArgs) Handles donationButton.Click
      122. 'Website zum donation Konto wird angegeben
      123. System.Diagnostics.Process.Start("http://www.david.geister.org")
      124. End Sub
      125. Private Sub updateButton_Click_1(sender As System.Object, e As System.EventArgs) Handles updateButton.Click
      126. End Sub
      127. End Class