Everything works on my development machine where I also have AutoIt installed.
Now I create a Visual Studio setup project and it detects the dependency of AutoItX3.dll and Interop.AutoItX3Lib.dll.
And this is where I get the problem. How should I set the settings for the reference and dependencies?
The defaults are:
Reference in main project->AutoItXLib - Isolated: False
Dependency in setup->AutoItX3.dll - Register: vsdrfDoNotRegister
Dependency in setup->Interop.AutoItX3Libb.dll - Register: vsdraDoNotRegister
If I leave them at the default values the application doesn't work on a computer that doesn't have autoit installed. I get this error message:
"Retrieving the COM class factory for component with CLSID {1A671297-FA74-4422-80FA-6C5D8CE4DE04} failed due to the following error: 80040154."
Now I change the settings to:
Dependency in setup->AutoItX3.dll - Register: vsdrfCOMSelfReg
Dependency in setup->Interop.AutoItX3Libb.dll - Register: vsdraCOMRelativePath
This will work even on a computer that doesn't have autoit installed, but it brings another problem instead.
If the computer has autoit installed and I then uninstall it after installing my application, my application stops working.
I'm assuming that this is because autoit removes the registration of the specific guid associated with the autoit dll when it is uninstalled without knowing that my application is using the same guid.
I hope I have made my problem clear enough.
So the big question is of course, how can I prevent this uninstallation problem from happening?
thanks
/luddet
This post has been edited by luddet: 07 February 2006 - 05:42 PM

Sign In
Register
Help
MultiQuote
