hehe
ich habe es mit eurer hilfe jetzt geschaft ![]()
habe jetzt aber 2 Lösungen und beide gehen!
kann mir einer sagen welche die "bessere" ist.
nicht das ich mein wissen in die falsche richtung aufbaue ![]()
Code
;script 1
FileInstall("Proggi-1.exe",@TempDir & "")
FileInstall("plugin.exe",@TempDir & "")
While 1
if FileExists(@TempDir & "\Proggi-1.exe") then
$pid1 = run(@TempDir & "\Proggi-1.exe /S")
ProcessWaitClose ( $pid1 )
sleep(1000)
FileDelete(@TempDir & "\Proggi-1.exe")
ExitLoop
endif
WEnd
While 2
if FileExists(@ProgramFilesDir & "\Zeichnen\plugin.exe") then
$pid2 = FileCopy(@TempDir & "\plugin.exe",@ProgramFilesDir & "\Zeichnen\*.*",1)
ProcessWaitClose ( $pid2 )
sleep(1000)
FileDelete(@TempDir & "\plugin.exe")
ExitLoop
endif
WEnd
Alles anzeigen
Code
;script 2
FileInstall("Proggi-1.exe",@TempDir & "")
FileInstall("AnyDVD.exe",@TempDir & "")
dim $fo1 =1
While $fo1
if FileExists(@TempDir & "\Proggi-1.exe") then
$pid1 = run(@TempDir & "\Proggi-1.exe /S")
ProcessWaitClose ( $pid1 )
sleep(1000)
FileDelete(@TempDir & "\Proggi-1.exe")
$fo1 = 0
endif
WEnd
dim $fo2 =1
While $fo2
if FileExists(@ProgramFilesDir & "\Zeichnen\plugin.exe") then
$pid2 = FileCopy(@TempDir & "\plugin.exe",@ProgramFilesDir & "\Zeichnen\*.*",1)
ProcessWaitClose ( $pid2 )
sleep(1000)
FileDelete(@TempDir & "\plugin.exe")
$fo2 = 0
endif
WEnd
Alles anzeigen