2017-08-31 129 views
0

我有一个WIX可执行安装包,为了简单起见,我们只需要调用setup.exe即可。使用PowerShell脚本我需要做这个包以下:是否可以解构和重建WIX可执行文件?

1. Deconstruct the setup.exe WIX package. 
2. Unpack the setup.msi file contained within. 
3. Modify a config file within the unpacked setup.msi. 
4. Repack setup.msi with this new config. 
5. Reconstruct the setup.exe WIX package. 

目前我能做的步骤1至4以下列方式:

1. Run dark.exe -x OutputFolder1 setup.exe. 
2. Run ms2xml.exe -c OutputFolder2 setup.msi 
3. Update the config file. 
4. Run xml2msi.exe -m setup.xml 

不幸的是在这一点上,我不能重现即使OutputFolder1似乎包含WIX需要重新创建包的所有信息,WIX包仍使用修改过的setup.msi。

因此,有没有一种方法可以重新创建使用黑暗解构的WIX包?另外还有另一种方法来实现这一点,而不使用黑暗?

回答

1

您需要Light.exe来重建一个包。它不能从反编译的包中启动。

+0

谢谢。使用Light.exe重建软件包需要哪些文件?安装文件只包含一个msi和一个net46安装。 – kh25

+0

编译捆绑包的所有对象文件,这些文件被链接并绑定到捆绑包.exe中。 –

相关问题