Jump to content

JerichoJones

Active Members
  • Posts

    38
  • Joined

  • Last visited

Recent Profile Visitors

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

JerichoJones's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ​That link refers to SMB not SMBus.... According to http://www.osronline.com/showthread.cfm?link=262906 it sounds like it cannot be done. http://stackoverflow.com/questions/11509676/is-there-a-way-to-programmatically-find-chipsets-north-bridge-south-bridge-nam provides some useful info for your geek pleasure.
  2. I am closing all processes that I spawn plus one that never seems to be invoked. I did watch the processes that are extracted and run from the Trend uninstall process and they are all cleaned up prior to my attempt to run the next install. Stopping the Windows Installer Service seems to have resolved the issue. It is a sledgehammer solution but it works without any adverse effects.
  3. It is worth a shot but PDQDeploy will probably see the initial script exit, assume completion, and proceed to delete the installer files. I'm getting around it now by using a batch file. I'm posting in the MS forums as well. Maybe they can help (unlikely).
  4. I make sure that the process I have invoked is no longer running I also include checking for the only other EXE in the folder. In addition I delete the folder where AutoPCC.exe resides prior to starting the SEP installer. I'm pretty certain that I have that part covered since the install works if I invoke it via Run (and exit the script) instead of RunWait. I think Windows perceives my AutoIt script as an installer. I tried renaming it to something nonsensical but still no joy.
  5. I wrote a wrapper in AutoIt to remove Trend's anti-virus. The script calls trends AutoPCC.exe to remove Trend. I verify that the process is no longer running yet when I invoke the Symantec client installer Windows complains that an installation is still running. I get around it by exiting the wrapper using Run instead of RunWait. Unfortunately that causes another annoying issue when trying to deploy it through PDQDeploy. Is there a way to tell/force Windows that there is no installation running?
  6. Probably a stupid question but what does "Base Nicotine strength" mean? Is that in the case of the glycerin already containing nicotine?
  7. DOH!!!! Typo. Now I see why the code was needed.
  8. It should be three. For some reason it thinks it is four. The first line is the one that should work. There are only three args.
  9. InstallApp("NO", "WLSetup-all.exe", "/q /NOToolbarCEIP /NOhomepage /Nolaunch /nosearch /AppSelect:Photo,MovieMaker,Writer", 9) Func InstallApp($IsMSI, $Installer, $Switches) If $IsMSI = "YES" Then ConsoleWrite("Installing " & $Installer & @CRLF) Local $Install = RunWait("MsiExec.exe /i " & Chr(34) & $Installer & Chr(34) & " " & $Switches & " /qn /Log C:\Temp\" & $Installer & ".log") If $Install = 0 Or $Install = 3010 Then WriteLog($Install, $Installer & @TAB & "Success") ConsoleWrite("Installation Successful" & @CRLF) Else WriteLog($Install, $Installer & @TAB & "Failed") ConsoleWrite("Installation Failed" & @CRLF) EndIf Else ConsoleWrite("Installing " & $Installer & @CRLF) Local $Install = RunWait(@ScriptDir & "\" & $Installer & " " & $Switches) If $Install = 0 Or $Install = 3010 Then WriteLog($Install, $Installer & @TAB & "Success") ConsoleWrite("Installation Successful" & @CRLF) Else WriteLog($Install, $Installer & @TAB & "Failed") ConsoleWrite("Installation Failed" & @CRLF) EndIf EndIf EndFunc ;==>InstallApp I get this error on compile: E:InstallWE.au3(27,47) : ERROR: InstallApp() called by a previous line with 4 arg(s). Max = 3. First previous line calling this Func is 19.
  10. Why do you need that? It doesn't even get there. It complains during compile that it is getting 4 args when only three are supported. I can add the code. I just don't see the need.
  11. I have a function that I have created but when I pass the string below it seems to think there are 4 args instead of three. This has worked for every app so far except this one. InstallApp("NO", "WLSetup-all.exe", "/q /NOToolbarCEIP /NOhomepage /Nolaunch /nosearch /AppSelect:Photo,MovieMaker,Writer", 9) It seems to think it is this: InstallApp("NO", "WLSetup-all.exe", "/q /NOToolbarCEIP /NOhomepage /Nolaunch /nosearch", " /AppSelect:Photo,MovieMaker,Writer", 9) What am I missing?
  12. My script compiles and the file appears to be in there but when I run the script it fails to copy the file. I have tried with and without the trailing backslash. I have also tried specifying the file name. Please tell me I am doing something wrong. Below is the code in question: If Not FileExists(@TempDir) Then If Not FileExists(@WindowsDir & "\Temp") Then DirCreate(@WindowsDir & "\Temp") EndIf $sTargetPath = @WindowsDir & "\Temp\" Else $sTargetPath = @TempDir & "\" EndIf $RC = FileInstall("\\Server\share\_ServerTeam Tools\LightSpeed\SecurityAgent.msi", $sTargetPath, 1)
  13. I must be over complicating it. I will look at your suggestion and try it again. Thanks for help and clearing it up for me. I am not a programmer which is probably obvious by now. I am trying to cobble this stuff together using the help file but it can't provide the training/experience. I will crawl under a rock now.
  14. I got to the simple example you saw because even when I run that I get nothing. The process hangs with a blinking cursor in the console window. If I use another program that does not copy files like REG.EXE (I tried COPY, XXCOPY.EXE) I see the output in the window as expected. Maybe it has to do with my specific machine (XPSP3). I have no idea at this point. I just want to copy a file as another user and know if the copy was successful or not. The help file seems to indicate this will work: XCOPY returns an errorlevel. I want to capture that. Below is what I am trying to do based on your post and the help file (ProcessWaitClose is not shown in the examples): #include <Constants.au3> ; Fill in the username and password appropriate for your system. Local $sUserName = "Username" Local $sPassword = "Password" ; Run a command prompt as the other user. Local $rc = RunAs($sUserName, @ComputerName, $sPassword, 0, @ComSpec & " /c XCOPY.EXE C:\Test.fil c:\Test /y", @SystemDir, @SW_HIDE, $STDERR_CHILD) ProcessWaitClose($rc) While 1 $line = StderrRead($rc) If @error Then ExitLoop MsgBox(0, "STDERR read:", $rc) Wend
  15. If you read my first message you would see the problem indicted in the first sentence. I'll give you a minute to review...... Did you see it? If I remove the $STDERR_CHILD it runs properly but I can't get back the result. :-( I am trying to copy a file using RunAs. I want to get the result of the copy operation. Simple. I don't think you tested your code since it would never return anything as the process will never end. >_< Now let's start over. Hi my name is Jericho, nice to meet you.
×
×
  • Create New...