2008-10-14 55 views
2

安装程序会设置一个默认数据库(如果尚不存在的话),并且我想从卸载过程中排除该数据库(或者让用户选择删除它或者不要,一旦我花时间弄清楚自定义GUI)您可以在Wix中设置条件卸载吗?

似乎最好的做法是在运行时创建数据库而不是安装时间,但为了争论起见,这是可能的吗?

我知道如何将它设置为有条件地安装它是这样的:

<Feature Id="Database" Display="hidden" Level="1"> 
    <ComponentRef Id="DatabaseComponent"/> 
    <!-- Cancels installing of new DB if it already exists--> 
    <Condition Level="0">DBEXISTS</Condition> 
</Feature> 

但我不知道如何把一个条件上卸载。

回答

8

使组件永久(Component @ Permanent =“yes”)。

相关问题