Jump to content

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":

#RequireAdmin

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.

Link to comment
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

Link to comment
Share on other sites

  • Moderators

Islmike,

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! ;)

M23

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 spoiler to see my UDFs:

Spoiler

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

 

Link to comment
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.

islmike

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...