Sign in to follow this  
Followers 0
oren

problem with regwrite

11 posts in this topic

ConsoleWrite(RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ProcessSwi", "REG_SZ", @scriptdir & "\ProcessSwi.exe"))

ConsoleWrite(@error)

I do this and I get 0 0 in console

There is no 0 as error code

Any idea?

Thank you

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What does this give?:

ConsoleWrite(RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ProcessSwi", "REG_SZ", @scriptdir & "\ProcessSwi.exe") & @crlf & @error)
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

HO...

yes sorry the @error was 0 because the consolewrite was good

Anyway I get 1 as @error

Share this post


Link to post
Share on other sites

HO...

yes sorry the @error was 0 because the consolewrite was good

Correct

Anyway I get 1 as @error

So what do you think this could be?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Correct

So what do you think this could be?

Well I dont really know.. I tired compiling the code and running the program as administrator still didnt work

Maybe the AV program

Anyone?

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

I've tried..

#requireAdmin
_Singleton("SWIsetup",0)

MsgBox(1,1,RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "ProcessSwi", "REG_SZ", @scriptdir & "\ProcessSwi.exe") & @crlf & @error)

I get in the massagebox

1

0

But still I dont find the registry in regedit in this location

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

I did a search and I find it in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

What is it?

Edited by oren

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I did a search and I find it in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

What is it?

You compiled the script or run it with x86 version and running it in a x64 systems/OS? Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You compiled the script or run it with x86 version and running it in a x64 systems/OS?

yes so it will run on x86 system... not only on 64bit

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

yes so it will run on x86 system... not only on 64bit

understand but that means it runs on your x64 OS in a x86 mode and that mode is using the special Wow6432Node reg hive.

Just research this via Google and you will find enough explanations about it.

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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