Regedit trouble with Windows 7 !?!

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Regedit trouble with Windows 7 !?!

Post by koleviko » Mon Feb 01, 2010 5:43 pm

Macro function " RegistryWriteKey " not work in Windows7 !!!
How do I add a key, the hell???

:( :?: :(

Code: Select all


Let>RP_ADMIN=1 
RegistryWriteKey>HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,Timer,c:/ProgramFiles
[/quote]

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 01, 2010 6:19 pm

the hell!! ?? Ohhhh.

RP_ADMIN only affects Run Program which you're not doing.

HKEY_LOCAL_MACHINE requires Admin rights so you'll need to run your Macro/Macro Scheduler/Exe as Admin.

Also, if you're on 64 bit Windows, see:
http://www.mjtnet.com/forum/viewtopic.p ... t=registry

V12 will have an option to make the native reg functions write to the 64 bit hive.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Post by koleviko » Mon Feb 01, 2010 7:09 pm

HKEY_LOCAL_MACHINE requires Admin rights so you'll need to run your Macro/Macro Scheduler/Exe as Admin.


///////////////////////////////////////////

This is not a good solution :cry: !!!
Make a program that must run on XP and Windows 7_x86.
The program will write additional switches in motion and the proposal does not suits me.
Is there no other way???

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Feb 02, 2010 9:28 am

> This is not a good solution <

Then please complain to Microsoft who designed Windows Vista/7 that way. We can't change the way Windows works. HKLM has always required Admin privs. In XP users are Admin by default. In Vista/7 users run with lower pivs by default and have to provide their consent for things that require Admin privs.

If you don't like this please go and complain elsewhere and take your "the hell" comments with you.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Post by koleviko » Tue Feb 02, 2010 3:06 pm

O.K. I just asked!
I understand that there is no other way.
I will revise my program.

Thanks for clarification! :wink:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts