Search code examples
wixshortcut

WiX Toolset add ODBC-32 Manager shortcut into Startmenu


At the moment I'm creating a setup script with WiX Toolset. I can not find a solution, how to add a shortcut of ODBC-32 Manager into Startmenu of my App. Has anyone a tip (code snippet), how to solve this problem?


Solution

  • If someone is interesting, here is a code snipped, to create a ODBC manager shortcut

    <Component Id="cmp_extra_shortcuts" Guid="*">
        <!-- ODBC Manager shortcut -->
        <Shortcut
            Id="*"
            Name="ODBC Manager (32-Bit)"
            Target="[SystemFolder]odbcad32.exe"
            Description="Windows ODBC Manager (32-Bit)"
            Directory="ProgramMenuToolsDir"
            Advertise="no"
            WorkingDirectory="PRODUCTFOLDER"
            Show="normal"/>
    
        <RegistryValue
            Root="HKCU"
            Key="Software\$(var.CompanyFolder)\$(var.ApplicationNameWithVersion)"
            Name="Installed"
            Type="integer"
            Value="1"
            KeyPath="yes"/>
    </Component>
    

    I hope someone helps it.