2015-01-15 7 views
-1

WinRar SFX를 자동으로 추출해야하는 프로그램을 만들고 있습니다. 프로세스와 함께 exe가 시작되면 프로그래밍 방식으로 설치 단추를 클릭 할 수 있습니까? 지금까지 가지고있는 코드는 다음과 같습니다.SFX Install Button

public bool Extract() 
    { 
     try 
     { 
      Process process = new Process(); 
      process.StartInfo.WorkingDirectory = FilePath; 
      process.StartInfo.FileName = FilePath + fileName; 

      process.Start(); 

      process.WaitForExit(); 
     } 
     catch (Exception) 
     { 
      return false; 
     } 

     return true; 
    } 
+0

가능한 중복 [내 C# 응용 프로그램에서 다른 응용 프로그램에서 버튼을 클릭?] (http://stackoverflow.com/questions/4899573/click-on-a-button-in-another- 응용 프로그램 - 내 - 날카로운 - 응용 프로그램에서) – Sinatr

답변

0

당신은 sfx를 winrar로 조용하게 만들 수 있습니다. 의

Here is a link

+0

나는 winrar을 만들고 있지 않습니다. 다운로드중인 파일입니다. – deggen

+0

그리고 실행해야합니까? 당신은 dotnetzip을 사용하여 그것을 추출 할 수 있습니다 – Cako

+0

dotnetzip으로 추출 할 때 디렉토리를 변경하는 방법이 있습니까? 전의. 이 프로그램은 C :/programs에 있지만 exe는 C :/Downloads에 있습니다. – deggen