English 中文(简体)
WIX 习俗行动——在不同时间进行安装、升级和停电
原标题:WIX Custom Action - run at different times for install, upgrade and uninstall

我有一项习俗行动,将各种名录作为统一进程的一部分予以删除。 我想根据正在做些什么,在安装顺序的不同点提及这一行动:

  • During an install, don t run the custom action
  • During an upgrade, run the custom action after RemoveExistingProducts
  • During an uninstall, run the custom action after RemoveFolders

我可能让其中每一个国家单独工作,但我如何让它们共同合作我所希望。 我尝试了这样的一些(一些法典从here):

<InstallExecuteSequence>

  <Custom Action="PreventDowngrading" After="FindRelatedProducts">
    NEWERPRODUCTFOUND AND NOT Installed
  </Custom>

  <LaunchConditions After="AppSearch" />
  <RemoveExistingProducts Before="InstallInitialize" />

  <!-- NEW _> Clean old files AFTER uninstall during an upgrade -->
  <Custom Action="CleanUp"  After="RemoveExistingProducts" >
    UPGRADINGPRODUCTCODE
  </Custom>

  <!-- NEW _> Clean old files LAST during an uninstall -->
  <Custom Action="CleanUp"  After="RemoveFolders" >
    (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
  </Custom>

</InstallExecuteSequence>

但是,当我做建筑时,就会出现一个重复的象征错误。 任何帮助都将受到高度赞赏。

问题回答

你还可以利用RemoveFiles在名录中删除多余的档案。

习俗行动只能先后进行。 我对以下几大关切感到担忧:你做了哪些升级? 一项重大升级是以往产品一概不变的,因此,您的粮食价格可能比你描述的高出一倍。

我在此真的光亮。 您可以使用WiX RemoveFolder(MSI RemoveFile table )。 这将更容易和可靠地实施。 如果你必须使用一种习俗行动,我就使用部分行动来决定它何时应当经营比上述更通用的特性。





相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签