Hallo,
ich habe hier ein Problem. Das Script als au3 läuft - bis ich eine Exe daraus mache. Dann wartet es vergeblich drauf, dass der Prozess verschwindet (Zeile 33). Wo liegt das Problem?
Spoiler anzeigen
IF @OSVersion == "WIN_XP" And @OSLang == "0407" Then
MsgBox(4096, "Firma GmbH", "Auf diesen Rechner wird nun automatisch Realpopup installiert. Die Installation wird etwa 30 Sekunden dauern. Bitte drücken Sie während der Installation keine Tasten. Der Rechner wird nach der Installtion neu gestartet.", 30)
RunAsSet("User", "Domaene", "PW")
BlockInput(1)
$DateiName = "Realpopup_" & @ComputerName & ".txt"
$Fertig = "Realpopup_" & @ComputerName & "_" & @UserName & ".txt"
$Pfad = "\\Server\LOG\"
$file1 = FileOpen($Pfad & $DateiName, 10) ; which is similar to 2 + 8 (erase + create dir)
FileCopy("\\Server\Software\Kill.exe", "C:\Install\", 9)
Run("\\Server\Software\realp26_167.exe")
WinWaitActive("Setup")
Send("!j")
WinWaitActive("Setup - RealPopup")
Send("!n")
WinWaitActive("Setup - RealPopup")
Send("!n")
WinWaitActive("Setup - RealPopup")
Send("!n")
WinWaitActive("Setup - RealPopup")
Send("!n")
WinWaitActive("Setup - RealPopup")
Send("!i")
Sleep(2000)
Send("!f")
Sleep(5000)
run ("C:\Install\Kill.exe RealPopup.exe")
ProcessWaitClose("RealPopup.exe")
Sleep(5000)
RegWrite("HKEY_CURRENT_USER\Software\Matro")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "DisableMessageLengthCheck", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "FullInternalPings", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "PingTimeOut", "REG_DWORD", "00000064")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "DomainSendToRealPopupClientsOnly", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "NameResolution", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "NameResolutionMinInterval", "REG_DWORD", "000003e8")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "RPdatFolder", "REG_SZ", "")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "WinpopupSendMailslotEnabled", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "WinpopupSendNetbiosEnabled", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "WinpopupSendSMBEnabled", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "Log", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "LogRemote", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "LogRemoteIP", "REG_SZ", "")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Advanced", "LogRemotePort", "REG_DWORD", "00001e61")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "ResourceDLL", "REG_SZ", "RPres_ger.dll")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WelcomeToV2.6", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "BeepOnNewMessage", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "BalloonOnMsgDeliveryIssues", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "AlwaysOnTop", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "MinimizeOnDelLastMessage", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "MinimizeWhenReplied", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "DelOriginalWhenReplied", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WarnOnExit", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WarnOnCancelingSend", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WarnWhenSendToDomain", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WarnRPProtocolNotActive", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "PlayWav", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "ShowLastMessage", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "AutoStart", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowTop", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowLeft", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowHeight", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowWidth", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowSndTop", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowSndLeft", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowSndHeight", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WindowSndWidth", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "HotKey", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "HotKeyModifiers", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "HyperlinksDoubleClick", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "LeftButtonTray", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "AwayOnScreenSaver", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "DetermineFavoriteUsers", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "SendAlwaysPcName", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "UseEnterToSendMessage", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "QuoteMessage", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "CaretTopOnReply", "REG_DWORD", "00000000")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "DisableDelKeyForAWhile", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "WavFile", "REG_SZ", "")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "LastDomain", "REG_SZ", "ZIEHM-EU")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "AutoStartWarn", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "AutoStartMsg", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "MessengerService", "REG_DWORD", "00000001")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "MsgSentNum", "REG_DWORD", "0000000b")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "MsgReceivedNum", "REG_DWORD", "00000015")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "FontMessages", "Arial,-11,400,0,0,0,0,1,34")
RegWrite("HKEY_CURRENT_USER\Software\Matro\RealPopup\Environment", "FontInfos", "Arial,-11,400,0,0,0,0,1,34")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "RealPopup", "REG_SZ", "C:\Programme\RealPopup\RealPopup.exe BOOT")
$file1 = FileOpen($Pfad & $Fertig, 10)
BlockInput(0)
MsgBox(4096, "Firma GmbH", "Installation beendet. Der Rechner wird jetzt neu gestartet", 20)
Shutdown(6) ;Force a reboot
ELSE
Exit
EndIf
Gruß
Matthias
PS Mit der Formatierierung hier komme ich noch nicht so ganz klar. Werde dies aber noch ändern.