Hi everyone ı am trying to create installer for my add in. I did everything well until Adding COM component and ı got error at this stage. can someone help me by teamviewer?
Here is the error.
[Unresolved reference to symbol ‘WixComponentGroup:AddInComRegGroup’ in section ‘Product:*’]
It sounds like it could be a few things related to generating the AddInComReg file:
Are you generating the AddInComReg.wxs file automatically during your project build using heat.exe? If so, have you verified that the file physically exists after building?
Do you have the AddInComReg.wxs added to your Installer project? It needs to be present alongside your Product.wxs file that references the AddInComRegGroup.
I’ve run into some issues getting mine set up initially while following this tutorial as well, but it’s been working now through several version updates without issue.
If you could post a bit more about your specific application, that may help. How are you generating the AddInComReg.wxs file?
What you mean with that: 1 If so, have you verified that the file physically exists after building?
2. ı dont have ıf ı genereate during build ı will add as link with this code
<ComponentGroupRef Id="AddInComRegGroup"/>
I am doing step by step acording to tutorial but ı am stack at this stage
Yes, I’m doing the same with this method. Your AddInComReg.wxs file needs to be added to your Installer project after your build it for the first time from your separate library project. Have you done that yet?
Edit:
It will be placed in your build folder specified in your first quoted heat.exe line. On your installer project choose “Add → existing item” to your installer project and browse to the file.
It works for me when I use your parameters. A “Setup” folder is created one level above the target build directory and contains the AddInComReg.wxs file.
Are you getting any errors during your build?
On your add-in project, I think you might need to have “Register for COM Interop” unchecked on the build properties page, although I’m not sure how much that matters. The only class that needs to be ComVisible is the one that implements the SW add-in interface. The other option is to try and run Visual Studio as Admin and try and rebuild.
ı can install add in but when ı try to activate in solidworks although ı checked in addin list cant see in command tab.
latest error;
ICE57: Component ‘cmp8DF04E91C5D91A4BB4E451B62CBE9E85’ has both per-user and per-machine data with a per-machine KeyPath.
command line;
This sounds a bit more like a problem with the add-in project than with the actual installer. Without seeing the project as a whole, I don’t think I can be of much help.