Jump to content

luddet

Members
  • Posts

    4
  • Joined

  • Last visited

luddet's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. How would I do this? And could there be any drawbacks? I was also thinking about perhaps using [DllImport("AutoItx3.dll")] in some way, but I don't know how to import a whole class this way.
  2. That would probably work. But I don't know how to do that. Do you? Or anyone else here?
  3. One would think there must be a simpler way...
  4. I'm developing an application which makes use of the AutoitX dll. In my Visual Studio 2005 C# project I add a reference to the AutoItX3.dll and all is fine and dandy. 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
×
×
  • Create New...