성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Get Started with Milvus Vector DB i...
[정성태] cyberark/PipeViewer - A tool that...
[정성태] WinForms in a 64-Bit world – our st...
[정성태] 예제에서 SELECT_SQL도 내부적으로는 SqlCommand/...
[victor] SELECT_LINQ SELECT_SQL 같은 쿼리인...
[victor] 답변 갑사합니다. 예외(Exception)가 났습니다. ...
[정성태] 일단, 위의 방식대로 하면 예외(Exception) 없이 잘 동...
[정성태] Windows 10 (버전 1809)에 이런 기능이 ^^ 추가되...
[정성태] pde windbg extension ; https://lea...
[정성태] // GetEnumerator extensions for Ran...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
닷넷
.NET 3.0
.NET 3.5
.NET 4.0
VC++
개발 환경 구성
제품 소개
VS.NET IDE
Vista
Windows 7
Windows 8
Windows 서버
Team Foundation Server
IIS
디버깅 기술
Win32
64비트
오피스
웹
기타
Phone
부모글 보이기/감추기
내용
“Make things as simple as possible, but not simpler.” [ManagedMsiExec sample app shows how to use the Windows Installer API from managed code] ; (broken) http://blogs.msdn.com/b/delay/archive/2012/01/09/make-things-as-simple-as-possible-but-not-simpler-managedmsiexec-sample-app-shows-how-to-use-the-windows-installer-api-from-managed-code.aspx ; https://dlaa.me/blog/post/10254645 msi.dll 파일을 interop해서 msiexec.exe를 .NET 버전으로 구현한 ManagedMsiExec를 공개하고 있습니다. ----------------------------------------------- C:\T>ManagedMsiExec SYNTAX: ManagedMsiExec <--Install|-i|--Uninstall|-u> Package.msi [--Verbose|-v] Windows Installer result: 87 (INVALID_PARAMETER) C:\T>ManagedMsiExec -i Package.msi ManagedMsiExec: Installing C:\T\Package.msi Windows Installer result: 0 (SUCCESS) C:\T>ManagedMsiExec -u Package.msi ManagedMsiExec: Uninstalling C:\T\Package.msi Windows Installer result: 0 (SUCCESS) C:\T>ManagedMsiExec -u Package.msi -v ManagedMsiExec: Uninstalling C:\T\Package.msi ACTIONSTART: Action 18:31:21: INSTALL. INFO: Action start 18:31:21: INSTALL. COMMONDATA: 1: 0 2: 1033 3: 1252 PROGRESS: PROGRESS: 1: 2 2: 189440 COMMONDATA: 1: 0 2: 1033 3: 1252 INFO: This action is only valid for products that are currently installed. C:\T\Package.msi COMMONDATA: 1: 2 2: 0 COMMONDATA: 1: 2 2: 1 INFO: DEBUG: Error 2755: Server returned unexpected error 1605 attempting to install package C:\T\Package.msi. ERROR: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755. INFO: Action ended 18:31:21: INSTALL. Return value 3. TERMINATE: Windows Installer result: 1603 (INSTALL_FAILURE) ----------------------------------------------- 소스 코드는 다음의 경로에서 받을 수 있는데, ManagedMsiExec ; http://cesso.org/Samples/ManagedMsiExec/ManagedMsiExec.zip 언제 없어질지 모르니 ^^ 이 게시물에도 첨부를 해놓았으니 참고하세요. ^^
첨부파일
스팸 방지용 인증 번호
1736
(왼쪽의 숫자를 입력해야 합니다.)