Wix Minimal UI 没有出现

Wix Minimal UI doesnt show up

我正在尝试使用 Wix 创建一个简单的安装程序,但是 Windows 安装程序没有出现。所以我尝试了基础知识,即:

  1. 添加 Wix v3 安装项目
  2. 填写制造商
  3. 构建并打开 .msi 它显示 "Title" 准备安装
  4. 的弹出窗口
  5. 添加参考 WixUI扩展
  6. 添加<UIRef Id="WixUI_Minimal" />所以它应该显示UI
  7. 构建并打开 .msi 什么都没有出现,我必须通过任务管理器
  8. 终止Windows安装程序

有什么问题吗?

对斯坦因的回答:

普遍性:其他 MSI 文件是否可以正常工作?

超时:您等待 MSI 初始化多长时间?

来源:也许 post 你的全部来源。

<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'.

System Reboot: In this case a simple reboot solved the problem - which is great news.

Speculation: One could speculate as to why, and maybe it had to do with PendingFileRenames (file and folder names waiting to be changed) or some lock in Windows Updates that affected the System Restore point creation? Doesn't sound too likely. Just speculation.

A Deployment Mnemonic: To think about this - if you see the problem - a deployment mnemonic: What is locking (in use), what is blocking (permissions), what is corrupt (disk, malware, configs, encryption), what are unexpected system states (disk space, time & date settings, language, licensing, windows patch state, path too long, PendingFileRenames, etc...), what are incompatible products (things that can't co-exist), what is unreachable or misconfigured (what points to erroneous locations and resources: network server names, disk paths, URLs, databases, services, UAT environments, PROD environments, etc...) and last but not least: what is missing (runtime, resource image, settings file, etc...)? Launch debugging.


旧答案。离开可能会激发想法:

  • Prevalence:其他 MSI 文件是否正常工作?
  • Timeout: 等待MSI初始化需要多长时间?
    • 初始化和系统还原:Windows 安装程序引擎可能会在显示 GUI 之前创建系统还原点。这可能会很慢,并且您的设置可能会挂起。
  • 来源:也许post你的全部来源。
  • 日志记录Always make a log file for your installation session to debug.

听起来你不需要它,但这里有一个:Sample, minimal MSI compile with WiX Votive

直觉是这个对话框集中可能有一个我不知道的 AppSearch。也许试着看看 the sources yourself firstWixUI_Minimal.wxs 等)。您的机器还有其他问题吗? 虚拟?最新 修补程序 恶意软件 已检查? 磁盘space事件日志?