Guest User

Untitled

a guest
Jul 10th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1.  
  2.  
  3. $MainGUI = GUICreate("Major Energy Install Pack", 376, 372, -1, -1, -1, -1)
  4. GUISetBkColor(0xFFFFFF, $MainGUI)
  5.  
  6.  
  7. $adobe = GUICtrlCreateCheckbox("Adobe Reader", 32, 40, 93, 20, -1, -1)
  8. GUICtrlSetState(-1, $GUI_UNCHECKED)
  9. GUICtrlSetBkColor(-1, "0xFFFFFF")
  10.  
  11. $brosix = GUICtrlCreateCheckbox("Brosix", 32, 70, 83, 20, -1, -1)
  12. GUICtrlSetState(-1, $GUI_UNCHECKED)
  13. GUICtrlSetBkColor(-1, "0xFFFFFF")
  14.  
  15. $chrome = GUICtrlCreateCheckbox("Chrome", 32, 100, 96, 20, -1, -1)
  16. GUICtrlSetState(-1, $GUI_UNCHECKED)
  17. GUICtrlSetBkColor(-1, "0xFFFFFF")
  18.  
  19. $msex86 = GUICtrlCreateCheckbox("MSE x86", 32, 130, 95, 20, -1, -1)
  20. GUICtrlSetState(-1, $GUI_UNCHECKED)
  21. GUICtrlSetBkColor(-1, "0xFFFFFF")
  22.  
  23. $msex64 = GUICtrlCreateCheckbox("MSE x64", 32, 160, 97, 20, -1, -1)
  24. GUICtrlSetState(-1, $GUI_UNCHECKED)
  25. GUICtrlSetBkColor(-1, "0xFFFFFF")
  26.  
  27. $RwrdMng = GUICtrlCreateCheckbox("Rewards Mngmnt", 260, 40, 100, 20, -1, -1)
  28. GUICtrlSetState(-1, $GUI_UNCHECKED)
  29. GUICtrlSetBkColor(-1, "0xFFFFFF")
  30.  
  31. $silver86 = GUICtrlCreateCheckbox("Silverlight x86", 260, 70, 100, 20, -1, -1)
  32. GUICtrlSetState(-1, $GUI_UNCHECKED)
  33. GUICtrlSetBkColor(-1, "0xFFFFFF")
  34.  
  35. $silver64 = GUICtrlCreateCheckbox("Silverlight x64", 260, 100, 100, 20, -1, -1)
  36. GUICtrlSetState(-1, $GUI_UNCHECKED)
  37. GUICtrlSetBkColor(-1, "0xFFFFFF")
  38.  
  39. $vlc = GUICtrlCreateCheckbox("VLC", 260, 130, 100, 20, -1, -1)
  40. GUICtrlSetState(-1, $GUI_UNCHECKED)
  41. GUICtrlSetBkColor(-1, "0xFFFFFF")
  42.  
  43. $fwmi = GUICtrlCreateCheckbox("WMI Fix", 260, 160, 100, 20, -1, -1)
  44. GUICtrlSetState(-1, $GUI_UNCHECKED)
  45. GUICtrlSetBkColor(-1, "0xFFFFFF")
  46.  
  47. GUICtrlCreateGroup("Printer", 25, 190, 330, 73, -1, -1)
  48.  
  49. $p230 = GUICtrlCreateCheckbox("Suite 230", 32, 207, 71, 20, -1, -1)
  50. GUICtrlSetState(-1, $GUI_UNCHECKED)
  51. GUICtrlSetBkColor(-1, "0xFFFFFF")
  52.  
  53. $p310 = GUICtrlCreateCheckbox("Suite 310", 32, 237, 71, 20, -1, -1)
  54. GUICtrlSetState(-1, $GUI_UNCHECKED)
  55. GUICtrlSetBkColor(-1, "0xFFFFFF")
  56.  
  57. $d2150 = GUICtrlCreateCheckbox("Dell 2150cn", 260, 237, 78, 20, -1, -1)
  58. GUICtrlSetBkColor(-1, "0xFFFFFF")
  59. GUICtrlSetState(-1, $GUI_UNCHECKED)
  60.  
  61. $hp4015ltr = GUICtrlCreateCheckbox("HP LTR", 260, 207, 78, 20, -1, -1)
  62. GUICtrlSetBkColor(-1, "0xFFFFFF")
  63. GUICtrlSetState(-1, $GUI_UNCHECKED)
  64.  
  65. $hp4015pln = GUICtrlCreateCheckbox("HP PLN", 157, 222, 78, 20, -1, -1)
  66. GUICtrlSetBkColor(-1, "0xFFFFFF")
  67. GUICtrlSetState(-1, $GUI_UNCHECKED)
  68.  
  69. $map = GUICtrlCreateCheckbox("Map Drive", 32, 280, 67, 20, -1, -1)
  70. GUICtrlSetBkColor(-1, "0xFFFFFF")
  71. GUICtrlSetState(-1, $GUI_UNCHECKED)
  72.  
  73. $drive = GUICtrlCreateInput("", 120, 280, 220, 20, -1, 512)
  74.  
  75.  
  76.  
  77.  
  78. $button = GUICtrlCreateButton("Install", 83, 332, 100, 30, -1, -1)
  79. $stop = GUICtrlCreateButton("Kill", 193, 332, 100, 30, -1, -1)
  80.  
  81.  
  82. GUISetState(@SW_SHOW, $MainGUI)
  83.  
  84. While 1
  85. $data = GUICtrlRead($drive)
  86. $nMsg = GUIGetMsg()
  87.  
  88. if $nMsg = $button Then
  89. if GUICtrlRead($adobe) = $GUI_Checked Then
  90. RunWait("msiexec.exe /i AcroRead.msi /qb")
  91. EndIf
  92.  
  93. if GUICtrlRead($brosix) = $GUI_CHECKED Then
  94. RunWait("Brosix_3855.exe /S")
  95. EndIf
  96.  
  97. if GUICtrlRead($chrome) = $GUI_Checked Then
  98. RunWait("ChromeStandaloneSetup.exe")
  99. EndIf
  100.  
  101. if GUICtrlRead($msex86) = $GUI_Checked Then
  102. RunWait("mseinstallx86 /s /runwgacheck")
  103. EndIf
  104.  
  105. if GUICtrlRead($msex64) = $GUI_Checked Then
  106. RunWait("mseinstallx64 /s /runwgacheck")
  107. EndIf
  108.  
  109. if GUICtrlRead($RwrdMng) = $GUI_Checked Then
  110. RunWait("setup.exe")
  111. EndIf
  112.  
  113. if GUICtrlRead($silver86) = $GUI_Checked Then
  114. RunWait("msiexec.exe /i silverlight86.msi /qb")
  115. EndIf
  116.  
  117. if GUICtrlRead($silver64) = $GUI_Checked Then
  118. RunWait("msiexec.exe /i silverlight64.msi /qb")
  119. EndIf
  120.  
  121. if GUICtrlRead($vlc) = $GUI_Checked Then
  122. RunWait("vlc-2.0.2-win32.exe /S")
  123. EndIf
  124.  
  125. if GUICtrlRead($fwmi) = $GUI_Checked Then
  126. Run("FixWMI.bat")
  127. EndIf
  128.  
  129. if GUICtrlRead($p230) = $GUI_Checked Then
  130. RunWait("AddPrinter.bat MuratecSuite230")
  131. EndIf
  132.  
  133. if GUICtrlRead($p310) = $GUI_Checked Then
  134. RunWait("AddPrinter.bat MuratecSuite310")
  135. EndIf
  136.  
  137. if GUICtrlRead($hp4015ltr) = $GUI_Checked Then
  138. RunWait("AddPrinter.bat HP4015ltr")
  139. EndIf
  140.  
  141. if GUICtrlRead($hp4015pln) = $GUI_Checked Then
  142. RunWait("AddPrinter.bat HP4015pln")
  143. EndIf
  144.  
  145. if GUICtrlRead($d2150) = $GUI_Checked Then
  146. RunWait("AddPrinter.bat Dell2150cn")
  147. EndIf
  148.  
  149. if GUICtrlRead($map) = $GUI_Checked Then
  150. DriveMapAdd("*", $data, 1)
  151. EndIf
  152.  
  153. EndIf
  154. If $nMsg = $GUI_EVENT_CLOSE then Exit
  155. WEnd
Advertisement
Add Comment
Please, Sign In to add comment