简体   繁体   English

在MSI安装WIX期间重命名现有文件

[英]Renaming the existing files during MSI installation WIX

I have a WIX Installer and in the installer i also copy a tutorial project created in VS 2012. What i want is if user has changed the tutorial project by adding new files in it then i just want to rename the existing tutorial and and copy the new tutorail and if user has not changed the existing tutorial then i just want to replace the existing tutorial with the new tutorial. 我有一个WIX安装程序,在安装程序中我也复制了在VS 2012中创建的教程项目。我想要的是如果用户通过在其中添加新文件来更改教程项目,那么我只想重命名现有教程并复制新的tutorail并且如果用户没有更改现有教程,那么我只想用新教程替换现有教程。

Is the first question is, Is it really possible using WIX? 第一个问题是,是否真的可以使用WIX? (Does WIx gives us some functionality like that) (WIx是否为我们提供了类似的功能)

if its possible can some will guide me how to do that? 如果有可能,有些人会指导我如何做到这一点?

It should be possible using the MoveFile element but it's going to be really tricky. 应该可以使用MoveFile元素,但它会非常棘手。 I worked for a company that created a .NET SDK and we build custom project types for VS that allowed the user to say File | 我在一家创建.NET SDK的公司工作,我们为VS构建自定义项目类型,允许用户说File | New | 新的| SomeTypeOfApp and then use that for training. SomeTypeOfApp然后用它进行训练。 We also kept our "tutorial" apps in ZIP files and an application that acted as a front end asking the developer where they would like to extract the sample app to. 我们还将我们的“教程”应用程序保存在ZIP文件和作为前端的应用程序中,询问开发人员他们想要将示例应用程序提取到哪里。 This greatly simplified the installer requirements. 这大大简化了安装程序的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM