This wix v3.
I have a wix based merge module installing some exe + auxillary stuff. In the main .wxs I can use this merge module and everything works fine so far. Now I'd like to add shortcuts in the startmenu and associate a few extensions with this .exe - which seems to works at least for the shortcuts when I put everything unconditionally in the merge module like so: <Component Win64='$(var.Win64YesNo)' Id='xxx' Guid='...'> <File Id='xxx' Name='xxx.exe' Source='$(var.BuildRoot)\bin\xxx.exe'> <Shortcut Id='startmenuxxx' Directory='ProgramMenuDir' Name='xxx' WorkingDirectory='TARGETDIR'/> <Shortcut Id='desktopxxx' Directory='DesktopFolder' Name='xxx' WorkingDirectory='TARGETDIR'/> </File> </Component> As putting arbitrary stuff unconditionally on the user's 'private area' is not too nice I thought it might be a good idea to have this as separate user-selectible 'features' in the installer. Now the first problem is that I can't reference a file in a merge module. From reading this list I suppose the canonical solution for this is not to use a merge module, but a Wix Fragment. Is this understanding correct? Now, I tried just putting the exe itself not in the merge module, but in the main .wxs, so the merge module related problem is 'gone'. This leave me with a component containing an exe and two shortcuts from which I only want to install the latter. Should I create two components, one with the shortcuts and one without, and install exactly one of them depending on the feature selection? Or is there a method to associate the shortcuts with the file _outside_ the file's 'home component'? Third(ish) problem: The file assosications. I 'found' in the Wix tutorial: <ProgId Id='AcmeFoobar.xyzfile' Description='Acme Foobar data file'> <Extension Id='xyz' ContentType='application/xyz'> <Verb Id='open' Sequence='10' Command='Open' Target='[!FileId]' Argument='"%1"' /> </Extension> </ProgId> This seems to be Wix v2 only and does not work for me with Wix v3. The error I get is: u:\src\fesetup\wix\setup.wxs(350) : error CNDL0045 : The Verb element's TargetFile or TargetProperty attribute was not found; one of these as required when attribute Advertise has a value of 'no'. So I suspect I need to change Target in TargetFile. And put the thing into the <File>...</File> of the 'target' exe? That does not really help... Andre' ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users