Jump to content

Recommended Posts

Posted

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

  • Developers
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

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.
  :)

Posted

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?

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
  • Developers
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

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.
  :)

Posted

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

  • Developers
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

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.
  :)

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
  • Recently Browsing   0 members

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