Jump to content

Wraith

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Wraith's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thats what I thought... Thanks for the help, you all rock!
  2. I'm still having some troubles with this one... Now it will only perform the first install... Here's the new code: #include <GUIConstants.au3> Opt("Trayicondebug",1) GUICreate("Install Script Menu", 200, 250, 310, 190, $WS_POPUPWINDOW) GUISetIcon(@ScriptDir & "\Fajr.ico", -1) GUICtrlCreateLabel("Select your Applications: ", 10, 20) $opt1 = GUICtrlCreateCheckbox("JavaSE 5.0 update 6", 10, 50) $opt2 = GUICtrlCreateCheckbox("Spybot Search and Destroy", 10, 70) $opt3 = GUICtrlCreateCheckbox("Adobe Reader 8", 10, 90) $opt4 = GUICtrlCreateCheckbox("Everest Home Edition", 10, 110) $opt5 = GUICtrlCreateCheckbox("Option 5", 10, 130) $opt6 = GUICtrlCreateCheckbox("Option 6", 10, 150) $opt7 = GUICtrlCreateCheckbox("Option 7", 10, 170) $opt8 = GUICtrlCreateCheckbox("Option 8", 10, 190) $exit = GUICtrlCreateButton("Exit", 100, 220, 60) $Option = GUICtrlCreateButton("Excute", 10, 220, 60) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $exit Then Exit Elseif $msg = $Option Then Select Case GUICtrlRead($opt1) = 1 Run("JavaSE RE 5.0 update 6 install.exe") ProcessWaitClose("JavaSE RE 5.0 update 6 install.exe") Case GUICtrlRead($opt2) = 1 Run("Spybot Search and Destroy.exe") ProcessWaitClose("Spybot Search and Destroy.exe") Case GUICtrlRead($opt3) = 1 Run("Adobe Reader 8.exe") ProcessWaitClose("Adobe Reader 8.exe") Case GUICtrlRead($opt4) = 1 Run("Everest home edition.exe") ProcessWaitClose("Everest home edition.exe") Case GUICtrlRead($opt5) = 1 MsgBox(0, "", "opt 5 is checked") Case GUICtrlRead($opt6) = 1 MsgBox(0, "", "opt 6 is checked") Case GUICtrlRead($opt7) = 1 MsgBox(0, "", "opt 7 is checked") Case GUICtrlRead($opt8) = 1 MsgBox(0, "", "opt 8 is checked") EndSelect EndIf WEnd Maybe someone could tell me what I'm doing wrong?
  3. After doing some more research I found a slightly better way to do it... I used RunWait instead of Run("...") and ProcessWait. Just thought I'd mention it.
  4. Sorry about not posting the script... here it is: #include <GUIConstants.au3> Opt("TrayIconHide", 1) GUICreate("Install Script Menu", 200, 250, 310, 190, $WS_POPUPWINDOW) GUISetIcon(@ScriptDir & "\Fajr.ico", -1) GUICtrlCreateLabel("Select your Applications: ", 10, 20) $opt1 = GUICtrlCreateCheckbox("JavaSE 5.0 update 6", 10, 50) $opt2 = GUICtrlCreateCheckbox("Spybot Search and Destroy", 10, 70) $opt3 = GUICtrlCreateCheckbox("Adobe Reader 8", 10, 90) $opt4 = GUICtrlCreateCheckbox("Everest Home Edition", 10, 110) $opt5 = GUICtrlCreateCheckbox("Option 5", 10, 130) $opt6 = GUICtrlCreateCheckbox("Option 6", 10, 150) $opt7 = GUICtrlCreateCheckbox("Option 7", 10, 170) $opt8 = GUICtrlCreateCheckbox("Option 8", 10, 190) $exit = GUICtrlCreateButton("Exit", 100, 220, 60) $Option = GUICtrlCreateButton("Excute", 10, 220, 60) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $exit Exit Case $msg = $Option If GUICtrlRead($opt1) = 1 Then run("JavaSE RE 5.0 update 6 install.exe") EndIf If GUICtrlRead($opt2) = 1 Then run("Spybot Search and Destroy.exe") sleep(60000) EndIf If GUICtrlRead($opt3) = 1 Then run("Adobe Reader 8.exe") sleep(120000) EndIf If GUICtrlRead($opt4) = 1 Then run("Everest home edition.exe") sleep(180000) EndIf If GUICtrlRead($opt5) = 1 Then MsgBox(0, "", "opt 5 is checked") sleep(240000) EndIf If GUICtrlRead($opt6) = 1 Then MsgBox(0, "", "opt 6 is checked") sleep(300000) EndIf If GUICtrlRead($opt7) = 1 Then MsgBox(0, "", "opt 7 is checked") sleep(360000) EndIf If GUICtrlRead($opt8) = 1 Then MsgBox(0, "", "opt 8 is checked") sleep(390000) EndIf EndSelect WEnd I know the sleep commands shouldn't be there... I was just testing to see if that would work...
  5. Hi there, I've been trying to make an install script for the computer repair company that I work for. I need it to have a list of check boxes that the user can click and then have the script run a different install script for each program the user wants installed. I've got the individual install scripts written and working, but I can't seem to get the menu to not run them all at the same time... Any help would be appreciated. Thanks, Wraith
×
×
  • Create New...