Bob Arnson wrote:
>       Jimmy Do wrote:
>       > 3. Edited Sample.wxs to include these two elements:
>       >                               <Merge Id="HelpModule" DiskId="1" 
> Language="1033" SourceFile="HelpInstall.msm" /> (inside the INSTALLDIR 
> <Directory> element)
>       >                               <MergeRef Id="HelpModule" /> (inside 
> the <Feature> element)
>
> You'll also need Merge and MergeRefs for the other Help 2.x merge modules 
> (HTML_Help_Registration__RTL_---_---.msm and
> HTML_Help_Registration__RTL_X86_---.msm).

I tried adding Merge and MergeRef for both 
'HTML_Help_Registration__RTL_---_---.msm' and 
'HTML_Help_Registration__RTL_X86_---.msm' and included those 2 files in the 
directory containing Sample.wxs, but the generated installer still doesn't 
register the help file.



>       > Or is there some other way of using WIX to install a .hxs file into 
> the VS help system?
>
> Take a look at WixVSExtension. It includes strongly-typed authoring for .Hx? 
> files, such as HelpCollection and
> HelpFile. See "Vs Schema" in WiX.chm.

This sounded interesting so I looked into it, but I couldn't find much info on 
the web about using WixVSExtension. I did find the VS Schema information in the 
Wix.chm, so here's a snippet from my attempt:


<Product Id='69A7A830-638F-11DB-BD13-0800200C9A66' Name='Test Package' 
Language='1033' Version='1.0.0.0' Manufacturer='Microsoft Corporation' 
UpgradeCode='92AF3270-638F-11DB-BD13-0800200C9A66'>
        <Package
                Description='Some description'
                Comments='Comments for this installer'
                Manufacturer='Some Company' InstallerVersion='200' 
Compressed='yes'/>

        <Media Id='1' Cabinet='Something.cab' EmbedCab='yes'/>

        <Directory Id='TARGETDIR' Name='SourceDir'>
                <Directory Id='ProgramFilesFolder' Name='PFiles'>
                        <Directory Id='MyAppDir' Name='MyAppInstallDir'>
                                <Component Id='MyComponent' 
Guid='D85DF130-638F-11DB-BD13-0800200C9A66'
                                                
xmlns:vse='http://schemas.microsoft.com/wix/VSExtension'>
                                        <File Id='HelpFile' 
Name='AppHelpFile.hxs' Source='AppHelpFile.hxs'>
                                                <vse:HelpFile Id='MyHelpFile' 
Name='my.help.file.id'/>
                                        </File>
                                        <File Id='CollectionFile' 
Name='AppHelpFile.hxc' Source='AppHelpFile.hxc'>
                                                <vse:HelpCollection 
Id='MyHelpCollection' Description='Help collection description' 
Name='my.help.namespace.id'>
                                                        <vse:HelpFileRef 
Id='MyHelpFile'/>
                                                        <vse:PlugCollectionInto 
TargetCollection='MS_VSIPCC_v80'/>
                                                </vse:HelpCollection>
                                        </File>
                                </Component>
                        </Directory>
                </Directory>
        </Directory>

        <Feature Id='MyFeature' Title='My 1st Feature' Level='1'>
                <ComponentRef Id='MyComponent'/>
        </Feature>
</Product>



In the directory containing Sample.wxs, I added AppHelpFile.hxs and 
AppHelpFile.hxc.

Then I did this on the command prompt:
        candle Sample.wxs -ext WixVSExtension
        light Sample.wixobj -ext WixVSExtension

But 'light' gives this error message:
error LGHT0204 : ICE03: Not a valid foreign key; Table: HelpPlugin, Column: 
HelpNamespace_Parent, Key(s): MyHelpCollection.MS_VSIPCC_v80



Any ideas what I did wrong? Also, is there away to *not* specify a .hxc file? 
Our setup only generates a .hxs, so I'm not sure if I correctly created the 
.hxc file.

Jimmy

-------------------------------------------------------------------------
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

Reply via email to