Jump to content
Sign in to follow this  

DLL Registration script Windows 7.

Recommended Posts


Hi All

Let me first say I am a newbie, loving this AutoIT program and thank you all in advance for your assistance.

I am working on a new version of an application going from WinXP to Win7.

I have all the necessary pieces together and the app installs fine, however part of the process I need to register a dll. Here are the scripts I am using and the results respectively;

1st Script "DOES NOT WORK":


Run(@ComSpec & " /c " & "C:\Windows\SyswWOW64\Regsvr32 C:\BIZPlanning\photos\csImageFile\csImageFile.dll", @SW_HIDE)


2nd Scritp "Success BUT":

#include <Process.au3>

Local $rc = _RunDos("C:\Windows\SysWOW64\regsvr32 C:\BizPlanning\photos\csImageFile\csImageFile.dll")

Works but it puts a popup that requires the user to click ok. I would like to have possibly run silently.


Again thank you for any help provided.

Share this post

Link to post
Share on other sites

That's damn easy:

$mydll = 'C:BIZPlanningphotoscsImageFilecsImageFile.dll'
ShellExecute('regsvr32.exe /s ' & $mydll)

The regsvr32 has a silent switch... :tv_happy:

Edited by MKISH


:bye: Hey there, was I helpful?


My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post

Link to post
Share on other sites


Please take care in future to post in the correct section of the forum. This section is for useful example scripts and is not, as the banner at the top clearly states, "a general support forum!". :o

I will move this thread to the section that in fact is! ;)


  • Like 1

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites

Thanks to Wilcop and MKISH for responding so quickly.

The script below actually worked, all I needed to do is add the /s after the regsvr32 to make it silent.

#include <Process.au3>

Local $rc = _RunDos("C:\Windows\SysWOW64\regsvr32 /s C:\BizPlanning\photos\csImageFile\csImageFile.dll")

My apologies to Melba23 for posting in the wrong area.

Thank you all again for the help I really appreciate it.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this