ReaImDown Posted December 30, 2007 Share Posted December 30, 2007 (edited) A ) where would I have to write to install a program properly, so it could be viewed in Add/Remove programs? B ) also, how would I go about writing to registry...programs such as avast antivirus and such does not allow programs to write to certain parts of the registry, such as "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" Thank you in advance... Randy S. Edited December 30, 2007 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Achilles Posted December 30, 2007 Share Posted December 30, 2007 (edited) A) I've wondered this too... I usually just add it to the startmenu but it's no official.. I haven't heard of programs blocking AutoIt from writing to the Registry so you could just use RegWrite()Edit: B ) (with no space is a smiley apparently...) Edited December 30, 2007 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
ReaImDown Posted December 30, 2007 Author Share Posted December 30, 2007 (edited) A) I've wondered this too... I usually just add it to the startmenu but it's no official.. I haven't heard of programs blocking AutoIt from writing to the Registry so you could just use RegWrite()Edit: B ) (with no space is a smiley apparently...)my moms antivirus...I forget what it is, I believe its AntiVire or something, but, it wouldnt allow my program to write to the registry...thus my only alternative, would be to have my program view all of the current programs running, and if it has the name Virus in it, stop it then write to registry...but I believe thats against some sort of legal crap ...but yet...so do-able ~~~Edit~~~an acquaintance I have on my msn (this was months ago, I forget who it was) but, he had a similar problem when the program tried to run @ start-up... so I am not 100% sure its the antivirus, but, rather a different form of protection...but yes, still a problem. Edited December 30, 2007 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Achilles Posted December 30, 2007 Share Posted December 30, 2007 my moms antivirus...I forget what it is, I believe its AntiVire or something, but, it wouldnt allow my program to write to the registry...thus my only alternative, would be to have my program view all of the current programs running, and if it has the name Virus in it, stop it then write to registry...but I believe thats against some sort of legal crap ...but yet...so do-able I doubt it would be against legal stuff... The AntiVire (or whatever) is just trying to protect your computer, you have every right (I think) to rewrite information in the registry... My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Pioneer5250 Posted December 30, 2007 Share Posted December 30, 2007 Take a look at this, you will need to create your own unique CLSID for the keyname. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Link to comment Share on other sites More sharing options...
ReaImDown Posted December 30, 2007 Author Share Posted December 30, 2007 (edited) Take a look at this,you will need to create your own unique CLSID for the keyname.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstallhmmm, let me bring it up in the regedit, time 2 go looking thx, and this is so it shows up in add/remove programs?~~~~Edit~~~~what type of information would be required to be written? Edited December 30, 2007 by ReaImDown [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Pioneer5250 Posted December 30, 2007 Share Posted December 30, 2007 if you have a look at some of the other keys you will see options like: DisplayName: Name of app UninstallString: Path to uninstall program eg: C:\Program Files\MyApp\Uninstall.exe Link to comment Share on other sites More sharing options...
ReaImDown Posted December 31, 2007 Author Share Posted December 31, 2007 if you have a look at some of the other keys you will see options like:DisplayName: Name of appUninstallString: Path to uninstall program eg: C:\Program Files\MyApp\Uninstall.exehmmm, again, if I cant write to the registry, I shouldnt be able to write to there...anyone have a way around that? (aside from ending the antivirus task? [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
GEOSoft Posted December 31, 2007 Share Posted December 31, 2007 Inno Setup George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
ReaImDown Posted December 31, 2007 Author Share Posted December 31, 2007 Inno Setupthats an installer, I am interested in having the program itself, via GUI, or other means, apply changes to the registry. [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
GEOSoft Posted December 31, 2007 Share Posted December 31, 2007 thats an installer, I am interested in having the program itself, via GUI, or other means, apply changes to the registry.Whether or not you can do that depends on whether or not you (or the user) have write privledges for the registry. If you can write it with RegWrite then all should be well. $rKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyApp" RegWrite($rKey, "DisplayName", "REG_SZ", "Myapp.exe ver: 1.0.0.0") RegWrite($rKey, "DisplayIcon", "REG_SZ", @ProgramFilesDir & "Myapp.exe") RegWrite($rKey, "Publisher", "REG_SZ", "Me") RegWrite($rKey, "UninstallString", "REG_SZ", @ProgramFilesDir & "\Myapp.exe /u") George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
ReaImDown Posted December 31, 2007 Author Share Posted December 31, 2007 Whether or not you can do that depends on whether or not you (or the user) have write privledges for the registry. If you can write it with RegWrite then all should be well. $rKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyApp" RegWrite($rKey, "DisplayName", "REG_SZ", "Myapp.exe ver: 1.0.0.0") RegWrite($rKey, "DisplayIcon", "REG_SZ", @ProgramFilesDir & "Myapp.exe") RegWrite($rKey, "Publisher", "REG_SZ", "Me") RegWrite($rKey, "UninstallString", "REG_SZ", @ProgramFilesDir & "\Myapp.exe /u") my mom's the only user on the computer, she's admin, anyone else run into this? anywhere? it stops writing to "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\run [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] Link to comment Share on other sites More sharing options...
Richard Robertson Posted December 31, 2007 Share Posted December 31, 2007 That key has nothing to do with installation info. Just write to the uninstall key and if it works then it works. If it doesn't then how in the world do you install anything? Link to comment Share on other sites More sharing options...
ReaImDown Posted December 31, 2007 Author Share Posted December 31, 2007 That key has nothing to do with installation info. Just write to the uninstall key and if it works then it works. If it doesn't then how in the world do you install anything?it works, just need 2 reset the computer, thank you [u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u] 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