GSI

인스톨쉴드에서 설치다되고나서 특정파일 실행하기 위한 방법



위와 같이 InstallScriptProject로 만드셔야 합니다.



다른 부분들은 다 아실겁니다.

해당 파일들을 추가하고 나서 위의 이미지와 같이 InstallScript 에서 OnMoved() 함수 안에 위의 코드를 추가 하면 됩니다.


//---------------------------------------------------------------------------

// OnMoved

//

// The OnMoved event is called as a result of the setup calling

// FeatureTransferData or FeatureMoveData. The event is called when

// all file transfer operations are completed except for batch

// self-registration which is performed immediately after this event returns.

// During uninstallation this event sent after uninstallation is completed,

// therefore you should not modify system state in this event.

//---------------------------------------------------------------------------

function OnMoved()

string svDir;

begin       

svDir = TARGETDIR^"aaaa.exe";

if(LaunchAppAndWait(svDir, "", WAIT) < 0) then

//MessageBox("aaa", SEVERE);

//else

// MessageBox("bbb", SEVERE);

endif;

end;

//---------------------------------------------------------------------------

// OnMoved




Posted by gsi
: