Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Bundling other files with autoit EXE

$
0
0
[ autoit ]         
#Requireadmin RunWait("autologon.exe -accepteula") $IsAutoLogonEnabled = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon") If $IsAutoLogonEnabled = 1 Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "StartMenuLogoff", "REG_DWORD", 1) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoLogoff", "REG_DWORD", 1) MsgBox(0, "Info", "Logoff Disabled") EndIf If $IsAutoLogonEnabled = 0 Then RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "StartMenuLogoff", "REG_DWORD", 0) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoLogoff", "REG_DWORD", 0) MsgBox(0, "Info", "LogOff Button Enabled") EndIf

We use sysinterals Autologin to configure...  well autologin....  :)

I would like to bundle that EXE with my autoit script.  How would I do that?  Normally I use Winrar and create a sfx.  Is this what autit3wrapper is for?

This simple scrtipt will disable a users ability to logoff if autologon is enabled.

Now,

I know I could simple rewrite the script and do all of this without using sysinternals, but I am trying to see if the concept will work

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>