Jump to content

problem with regwrite


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...