function OnEnd()
    string szProgram, szCmdLine;
begin
    szProgram = WINSYSDIR ^ "regsvr32.exe ";
    szCmdLine = TARGETDIR ^ "파일이름";
    //LongPathToShortPath (szCmdLine);
    LongPathToQuote (szCmdLine, TRUE);
    MessageBox(szCmdLine, INFORMATION);
    LaunchAppAndWait(szProgram, szCmdLine, WAIT/*LAAW_OPTION_CHANGEDIRECTORY |  LAAW_OPTION_FIXUP_PROGRAM /*LAAW_OPTION_WAIT*/); 
end;