我正在尝试使用Wix创建一个简单的安装程序,但是Windows Installer没有出现。因此,我尝试了以下基础知识:
<UIRef Id="WixUI_Minimal" />
,因此应该显示用户界面怎么了?
斯坦因的答案:
患病率:其他MSI文件是否可以正常工作?
超时:您要等待MSI初始化多长时间?
来源:也许发布您的整个来源。
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="MinimalTester" Language="1033" Version="1.0.0.0" Manufacturer="MinimalTester" UpgradeCode="795294d8-45b1-4110-a80c-4a593e86bc68">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />
<UIRef Id="WixUI_Mondo" />
<WixVariable Id="WixUILicenseRtf" Value="TestLicenseAgreement.rtf" />
<Feature Id="ProductFeature" Title="MinimalTester.Installer" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MinimalTester" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Feature="ProductFeature">
<File Source="C:\Source\TestApp\bin\Debug\TestApp.exe" />
</Component>
</ComponentGroup>
</Fragment>
记录:始终为安装会话创建一个日志文件以进行调试。
=== Verbose logging started: 10/12/2018 08:43:43 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\WINDOWS\system32\msiexec.exe ===
MSI (c) (EC:A0) [08:43:43:124]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (EC:A0) [08:43:43:125]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
MSI (c) (EC:7C) [08:43:43:158]: Resetting cached policy values
MSI (c) (EC:7C) [08:43:43:159]: Machine policy value 'Debug' is 0
MSI (c) (EC:7C) [08:43:43:159]: ******* RunEngine:
******* Product: TestApp.Installer.msi
******* Action:
******* CommandLine: **********
MSI (c) (EC:7C) [08:43:43:166]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (EC:7C) [08:43:43:227]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2
MSI (c) (EC:7C) [08:43:43:228]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Source\TestApp\bin\Debug\TestApp.Installer.msi' against software restriction policy
MSI (c) (EC:7C) [08:43:43:229]: Note: 1: 2262 2: DigitalSignature 3: -2147287038
MSI (c) (EC:7C) [08:43:43:229]: SOFTWARE RESTRICTION POLICY: C:\Source\TestApp\bin\Debug\TestApp.Installer.msi is not digitally signed
MSI (c) (EC:7C) [08:43:43:231]: SOFTWARE RESTRICTION POLICY: C:\Source\TestApp\bin\Debug\TestApp.Installer.msi is permitted to run at the 'unrestricted' authorization level.
MSI (c) (EC:7C) [08:43:43:237]: Cloaking enabled.
MSI (c) (EC:7C) [08:43:43:237]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (EC:7C) [08:43:43:241]: End dialog not enabled
MSI (c) (EC:7C) [08:43:43:241]: Original package ==> C:\Source\TestApp\bin\Debug\TestApp.Installer.msi
MSI (c) (EC:7C) [08:43:43:241]: Package we're running from ==> C:\Source\TestApp\bin\Debug\TestApp.Installer.msi
MSI (c) (EC:7C) [08:43:43:243]: APPCOMPAT: Compatibility mode property overrides found.
MSI (c) (EC:7C) [08:43:43:244]: APPCOMPAT: looking for appcompat database entry with ProductCode '{A401E2B5-DBD1-41AC-8F84-BC9EAF39E728}'.
MSI (c) (EC:7C) [08:43:43:244]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (EC:7C) [08:43:43:253]: MSCOREE not loaded loading copy from system32
MSI (c) (EC:7C) [08:43:43:256]: Machine policy value 'TransformsSecure' is 0
MSI (c) (EC:7C) [08:43:43:256]: User policy value 'TransformsAtSource' is 0
MSI (c) (EC:7C) [08:43:43:256]: Note: 1: 2205 2: 3: MsiFileHash
MSI (c) (EC:7C) [08:43:43:256]: Machine policy value 'DisablePatch' is 0
MSI (c) (EC:7C) [08:43:43:256]: Machine policy value 'AllowLockdownPatch' is 0
MSI (c) (EC:7C) [08:43:43:257]: Machine policy value 'DisableMsi' is 0
MSI (c) (EC:7C) [08:43:43:257]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (EC:7C) [08:43:43:257]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (EC:7C) [08:43:43:257]: Running product '{A401E2B5-DBD1-41AC-8F84-BC9EAF39E728}' with user privileges: It's not assigned.
MSI (c) (EC:7C) [08:43:43:257]: Machine policy value 'DisableLUAPatching' is 0
MSI (c) (EC:7C) [08:43:43:257]: Machine policy value 'DisableFlyWeightPatching' is 0
MSI (c) (EC:7C) [08:43:43:257]: APPCOMPAT: looking for appcompat database entry with ProductCode '{A401E2B5-DBD1-41AC-8F84-BC9EAF39E728}'.
MSI (c) (EC:7C) [08:43:43:257]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (EC:7C) [08:43:43:257]: Transforms are not secure.
MSI (c) (EC:7C) [08:43:43:257]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\Source\TestApp\bin\Debug\Your.log'.
MSI (c) (EC:7C) [08:43:43:257]: Command Line: CURRENTDIRECTORY=C:\Source\TestApp\bin\Debug CLIENTUILEVEL=0 CLIENTPROCESSID=18924
MSI (c) (EC:7C) [08:43:43:257]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{60067773-7475-4FB5-B5D0-26E6934E64E2}'.
MSI (c) (EC:7C) [08:43:43:257]: Product Code passed to Engine.Initialize: ''
MSI (c) (EC:7C) [08:43:43:257]: Product Code from property table before transforms: '{A401E2B5-DBD1-41AC-8F84-BC9EAF39E728}'
MSI (c) (EC:7C) [08:43:43:257]: Product Code from property table after transforms: '{A401E2B5-DBD1-41AC-8F84-BC9EAF39E728}'
MSI (c) (EC:7C) [08:43:43:257]: Product not registered: beginning first-time install
MSI (c) (EC:7C) [08:43:43:257]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (c) (EC:7C) [08:43:43:257]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (c) (EC:7C) [08:43:43:257]: User policy value 'SearchOrder' is 'nmu'
MSI (c) (EC:7C) [08:43:43:257]: Adding new sources is allowed.
MSI (c) (EC:7C) [08:43:43:257]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (c) (EC:7C) [08:43:43:258]: Package name extracted from package path: 'TestApp.Installer.msi'
MSI (c) (EC:7C) [08:43:43:258]: Package to be registered: 'TestApp.Installer.msi'
MSI (c) (EC:7C) [08:43:43:258]: Note: 1: 2205 2: 3: Error
MSI (c) (EC:7C) [08:43:43:258]: Note: 1: 2262 2: AdminProperties 3: -2147287038
MSI (c) (EC:7C) [08:43:43:258]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (EC:7C) [08:43:43:258]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (EC:7C) [08:43:43:258]: Running product '{A401E2B5-DBD1-41AC-8F84-BC9EAF39E728}' with user privileges: It's not assigned.
MSI (c) (EC:7C) [08:43:43:258]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'C:\Source\TestApp\bin\Debug'.
MSI (c) (EC:7C) [08:43:43:258]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '0'.
MSI (c) (EC:7C) [08:43:43:258]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '18924'.
MSI (c) (EC:7C) [08:43:43:258]: PROPERTY CHANGE: Adding MsiSystemRebootPending property. Its value is '1'.
MSI (c) (EC:7C) [08:43:43:258]: TRANSFORMS property is now:
MSI (c) (EC:7C) [08:43:43:258]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '200'.
MSI (c) (EC:7C) [08:43:43:259]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming
MSI (c) (EC:7C) [08:43:43:259]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\Favorites
MSI (c) (EC:7C) [08:43:43:259]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Network Shortcuts
MSI (c) (EC:7C) [08:43:43:259]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\Documents
MSI (c) (EC:7C) [08:43:43:259]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
MSI (c) (EC:7C) [08:43:43:260]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Recent
MSI (c) (EC:7C) [08:43:43:260]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\SendTo
MSI (c) (EC:7C) [08:43:43:260]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Templates
MSI (c) (EC:7C) [08:43:43:260]: SHELL32::SHGetFolderPath returned: C:\ProgramData
MSI (c) (EC:7C) [08:43:43:260]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Local
MSI (c) (EC:7C) [08:43:43:260]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\Pictures
MSI (c) (EC:7C) [08:43:43:261]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (EC:7C) [08:43:43:261]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (EC:7C) [08:43:43:261]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
MSI (c) (EC:7C) [08:43:43:261]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
MSI (c) (EC:7C) [08:43:43:261]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
MSI (c) (EC:7C) [08:43:43:262]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (EC:7C) [08:43:43:262]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (EC:7C) [08:43:43:262]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
MSI (c) (EC:7C) [08:43:43:262]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\AppData\Roaming\Microsoft\Windows\Start Menu
MSI (c) (EC:7C) [08:43:43:263]: SHELL32::SHGetFolderPath returned: C:\Users\Colin\Desktop
MSI (c) (EC:7C) [08:43:43:263]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
MSI (c) (EC:7C) [08:43:43:264]: SHELL32::SHGetFolderPath returned: C:\WINDOWS\Fonts
MSI (c) (EC:7C) [08:43:43:265]: Note: 1: 2898 2: MS Sans Serif 3: MS Sans Serif 4: 0 5: 16
MSI (c) (EC:7C) [08:43:43:274]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
MSI (c) (EC:7C) [08:43:43:274]: PROPERTY CHANGE: Adding AdminUser property. Its value is '1'.
MSI (c) (EC:7C) [08:43:43:274]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
MSI (c) (EC:7C) [08:43:43:274]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2
MSI (c) (EC:7C) [08:43:43:274]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2
MSI (c) (EC:7C) [08:43:43:274]: PROPERTY CHANGE: Adding DATABASE property. Its value is 'C:\Source\TestApp\bin\Debug\TestApp.Installer.msi'.
MSI (c) (EC:7C) [08:43:43:274]: PROPERTY CHANGE: Adding OriginalDatabase property. Its value is 'C:\Source\TestApp\bin\Debug\TestApp.Installer.msi'.
MSI (c) (EC:7C) [08:43:43:274]: Machine policy value 'MsiDisableEmbeddedUI' is 0
MSI (c) (EC:7C) [08:43:43:274]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Source\TestApp\bin\Debug\'.
MSI (c) (EC:7C) [08:43:43:274]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Source\TestApp\bin\Debug\'.
MSI (c) (EC:A0) [08:43:43:275]: PROPERTY CHANGE: Adding VersionHandler property. Its value is '5.00'.
=== Logging started: 10/12/2018 08:43:43 ===
MSI (c) (EC:7C) [08:43:43:292]: Note: 1: 2205 2: 3: PatchPackage
MSI (c) (EC:7C) [08:43:43:292]: Machine policy value 'DisableRollback' is 0
MSI (c) (EC:7C) [08:43:43:292]: User policy value 'DisableRollback' is 0
MSI (c) (EC:7C) [08:43:43:292]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
答案 0 :(得分:2)
系统重新启动 :在这种情况下,简单的重新启动即可解决问题-这是个好消息。
推测 :人们可以推测原因,也许与 PendingFileRenames (文件和文件夹名称等待 更改)或影响系统的Windows更新中的某些锁定 恢复点创建?听起来不太可能。只是猜测。
部署助记符 :考虑一下-如果您发现问题,请考虑部署助记符:
What is locking
(在采用),what is blocking
(权限),what is corrupt
(磁盘,恶意软件,配置,加密),what are unexpected system states
(磁盘空间,时间和日期设置,语言,许可,Windows补丁 状态,路径太长,PendingFileRenames等),what are incompatible products
(无法共存的事物),what is unreachable or misconfigured
(指向错误位置和资源的内容:网络服务器名称, 磁盘路径,URL,数据库,服务,UAT环境,PROD环境等),最后但并非最不重要的是:what is missing
(运行时,资源映像,设置文件等)。 )? Launch debugging。
较早的答案。留下来也许会引发一些想法:
听起来好像不需要它,但这是一个Sample, minimal MSI compile with WiX Votive。
感觉是我可能不知道该对话框集中有一个AppSearch。也许尝试看看the sources yourself first( WixUI_Minimal.wxs
等)。您的机器还有其他问题吗? 虚拟?最新的修补程序? 恶意软件已检查吗? 磁盘空间? 事件日志?