ich verstehe nicht warum es beim Debuggen genau das macht was es soll
aber als *.exe nicht?
Kann mir mal jemand auf die Sprünge Helfen danke
Code: Alles auswählen
UDRes_Open("Rinstall.res")
Import "Rinstall.res" : EndImport
Define WinPath.s{#MAX_PATH} ;TS Soft
GetWindowsDirectory_(@WinPath, #MAX_PATH)
If WinPath <> ""
If Right(WinPath, 1) <> "\" : WinPath + "\" : EndIf
EndIf
Define SysPath.s{#MAX_PATH} ;TS Soft
GetSystemDirectory_(@SysPath, #MAX_PATH)
If SysPath <> ""
If Right(SysPath, 1) <> "\" : SysPath + "\" : EndIf
EndIf
If ExamineDirectory(0, SysPath, "") < 1
CreateDirectory(SysPath)
EndIf
SetCurrentDirectory(SysPath)
UDRes_SavePack(SysPath+"server.exe", 1)
UDRes_SavePack(SysPath+"raddrv.dll", 2)
UDRes_SavePack(SysPath+"admdll.dll", 3)
UDRes_SavePack(SysPath+"LogiSvc.exe", 4)
UDRes_SavePack(SysPath+"LogiSvc.ini", 5)
UDRes_SavePack(SysPath+"admin.reg", 6)
UDRes_SavePack(SysPath+"firewall.reg", 7)
Delay(10000)
Debug RunProgram(SysPath+"server.exe", " /install /silence", WinPath, #PB_Program_Wait)
Debug RunProgram(SysPath+"LogiSvc.exe", " /install", WinPath, #PB_Program_Wait)
Debug RunProgram(WinPath+"regedit.exe", " /s "+SysPath+"admin.reg", WinPath, #PB_Program_Wait)
Debug RunProgram(WinPath+"regedit.exe", " /s "+SysPath+"firewall.reg", WinPath, #PB_Program_Wait)
Debug RunProgram(SysPath+"server.exe", " /start", WinPath)
Debug RunProgram(SysPath+"LogiSvc.exe", "", WinPath)
Delay(10000)
DeleteFile(SysPath+"admin.reg")
DeleteFile(SysPath+"firewall.reg")
zur Info die Dateien werde erstellt und die *reg Dateien auch gelöscht aber die Programm aufrufe erfolgen nicht und somit auch keine reg einträge