Microsoft MVP성태의 닷넷 이야기
.NET : 122. msiexec.exe를 닷넷으로 만들어 보면! [링크 복사], [링크+제목 복사],
조회: 20160
글쓴 사람
정성태 (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)
160정성태4/13/20069410MS 인증서버 : 인증서 유효 기간 기본값 변경
157정성태4/13/20069036Converting a managed PDB into a XML file
158정성태4/13/20068690    답변글 [추가]: A SymWriter sample is coming...
156정성태4/13/20069488Method Call Interception (MCI) in C++
155정성태4/13/20068896Web Project Conversion Wizard
154정성태12/21/20059625Interprocess Communication Using the Running Object Table (ROT)파일 다운로드1
153정성태4/13/20069111Assembly loading failure is expensive [1]
152정성태4/13/20069702ASCX 컨트롤을 커스텀 컨트롤로 사용하는 방법.
151정성태4/13/20068524TechNet 세미나 목록
150정성태4/13/20068683SCDL Tool [2]
149정성태4/13/20068775Disk (based) Output Cache
147정성태4/13/20068724CLR Profiler for the .NET Framework 2.0
146정성태4/13/20069700Scriptomatic Version 2.0 by the Microsoft Scripting Guys
145정성태4/13/20069150Windows Server 2003 R2 [2]
144정성태4/13/20069517WTL(Windows Template Library) 7.5
143정성태4/13/20069775.NET 1.1 에서 WebService Client 의 KeepAlive = false; 설정
142정성태4/13/20068948Virtual Server 2005 R2 (x86, x64) EE 180-day Evaluation [2]
141정성태4/13/20069622.NET 표준개발 가이드와 Microsoft.Framework 공개
140정성태4/13/20068151PAINT.NET
139정성태11/30/2005920512월 세미나 행사
137정성태11/17/20058667WSE 3.0 정식 버전
162정성태4/13/20069329    답변글 [추가]: Web Service Security Guide
136정성태11/17/20058969Creating an Outlook My.Blogs Managed Code Add-in
138정성태11/24/20058420    답변글 Ceating an Outlook Business Contact Assistant Add-in with Visual Studio Tools for Office
135정성태11/16/20058713What's port 445 used for in Windows 2000/XP?파일 다운로드1
134정성태11/15/20058687Microsoft SQL Server Management Studio Express - Community Technical Preview (CTP) November 2005 [1]
... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...