মাইক্রোসফট উইন্ডোজ অপারেটিং সিস্টেমে, regsvr32 একটি কমান্ড-লাইন ইউটিলিটি যা OLE কন্ট্রোল যেমন DLL এবং ActiveX কন্ট্রোলগুলো উইন্ডোজ রেজিস্টরিতে রেজিস্টার ও আনরেজিস্টার করতে ব্যবহৃত হয়। উদাহরণস্বরূপ – একটি DDL, regsvr32-এর সাথে ব্যবহার করার জন্য, অবশ্যই DllRegisterServer এবং DllUnregisterServer ফাংশন এক্সপোর্ট করতে হবে। এই টুলটি উইন্ডোজ, মাইক্রোসফট ইন্টারনেট এক্সপ্লোরার, বা অন্যান্য প্রোগ্রামের কিছু সমস্যা ট্রাবলশুট করতে কাজে লাগতে পারে।

উইন্ডোজ ১০-এ Regsvr32
Regsvr32.exe মাইক্রোসফট উইন্ডোজের সাথে অন্তর্ভুক্ত থাকে এবং System32 (Windows NT/Windows XP/Windows Vista/Windows 7/Windows 8.1/Windows 10) ফোল্ডারে ইনস্টল থাকে।
Regsvr32 কমান্ড এবং ব্যবহার
১. RegSvr32.exe কমান্ড-লাইন অপশন:
Regsvr32 [/ u] [/ n] [/ i [: cmdline]] dllname
২. প্যারামিটার:
- /u : ফাইলটি আনরেজিস্টার করবে।
- /s : রেজসভার32 সাইলেন্টলি চালাবে এবং কোনো মেসেজ বক্স দেখাবে না।
- /n : DllRegisterServer কল করবে না। এই অপশন /i-এর সাথে ব্যবহার করতে হবে।
- /i :cmdline : DllInstall কল করবে একটি অপশনাল [cmdline] পাস করে। /u-এর সাথে ব্যবহার করলে dll আনইনস্টল করবে।
- dllname: রেজিস্টার হবে এমন dll ফাইলের নাম স্পেসিফাই করে।
- /n – DllRegisterServer বা DllUnregisterServer কল করবে না; এই অপশন /i-এর সাথে ব্যবহার করতে হবে।
উদাহরণস্বরূপ, shm.dll ফাইলটি ম্যানুয়ালি রেজিস্টার এবং আনরেজিস্টার করতে CMD-এ নিচের কাজগুলো করতে পারি:

- regsvr32 shm.dll ফাইল রেজিস্টার করার জন্য।
- regsvr32 /u shm.dll ফাইল আনইনস্টল করার জন্য।
Regsvr32.exe এরর মেসেজ
নিচে RegSvr32 এরর মেসেজ এবং সম্ভাব্য কারণগুলোর তালিকা দেওয়া হলো:
- The command-flag “”%1″” is not valid. Please review the command usage and try again.
- This command is only valid if a Microsoft Visual Studio OLE Custom Control project is opened.
- To register a module, you must provide a binary name.
- The command OleInitialize failed to run. Your computer might be low on memory. Close any open programs and then try again.
- The module “”%1″” failed to load.\n\n Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.\n\n%2.
- The module “”%1″” was loaded but the entry-point %2 was not found.\n\nMake sure that “”%1″” is a valid DLL or OCX file and then try again.
- The module “”%1″” was loaded but the call to %2 failed with error code %3.\n\nFor more information about this problem, search online using the error code as a search term.
- The module “”%1″” may not compatible with the version of Windows that you’re running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
উইন্ডোজ ৬৪-বিট ভার্সনে Regsv32.exe-এর দুটি ভার্সন পাবেন: ৬৪-বিট ভার্সনটি %systemroot%\System32\regsvr32.exe-এ এবং ৩২-বিট ভার্সনটি %systemroot%\SysWoW64\regsvr32.exe-এ অবস্থিত বলে KB249873 ব্যাখ্যা করে।