Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $MainGUI = GUICreate("Major Energy Install Pack", 376, 372, -1, -1, -1, -1)
- GUISetBkColor(0xFFFFFF, $MainGUI)
- $adobe = GUICtrlCreateCheckbox("Adobe Reader", 32, 40, 93, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $brosix = GUICtrlCreateCheckbox("Brosix", 32, 70, 83, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $chrome = GUICtrlCreateCheckbox("Chrome", 32, 100, 96, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $msex86 = GUICtrlCreateCheckbox("MSE x86", 32, 130, 95, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $msex64 = GUICtrlCreateCheckbox("MSE x64", 32, 160, 97, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $RwrdMng = GUICtrlCreateCheckbox("Rewards Mngmnt", 260, 40, 100, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $silver86 = GUICtrlCreateCheckbox("Silverlight x86", 260, 70, 100, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $silver64 = GUICtrlCreateCheckbox("Silverlight x64", 260, 100, 100, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $vlc = GUICtrlCreateCheckbox("VLC", 260, 130, 100, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $fwmi = GUICtrlCreateCheckbox("WMI Fix", 260, 160, 100, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- GUICtrlCreateGroup("Printer", 25, 190, 330, 73, -1, -1)
- $p230 = GUICtrlCreateCheckbox("Suite 230", 32, 207, 71, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $p310 = GUICtrlCreateCheckbox("Suite 310", 32, 237, 71, 20, -1, -1)
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- $d2150 = GUICtrlCreateCheckbox("Dell 2150cn", 260, 237, 78, 20, -1, -1)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- $hp4015ltr = GUICtrlCreateCheckbox("HP LTR", 260, 207, 78, 20, -1, -1)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- $hp4015pln = GUICtrlCreateCheckbox("HP PLN", 157, 222, 78, 20, -1, -1)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- $map = GUICtrlCreateCheckbox("Map Drive", 32, 280, 67, 20, -1, -1)
- GUICtrlSetBkColor(-1, "0xFFFFFF")
- GUICtrlSetState(-1, $GUI_UNCHECKED)
- $drive = GUICtrlCreateInput("", 120, 280, 220, 20, -1, 512)
- $button = GUICtrlCreateButton("Install", 83, 332, 100, 30, -1, -1)
- $stop = GUICtrlCreateButton("Kill", 193, 332, 100, 30, -1, -1)
- GUISetState(@SW_SHOW, $MainGUI)
- While 1
- $data = GUICtrlRead($drive)
- $nMsg = GUIGetMsg()
- if $nMsg = $button Then
- if GUICtrlRead($adobe) = $GUI_Checked Then
- RunWait("msiexec.exe /i AcroRead.msi /qb")
- EndIf
- if GUICtrlRead($brosix) = $GUI_CHECKED Then
- RunWait("Brosix_3855.exe /S")
- EndIf
- if GUICtrlRead($chrome) = $GUI_Checked Then
- RunWait("ChromeStandaloneSetup.exe")
- EndIf
- if GUICtrlRead($msex86) = $GUI_Checked Then
- RunWait("mseinstallx86 /s /runwgacheck")
- EndIf
- if GUICtrlRead($msex64) = $GUI_Checked Then
- RunWait("mseinstallx64 /s /runwgacheck")
- EndIf
- if GUICtrlRead($RwrdMng) = $GUI_Checked Then
- RunWait("setup.exe")
- EndIf
- if GUICtrlRead($silver86) = $GUI_Checked Then
- RunWait("msiexec.exe /i silverlight86.msi /qb")
- EndIf
- if GUICtrlRead($silver64) = $GUI_Checked Then
- RunWait("msiexec.exe /i silverlight64.msi /qb")
- EndIf
- if GUICtrlRead($vlc) = $GUI_Checked Then
- RunWait("vlc-2.0.2-win32.exe /S")
- EndIf
- if GUICtrlRead($fwmi) = $GUI_Checked Then
- Run("FixWMI.bat")
- EndIf
- if GUICtrlRead($p230) = $GUI_Checked Then
- RunWait("AddPrinter.bat MuratecSuite230")
- EndIf
- if GUICtrlRead($p310) = $GUI_Checked Then
- RunWait("AddPrinter.bat MuratecSuite310")
- EndIf
- if GUICtrlRead($hp4015ltr) = $GUI_Checked Then
- RunWait("AddPrinter.bat HP4015ltr")
- EndIf
- if GUICtrlRead($hp4015pln) = $GUI_Checked Then
- RunWait("AddPrinter.bat HP4015pln")
- EndIf
- if GUICtrlRead($d2150) = $GUI_Checked Then
- RunWait("AddPrinter.bat Dell2150cn")
- EndIf
- if GUICtrlRead($map) = $GUI_Checked Then
- DriveMapAdd("*", $data, 1)
- EndIf
- EndIf
- If $nMsg = $GUI_EVENT_CLOSE then Exit
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment