> You should change it to this:
> <Directory Id='ProgramFilesFolder' Name='PFiles'>
>         <Directory Id='INSTALLDIR' Name='BGInfo4X for Windows
> $(var.ProductVersion)'>
>                 <Directory Id='basedir'></Directory>
>         </Directory>
> </Directory>

Thanks, it works!

> Also, you should pass in "-srd" on the heat commandline (suggestion #3
> above), or else you're going to get a "BGINFO4XW" directory inside the
> directory you intend to install to.

Done.

>
> Finally, regarding the "-ag" matter, you can end up with all sorts of weird
> behavior when you break component GUID rules. Just pass "-ag" for your
> scenario and it's a lot less likely to bite you someday.

Done.


The question that I have now is:
How to create a shortcut in the main file linked or referenced to a
file from the secondary file (source files).

In the past I used the following:

<Directory Id='INSTALLDIR' Name='BGInfo4X for Windows $(var.ProductVersion)'>
    <Component Id='MainExecutable' Guid='8296463F-B539-4044-8250-B855EC0CCD52'>
                <File Id='exampleEXE' Name='example.exe' DiskId='1'
Source='example.exe' KeyPath='yes'>
            <Shortcut Id="startmenuExample" Directory="ProgramMenuDir"
Name="example shortcut" WorkingDirectory='INSTALLDIR'
Icon="WIX_32x32.ico" IconIndex="0" Advertise="yes" />
            <Shortcut Id="desktopExample" Directory="DesktopFolder"
Name="example desktop" WorkingDirectory='INSTALLDIR'
Icon="WIX_32x32.ico" IconIndex="0" Advertise="yes" />
        </File>
    </Component>
</Directory>

But now, I can I adapt the shortcuts to work as expected?

Thanks a lot for your time.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to