Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Verknüpfung fehlerhaft


1 reply to this topic

vbtricks

vbtricks
  • Members
  • 1 posts

Posted 11 October 2005 - 18:50

Hallo zusammen,

hoffe ich bin hier richtig. Ich habe eine .NET Anwendung erstellt und möchte diese nun mittels WIX weitervertreiben. Dazu habe ich mir ein Tutorial zu Gemüte geführt und dann mein eigenes Setup erstellt:
CODE

<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
   <!-- WARNING! IT WILL NOT WORK UNTIL YOU SET VALID GUIDS HERE -->
   <Product
       Id           = 'xxx'
       UpgradeCode  = 'xxxx'
   >
       <Package
           Id               = '????????-????-????-????-????????????'
       />
     
       <!-- INSTALL DESCRIPTION -->
       <Media Id='1' Cabinet='contents.cab' EmbedCab='yes' CompressionLevel="high" />
       <Property Id='DiskPrompt' Value="DS Installation [1]" />
     
       <Directory Id='TARGETDIR' Name='SourceDir'>
           <Directory Id='ProgramFilesFolder' Name='PFiles'>
               <Directory Id='INSTALLDIR' Name='DS' LongName='DS'>
                    <Component Id='MainExecutable' Guid='xxx'>
                       <File Id='MyEXE' Name='DS.exe' LongName='DS.exe'
                           DiskId='1' src='DS.exe' Vital='yes'
                       />
                       <Shortcut Id='startmenuDS' Directory='ProgramMenuDir' Name='DS'
                           LongName='DS' Target='MainProgram' WorkingDirectory='INSTALLDIR'
                           Icon='DS.exe' IconIndex='0' Show="normal"
                       />
                   </Component>
                 
           <Directory Id='ProgramMenuFolder' Name='PMenu' LongName='Programs'>
               <Directory Id='ProgramMenuDir' Name='DS' LongName='DS' />
           </Directory>
         
           <Directory Id='DesktopFolder' Name='Desktop' />
       </Directory>

       <Feature Id='Complete' Title='Basic installation' Level='1' Description='Complete installation'
           Display='expand' ConfigurableDirectory='INSTALLDIR'>
           <Feature Id='MainProgram' Title='Program' Description='The main executable.' Level='1'>
               <ComponentRef Id='MainExecutable' />
               <ComponentRef Id='MainManifest' />
           </Feature>
         
           <Feature Id='GermanLangPack' Title='German Language Pack' Description='German Language Pack' Level='1000'>
               <ComponentRef Id='HelpFileGer' />
               <ComponentRef Id='GermanLangFile' />
           </Feature>
       </Feature>
   </Product>
</Wix>

Das funktioniert auch fast einwandfrei. Die Dateien werden an die richtige Stelle kopiert. Nur die Verknüpfung auf die EXE-Datei lässt sich nicht aufrufen. Ich erhalte immer die Meldung, dass die Installation beschädigt sei. Was hab ich falsch gemacht?

Danke im Voraus,

Stefan

PS: Die GUIDs habe ich natürlich entsprechend gesetzt.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 12 October 2005 - 11:30

Ich kenn mich mit dem WiX XML nicht so gut aus. Muss man in der Component nicht irgendwo angeben, welche Datei das key Element sein soll? Oder macht WiX das automatisch?
Du kannst auch mal die erstellte MSI-Datei in Orca validieren.