Jump to content

clam5917

Members
  • Posts

    13
  • Joined

  • Last visited

clam5917's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi there, I have a very simple script that I wrote to install Cisco IP Communicator. #RequireAdmin Dim $message = "Initializing Cisco IP Communicator 8.6.4.0 Install." SplashTextOn("Cisco IP Communicator 8.6.4.0 Install", $message, 450, 200, -1, -1, 48, "", 12, 400) Sleep(10000) ;There are 1000 milliseconds in a second. There are 60 seconds in a minute. 10000 milliseconds = 10 seconds ShellExecuteWait ("CiscoIPCommunicatorSetup_8640.msi", '/qb TFTP1=172.20.18.20 TFTP2=0.0.0.0', @ScriptDir) ControlSetText("Cisco IP Communicator 8.6.4.0 Install", "", "Static1", "Installation Complete") Sleep(3000) ;There are 1000 milliseconds in a second. There are 60 seconds in a minute. 3000 milliseconds = 3 Seconds SplashOff() $question = MsgBox(4, "Restart Now OR Restart Later", "You must restart your system for the configuration changes made to Cisco IP Communicator to take effect. Click Yes to restart now or No if you plan to restart later.") If $question == 6 Then Shutdown(2) EndIf This does install and apply the server IP address just how it should. So, my issue now is how to get this script to install and apply different server IP address base on different time zone. I would figure the right function to use is If...ElseIf.....Else...EndIf? If so how would I script it to say IF UK you install with this IP Address and IF US you install with this IP Address? Thanks
  2. Melba23, Sorry about that, i didn't notice where i was posting my question. Thanks for moving it. clam5917
  3. JLogan3o13, I will give that a try. Thanks,
  4. Hi there, Does anyone know how to script FrameMaker 12? Below are my coding but for some reason it execute then goes away in seconds. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=NV_IT.ico #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Opt("TrayMenuMode", 1) $AppName = "Adobe Framemaker 12" $prompt = MsgBox(262145, "Company Name: " & $AppName & " Installation", "You are about to install " & $AppName & ". The installation can take anywhere from 10 to 20 minutes." & @CRLF & @CRLF & "Please close all running applications and click on OK to proceed.") If $prompt = 2 Then Exit SplashTextOn("Company Name: " & $AppName, $AppName & " is being installed..." & @CRLF & @CRLF & "Please do not open any applications until this task is finished.", 400, 160, -1, 150, 20, "", 10) ; INSTALL MAIN ShellExecuteWait("Set-up.exe", " --mode=silent --deploymentFile=" & @ScriptDir & "install.xml --overrideFile=", @ScriptDir) SplashOff() -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Thanks for your help,
  5. thanks Jfish for your reply. That is the problem. I don't know it is do able and I very basic scripting knowledge (just learning), I don't know where to start.
  6. Hi There, I am wondering if it is possible to customize some settings in a FTP client before it is distributed to users? I have few example on what i would like to automate. Please see the attached file. If this is do able, please give me some guidence on how to do this with scripting. Maybe some examples too will help. :-) Thanks, Installing the CorpFTP client.docx
  7. JohnOne, Thanks, that did the trick.
  8. JohnOne, It keep on error out with "unbalanced Paranthesis expression" and "Syntax error". Please see my attached snap shot.
  9. Here is the Code as of right now. #RequireAdmin $Var1 = "NVIDIA GeForce" $Var2 = "NVIDIA NVS" $Var3 = "NVIDIA Quadro" If @OSVersion = "WIN_7" and @OSArch = "X64" then $RegRead = ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video", $Var2) RunWait ("332.50_notebookquadro_win8_winvista_win7_64bit_international_whql.exe") EndIf
  10. BrewManNH, Thanks for your respond. Is there a way to write it so that it will check for variables in the registry path and then execute .exe file after it know the version of OS and OSArch? So, I am new to all this (with very little knowledge) and trying to figure this out for days now.
  11. even if I remove the / I get the same message. If @OSVersion = "WIN_7" and @OSArch = "X64" then $RegRead = ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video", $Var2) then RunWait ("332.50_notebookquadro_win8_winvista_win7_64bit_international_whql.exe") EndIf >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3" /UserParams +>13:12:05 Starting AutoIt3Wrapper v.2.1.4.4 SciTE v.3.3.7.0 ; Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64 Environment(Language:0409 Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64) >Running AU3Check (3.3.10.2) from:C:Program Files (x86)AutoIt3 "C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3"(10,73) : error: unbalanced paranthesis expression. $RegRead = ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlVideo", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3"(10,73) : error: syntax error $RegRead = ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlVideo", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3 - 2 error(s), 0 warning(s) !>13:12:05 AU3Check ended. Press F4 to jump to next error.rc:2 +>13:12:05 AutoIt3Wrapper Finished.. >Exit code: 2 Time: 0.885
  12. John, Thanks for your reply. How about having it look in Registry for value and then run .exe? did I type it right? It looks like when go to "Tools" then "Go" I get Error: Unbalanced parenthesis expression and syntax error. >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3" /UserParams +>10:25:49 Starting AutoIt3Wrapper v.2.1.4.4 SciTE v.3.3.7.0 ; Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64 Environment(Language:0409 Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64) >Running AU3Check (3.3.10.2) from:C:Program Files (x86)AutoIt3 "C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3"(16,73) : error: unbalanced paranthesis expression. $RegRead = ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlVideo", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3"(16,73) : error: syntax error $RegRead = ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlVideo", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:UserschrislDesktopTemp_folder_onlyNVIDIA_GeForce_Quadro_Driver_UpgradeGeForce_334.89_Quadro_332.50_Installer.au3 - 2 error(s), 0 warning(s) !>10:25:49 AU3Check ended. Press F4 to jump to next error.rc:2 +>10:25:49 AutoIt3Wrapper Finished.. >Exit code: 2 Time: 0.916 I know that the pointer is pointing the error is "Video", but just can't figure it out how to fix it.
  13. Hi there, This I my first time posting here. I am also new to AutoIT and scripting as well. I also have search forum for answers but couldn’t find any. I apologize if there was a post similar to mine and I missed it. I took on a new role in my company because someone is leaving the company and only had one week of training with SCCM. I have been learning everything on my own through the wonderful world of Googling and YouTube. Please bear with me as I have been trying to find answer how write this script to update drivers for desktops and laptops in my company and push it through with SCCM. Little summery on what I am trying to accomplish. I am trying to write script that will check few things first. 1. What OSVersion(Win_7, Win_8, Win_Vista) it is, then what OSArch (x64, x86) 2. Then need to verify what GPU it has ($Var1=NVIDIA GeForce, $Var2 = NVIDIA NVS, $Var3 = NVIDIA Quadro) by looking in the $RegRead (HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlVideo) 3. Is this a laptop or desktop 4. Then RunWait (xxxxxxx.exe,) Example: #RequireAdmin @OSVersion = "WIN_7" @OSVersion = "WIN_8" @OSVersion = "WIN_VISTA" @OSArch = "X64" @OSArch = "X86" $Var1 = "NVIDIA GeForce" $Var2 = "NVIDIA NVS" $Var3 = "NVIDIA Quadro" If @OSVersion = "WIN_7" and @OSArch = "X64" then $RegRead = ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video", /$Var2) then RunWait ("332.50_notebookquadro_win8_winvista_win7_64bit_international_whql.exe") EndIf Am I starting in the right direction?
×
×
  • Create New...