Das Setzen der Option 'AllUsers' im Wix-Installationsprogramm funktioniert nicht

Ich verwende ein WiX, um einen Dienst auf dem Testcomputer zu installieren. Aber wenn ich das tue, kann nur der Benutzer, der es auf dem Computer installiert hat, in der Systemsteuerung die Option "Software" sehen. Aber ich möchte es für jeden Benutzer auf der Maschine sichtbar machen.

Ich habe ein paar Nachforschungen angestellt und festgestellt, dass ich das nicht einstelleAllUSERS Eigenschaft beim Erstellen des Installationsprogramms in der WXS-Datei.

Also habe ich mein Skript mit dieser Zeile aktualisiert<Property Id="AllUSERS" Value="1"/> und erstellte das Installationsprogramm. Aber immer noch kann nur der Benutzer, der es installiert hat, es in der Systemsteuerung sehen.

Hier ist mein Skript, um das Installationsprogramm zu erstellen.

<?xml version='1.0' encoding='windows-1252'?>

<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>

<Product Name='Importer Service' Id='PUT-GUID-HERE' UpgradeCode='PUT-GUID-HERE'
Language='1033' Codepage='1252' Version='$(var.version)' Manufacturer='Test'>

<Package Id='*' Keywords='Installer' Description="Imports data"
   Manufacturer='Test' InstallerVersion='100' Languages='1033' Compressed='yes'
   SummaryCodepage='1252' />

 <Media Id='1' Cabinet='ImporterWebService.cab' EmbedCab='yes' 
        DiskPrompt="CD-ROM #1" />
<Property Id='DiskPrompt' Value="Importer Web Service 1.0 Installation [1]" />

<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="AllUSERS" Value="1"/>

<Directory Id='TARGETDIR' Name='SourceDir'>

  <Directory Id='ProgramFilesFolder' Name='PFiles'>
    <Directory Id='Test' Name='Test1'>
      <Directory Id='INSTALLDIR' Name='Importer Service'>

        <Component Id='MainExecutable' Guid='*'>
          <File Id='ImporterWindowsServiceEXE' 
                Name='Importer.WindowsService.exe' DiskId='1' 
                Source='Importer.WindowsService.exe' KeyPath='yes'>
          </File>

      <ServiceInstall
          Id="ImporterServiceInstaller"
          Type="ownProcess"
          Vital="yes"
          Name="Importer Service"
          DisplayName="Importer Service"
          Description="Imports data."
          Start="demand"
          Account="LocalSystem"
          ErrorControl="ignore"
          Interactive="no">
     </ServiceInstall>

        <ServiceControl Id="StartService" Stop="both" Remove="uninstall" 
                        Name="Importer Service" Wait="yes" />
        </Component>

        <Component Id='FileHelpersLibrary' Guid='*'>
          <File Id='FileHelpersDLL' Name='FileHelpers.dll' DiskId='1' 
                Source='FileHelpers.dll' KeyPath='yes' />
        </Component>           

        <Component Id='CodeSmithDataLibrary' Guid='*'>
          <File Id='CodeSmithDataDLL' Name='CodeSmith.Data.dll' DiskId='1' 
                Source='CodeSmith.Data.dll' KeyPath='yes' />
        </Component>          

      </Directory>
    </Directory>
  </Directory>

  <Directory Id="ProgramMenuFolder" Name="Programs">
    <Directory Id="ProgramMenuDir" Name="Importer Service">
      <Component Id="ProgramMenuDir" Guid="*">
        <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
        <RegistryValue Root='HKCU' 
                       Key='Software\[Manufacturer]\[ProductName]' 
                       Type='string' Value='' KeyPath='yes' />
      </Component>
    </Directory>
  </Directory>

  <Directory Id="DesktopFolder" Name="Desktop" />
</Directory>

<Feature Id='Complete' Title='Importer Service' 
         Description='The complete package'
         Display='hidden' Level='1' ConfigurableDirectory='INSTALLDIR'>
  <ComponentRef Id='MainExecutable' />
  <ComponentRef Id='FileHelpersLibrary' /> 
  <ComponentRef Id='CodeSmithDataLibrary' />      
  <ComponentRef Id='ProgramMenuDir' />      
</Feature>

<UIRef Id="WixUI_InstallDir" />
<UIRef Id="WixUI_ErrorProgressText" />


 </Product>
 </Wix>

Könnte jemand bitte das Skript anschauen und mich wissen lassen, was ich falsch mache.

Vielen Dank.

Antworten auf die Frage(1)

Ihre Antwort auf die Frage