2013-02-07 62 views
1

我创建了一个基本的安装程序。
它从c:\ temp.log中获取一个文件并将其复制到正在从注册表中读取的目录中。
un-installer在哪里?它如何添加链接到Windows“添加删除程序”?WIX安装程序如何删除安装

我在这里失踪了什么?
安装时我需要复制文件,然后停止/启动某个服务。
在卸载我需要删除该文件+文件夹,然后停止/启动某种服务。

感谢

代码:

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <Product Id="325c4bfd-6614-43e9-aedb-93661295352d" Name="install" Language="1033" Version="1.0.0.0" Manufacturer="install" UpgradeCode="4307526e-3902-40d0-991b-bacff9b3d71b"> 

    <Package InstallerVersion="200" Compressed="yes" /> 

    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> 

    <Property Id="APPDIR"> 
     <RegistrySearch Id="APPDIRECTORY" Type="raw" Root="HKLM" Key="SOFTWARE\APP\APPInstalPath" Name="InstallationPath" /> 
    </Property> 

    <Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="APPDIR"> 
      <Component Id="ProductComponent" Guid="93118c45-f0c0-4c9e-9168-8ea905e9427c"> 
       <File Id="pluggin" Source="C://setup.log" KeyPath="yes" Checksum="yes"/> 
      </Component>  
     </Directory> 
    </Directory> 

    <Feature Id="ProductFeature" Title="install" Level="1"> 
     <ComponentRef Id="ProductComponent" /> 
     <ComponentGroupRef Id="Product.Generated" /> 
    </Feature> 
    </Product> 
</Wix> 
+0

我得到了正确的方法来消除它是右击.msi文件,并选择取消安装。所以我需要添加“添加删除程序”对话框的快捷方式? – ilansch

回答

2

中添加的上市/删除程序是你在产品标签中指定的任何名称。在你的情况下,在加名/删除程序是安装

<Product Id="325c4bfd-6614-43e9-aedb-93661295352d" Name="install" 
+0

谢谢,“安装”没有列出它,但是当我更改名称时,它确实列出了它。 – ilansch