tuffgong Posted July 25, 2013 Posted July 25, 2013 Good Morning, I am new at this (only the second one I have done) but I have read everything I can find and I am still stuck. My inexperience is probably most of it, but I also believe this particular piece of software is not very well made. I am packaging a patch that registers/unregisters DLL's. It brings up 4-5 of the same, 1-button windows. Here is what the AutoIT Window Info says about it: Window Tab Title: RegSvr32 Class: #32770 Control Tab Class: Button Instance: 1 ClassnameNN: Button1 ID: <Blank> Here is what I have tried: WinWaitActive ("RegSvr32", "DllUnregisterServer in") Send ("{ENTER}") and WinWaitActive ("[TITLE:RegSvr32; CLASS:32770; INSTANCE:1]","") Send ("{ENTER}") Both just hang at (I believe) the first appearance of this Window. As I said, I think this software is poorly made and the developer has admitted that it is not designed to be packaged and pushed but we have over 150 people who need this and I have been asked to do it. When installing manually, nothing advances this window except <ENTER> or click the "OK" button. Could my problem have to do with the fact that these windows appear identical? My next attempt would be using the ControlClick command. I have looked it up in the Help file but I am not sure how it should look. Like this(?): ControlClick ("RegSvr32", "DllUnregisterServer in", controlID [, button [, clicks [, x [, y]]]] ) Is my controlID #32770 (with the # or without?) or is it Button or Button1? And, can I just close parenthesis after controlID and leave the optional stuff out. There is a special place in Paradise for those that help the newbies! Thanks in advance, guys.
Moderators JLogan3o13 Posted July 25, 2013 Moderators Posted July 25, 2013 Hi, tuffgong, welcome to the forum. What is the patch/application you're installing? Does it support silen installation? If so, you may be able to save yourself some headache. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
tuffgong Posted July 25, 2013 Author Posted July 25, 2013 (edited) Unfortunately, no. As I said, I believe this is poorly made software and the developer has admitted that a silent, remote installation was never really considered during development. Thanks for the welcome and the response! The patch is for a fringe piece of financial software that breaks every time it gets a certain WIndows update. Somehow(?) we seem to be unable to keep this MS Update out of our environment. Edited July 25, 2013 by tuffgong
Developers Jos Posted July 25, 2013 Developers Posted July 25, 2013 Can't you use the command regsvr32.exe for registering dll's? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Solution antmar904 Posted July 25, 2013 Solution Posted July 25, 2013 i personally use regsvr32.exe as Jos suggested. regsvr32.exe /s c:windowssomedll.dll just open up a command prompt and type: regsvr32.exe /? for help
tuffgong Posted July 25, 2013 Author Posted July 25, 2013 Ha! Guys, good call. I think this was a case of me not being able to see the forest because there are too many trees in the way! I was focused on automating their utility instead of asking what their utility was trying to accomplish. I appreciate the fresh perspective. Now I just have to figure out what DLL's their "Utility" is registering or unregistering and I am in business. Thanks again!
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