我有一个应用程序的可执行包 (.exe)。如何将此可执行文件转换为MSI包?
我知道使用以下方法将 .msi 转换为 .wxs。
dark.exe installer.msi
这是一个很棒的小型迷你教程。这可能就是您所需要的:
1) 创建 Wix XML 文件
EXAMPLE:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
</Wix>
2) 为您的 .exe 构建一个 MSI
EXAMPLE:
candle example.wxs
light example.wixobj
3)瞧。如果没有比“安装 .exe”更复杂的了,那么您就完成了!将 .msi 带到不同的 PC 上并进行测试。
如果您需要,上面的链接还讨论了其他场景。例如:
ANOTHER, MORE REALISTIC .WIX FILE:
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111"
Name="Example Product Name" Version="0.0.1" Manufacturer="Example Company Name" Language="1033">
<Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package"/>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="Example">
<Component Id="ApplicationFiles" Guid="12345678-1234-1234-1234-222222222222">
<File Id="ApplicationFile1" Source="example.exe"/>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="DefaultFeature" Level="1">
<ComponentRef Id="ApplicationFiles"/>
</Feature>
</Product>
</Wix>
这是“标准”教程,还有很多其他信息:
Bon soir(至少在加利福尼亚这里;))
'希望有帮助!
使用UniExtract从 EXE 中提取 MSI,然后在 MSI 上应用深色。