Sign in to follow this  
Followers 0
ReaImDown

regwrite inquery

14 posts in this topic

#1 ·  Posted (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 by ReaImDown

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

A) I've wondered this too... I usually just add it to the startmenu but it's no official..

:P 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 :blink:...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 by ReaImDown

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

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 :P...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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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\Uninstall

hmmm, 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? :P

Edited by ReaImDown

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

hmmm, 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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

thats 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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
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
Sign in to follow this  
Followers 0