Jump to content

How to Configure WiX Installer for Different ZWCAD Versions?


Recommended Posts

Posted

I am working to register my plugin in different ZWCAD versions(e.g., ZWCAD 2024 and 2025).

Currently, I have the following registry configuration to load my plugin for ZWCAD 2025:

<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
    <Fragment>
        <ComponentGroup Id="PackageComponents" Directory="MyFolder">
            <Component Id="DLLComponent" Guid="{0F2BB0BA-33EB-4C4E-965A-AF99E319340C}">
                <RegistryValue Root="HKCU"
                                         Key="Software\Company\Plugin.bundle"
                                         Name="Installed"
                                         Type="integer"
                                         Value="1"
                                         KeyPath="yes"/>
                <File Id="Plugin"
                      Name="lugin.dll"
                      Source="$(var.UIPlugin.TargetDir)Plugin.dll"
                   />
                <RegistryKey Root="HKLM"
                      Key="Software\ZWSOFT\ZWCAD\2025\en-US\Applications\ARA">

                    <RegistryValue Type="integer"
                                 Name="LOADCTRLS"
                                 Value="2" />
                    <RegistryValue Type="string"
                                 Name="LOADER"
                                 Value="[#UIPlugin]" />
                    
                    
                    <RegistryValue Type="string"
                                 Name="DESCRIPTION"
                                 Value="" />

                    <RegistryValue Type="integer"
                                 Name="Managed"
                                 Value="1" />
                </RegistryKey>
                
                <RemoveFile Id="RemovePluginDLL"
                                    Name="UIPlugin.dll"
                                    On="uninstall" />
            </Component>
        </ComponentGroup>
    </Fragment>
</Wix>

I want to configure my WiX installer to automatically detect the installed ZWCAD version (2024 or 2025) and register the plugin accordingly.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...