Microsoft MVP성태의 닷넷 이야기
.NET : 122. msiexec.exe를 닷넷으로 만들어 보면! [링크 복사], [링크+제목 복사],
조회: 20155
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일

“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

언제 없어질지 모르니 ^^ 이 게시물에도 첨부를 해놓았으니 참고하세요. ^^








[최초 등록일: ]
[최종 수정일: 6/11/2021]


비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  39  [40]  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
186정성태4/13/20069339Internet Information Services (IIS) 6.0 Manager for Windows XP
185정성태10/20/20069709Windows Vista CTP - Feb 2006 (Build 5308) [1]
183정성태4/13/20068997Running Windows with No Services
182정성태4/13/20069795Visual Studio 2005 Web Application Projects (Beta V2 Preview)
204정성태4/29/20069301    답변글 Visual Studio 2005 Web Application Projects
254정성태4/29/20068939    답변글 RC1 - Visual Studio 2005 Web Application Projects
255정성태4/29/20068985    답변글 설명서 - Introduction to Web Application Projects
181정성태4/13/200611073스마트 클라이언트 - Diagnosing Control in browser issues
180정성태4/13/200610314ILMerge
179정성태4/13/20068929개발자 입장에서 IE 7.0 에서 바뀐 점들
178정성태4/13/20068874Order Your Free Partner Product DVD
177정성태4/13/20068831What's New in Visual C++ 2005 IntelliSense?
176정성태4/13/20068481IE 7.0 Beta 2
175정성태4/13/20068379SQL2005_Sys_Views.pdf파일 다운로드1
174정성태4/13/20068987Create and Share Your Own Code Snippets
172정성태4/13/20068581Activating ActiveX Controls
171정성태4/13/20068717Install Multi Cab Files From Single Container Cab파일 다운로드1
170정성태10/20/20069374Windows "Monad" Shell Beta 3 [1]
169정성태4/13/20069180Windows Server 2003에서의 Visual Basic .NET : 새 벤치마크
168정성태4/13/20068554스마트 클라이언트, 애플리케이션의 신속한 개발 및 배포파일 다운로드1
167정성태4/13/20068361Web Service Security(WSE) 3.0.pdf파일 다운로드1
166정성태4/13/20068742윈도우즈 보안 가이드파일 다운로드1
165정성태4/13/20069083Don't Lock Type Objects! - lock( typeof( SomeClass ) );
163정성태4/13/20069450Virtual Earth SDK
164정성태4/13/20068927    답변글 InkWebPublisher
160정성태4/13/20069410MS 인증서버 : 인증서 유효 기간 기본값 변경
... 31  32  33  34  35  36  37  38  39  [40]  41  42  43  44  45  ...