Islmike Posted August 22, 2012 Share Posted August 22, 2012 Hi AllLet 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":#RequireAdminRun(@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 More sharing options...
Wilcop Posted August 22, 2012 Share Posted August 22, 2012 Hi IsImike Try it this way #RequireAdmin Run(@ComSpec & " /c C:\Windows\SyswWOW64\Regsvr32 C:\BIZPlanning\photos\csImageFile\csImageFile.dll", "", @SW_HIDE) #RequireAdmin ShellExecute(@ComSpec, "/c C:\Windows\SyswWOW64\Regsvr32 C:\BIZPlanning\photos\csImageFile\csImageFile.dll", "open", "", @SW_HIDE) Kind regards Wilcop Link to comment Share on other sites More sharing options...
stormbreaker Posted August 22, 2012 Share Posted August 22, 2012 (edited) That's damn easy: $mydll = 'C:BIZPlanningphotoscsImageFilecsImageFile.dll' ShellExecute('regsvr32.exe /s ' & $mydll) The regsvr32 has a silent switch... Edited August 22, 2012 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 More sharing options...
Moderators Melba23 Posted August 22, 2012 Moderators Share Posted August 22, 2012 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!". I will move this thread to the section that in fact is! M23 Islmike 1 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Islmike Posted August 24, 2012 Author Share Posted August 24, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now