을 반환합니다. GetExceptionMessage는 빈 메시지 (콜론 ":"기호 만 포함)를 반환합니다. Inno Setup의 마지막 버전 (5.4.2)이 사용되었습니다.Inno 설치 GetExceptionMessage는 Inno 설치 스크립트에서 빈 메시지
try
Log('Create IISNamespace');
// Create IIS namespace object
if Length(virtualDirectoryName) > 0 then
begin
IIS := CreateOleObject('IISNamespace');
Log('Get IIsWebService');
WebSite := IIS.GetObject('IIsWebService', IISServerName + '/w3svc');
Log('Get IIsWebServer');
WebServer := WebSite.GetObject('IIsWebServer', IISServerNumber);
Log('Get IIsWebVirtualDir');
WebRoot := WebServer.GetObject('IIsWebVirtualDir', 'Root');
Log('Delete IIsWebVirtualDir');
WebRoot.Delete('IIsWebVirtualDir', virtualDirectoryName);
WebRoot.SetInfo();
end;
except
MsgBox(ExpandConstant('{cm:IISException,'+ GetExceptionMessage +'}'),
mbInformation, mb_Ok);
Log('Uninstall IIS 6 exception: ' + GetExceptionMessage);
end;
IIsWebVirtualDir을 삭제하는 동안 예외가 발생합니다. 예외 유형 또는 실제 예외 메시지를 가져 오는 방법이 있습니까?
감사합니다. Denis.
Inno와 함께 제공되는 CodeAutomation.iss 샘플을 실행하면'GetExceptionMessage' /'ShowExceptionMessage' return ":"이 깨진 것 같습니다. 이전 버전을 사용해 보시겠습니까? –
또한 5.2.3 버전을 사용해 보았습니다. 결과는 같습니다. 설치 프로그램의 다른 영역에서 예외가 제대로 작동하고 있습니다. 다른 예외 이벤트 중에 메시지가 표시되었습니다. 이 버그는 inno setup에서 OLE/COM 작업과 관련이있을 수 있습니다. –
실행중인 OS는 무엇입니까? –