Paradox Posted September 26, 2005 Posted September 26, 2005 Hey all, I'm coming down to a wraps on my project... (about damn time).. Here's one of the last things that I can't figure out...In my script, I'm editing the registry to reflect some post-installation changes. However, when I run it through the script, the main application kinda takes a crap... if I do the same thing manuall, it works fine. I've narrowed the crapping-out to the registry modifications, and am wondering if my syntax is correct. It is as follows:RegWrite("HKLM\SOFTWARE\DOCUBASE\DbServNT\DEMO", "DefPath", "REG_SZ", $dbpath & "\DbBases") regwrite("HKLM\SOFTWARE\DOCUBASE\DbServNT", "AdminLevel", "REG_DWORD", "00000001") regwrite("HKLM\SOFTWARE\DOCUBASE\DbServNT", "AdminLog", "REG_DWORD", "00000001") regwrite("HKLM\SOFTWARE\DOCUBASE\DbServNT", "AdminUsrPath", "REG_SZ", $dbpath & "\DbBases") regwrite("HKLM\SOFTWARE\DOCUBASE\DbServNT", "IndexLevel", "REG_DWORD", "00000001") regwrite("HKLM\SOFTWARE\DOCUBASE\DbServNT", "StoreLevel", "REG_DWORD", "00000001") regwrite("HKLM\SOFTWARE\DOCUBASE\DBServNT\INSURANC", "BaseRun", "REG_DWORD", "00000001") regwrite("HKLM\SOFTWARE\DOCUBASE\DBServNT\INSURANC", "DefPath", "REG_SZ", $dbpath & "\DbBases") regwrite("HKLM\SOFTWARE\DOCUBASE\DBServNT\INSURANC", "StoreOdc", "REG_DWORD", "00000000")I originally had just "1" instead of the "00000001" for the values that are getting written, but either way I get the same bad results. So now I'm wondering if my syntax is correct. The variable $dbpath just points to the installed application directory. Yes, it is correct... (ie. no spaces or minor screw ups in the variable value).Anyone have an idea??-Jason
eJan Posted September 26, 2005 Posted September 26, 2005 Make sure that You have set [optional]Type of key to write: "REG_SZ", "REG_MULTI_SZ", "REG_EXPAND_SZ", "REG_DWORD", or "REG_BINARY".
Paradox Posted September 27, 2005 Author Posted September 27, 2005 Make sure that You have setUm... If you look up at my original post, you'll see that it IS set.
Danny35d Posted September 27, 2005 Posted September 27, 2005 (edited) Paradox I ran your script the only thing I added was $dbpath = "C:\Program Files" it run without any errors or problems. I run regedit and the register key were created. The only two thing that come to my mind is 1) Admin rights 2) $dbpath has a "\" at the end. Good luck....Edit: I use AutoIt 3.1.1 on Windows Xp professional Sp2 Edited September 27, 2005 by Danny35d AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Paradox Posted September 29, 2005 Author Posted September 29, 2005 Paradox I ran your script the only thing I added was $dbpath = "C:\Program Files" it run without any errors or problems. I run regedit and the register key were created. The only two thing that come to my mind is 1) Admin rights 2) $dbpath has a "\" at the end. Good luck....Edit: I use AutoIt 3.1.1 on Windows Xp professional Sp2I got it figured out... Don't know how to explain the answer though... It wasn't anything in my script, I think more of the order in which the operations I was performing were done.Everythings cool now!! Woo-hoo!!
ligenza Posted September 29, 2005 Posted September 29, 2005 I got it figured out... Don't know how to explain the answer though... It wasn't anything in my script, I think more of the order in which the operations I was performing were done.Everythings cool now!! Woo-hoo!! Mind posting the fixed code? I'm interested. Thanks.
Paradox Posted September 29, 2005 Author Posted September 29, 2005 Mind posting the fixed code? I'm interested. Thanks.Like I said, it wasn't in my code... just the order in which I was doing things... To make a long story short: I wound up manually installing my server and client software, doing all the updates manually, testing it's functionality along the way, documented everything that I did upon successful completion, and then went through my script line by line making sure that my script followed my documented manual install to-the-T, and as soon as I did that, worked like a charm... haven't had a problem with it since...And honestly, My script is somewhere in the vicinity of 350+ lines of code... It's been a project that I've been working on now for about a month... I don't think John would really like someone dumping that much code to a forum... If you personally would like to see it, just let me know some kind of contact info, and I'll email my source to you to look at...-Jason
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