I have a simple C# code that depends on AutoItX3.dll to run. I've successfully run it in my computer without any issue. However, when tested on another PC, it only runs when I download and install AutoIt from their website. I know for a fact that I have to register the dll in order for it to work but I have no idea how to embed the dll registering process in the C# program.
Asked
Active
Viewed 334 times
0
-
can you just put a copy in the same directory as your program? – tofutim Oct 05 '17 at 06:20
-
this might be helpful too https://stackoverflow.com/questions/6810692/how-to-use-autoitx-in-net-c-without-registering – tofutim Oct 05 '17 at 06:21
-
1or use the nuget? – tofutim Oct 05 '17 at 06:22
-
Lol, I actually have AutoItX.Dotnet from NuGet installed but I was calling the AutoItX3.dll the entire time. Thanks a lot tofutim – Lan Nguyen Oct 05 '17 at 06:47
1 Answers
0
if its COM Dlls you are using you can write a com script to register dlls
echo off
Regsvr32 /s C:\DLL.dll
exit
![](../../users/profiles/2663521.webp)
Kassapa
- 139
- 6