santhoshr151194 Posted February 17 Posted February 17 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. Quote
hosneyalaa Posted February 26 Posted February 26 I'm not sure. try <Wix> <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> <RegistryKey Root="HKLM" Key="Software\ZWSOFT\ZWCAD\2024\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> Quote
BIGAL Posted February 26 Posted February 26 Had a look at Wix installer looks interesting. I use a lisp and a ZIP file to do installs, you load the lisp and then point to the saved zip file. A new directory is made files unzipped, CAD support paths added, new menus loaded, etc so ready to go. All is done including unzip via lisp. Quote
Recommended Posts
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.