Autoit Windows 10 başlangıçta programı silme?

Programlama dilleri konusunda bilgi paylaşım alanıdır.
Cevapla
anxious
Byte2
Byte2
Mesajlar: 98
Kayıt: 11 Mar 2015, 07:56

Autoit Windows 10 başlangıçta programı silme?

Mesaj gönderen anxious » 01 Mar 2019, 00:52

Windows 10 da windows başladıktan sonra programımı başlatamıyoum veya başlangıçtan silemiyorum.Defender güvenlik duvar ve uac kapattım ama nafile.
runprogram.exe

Kod: Tümünü seç

#RequireAdmin
#NoTrayIcon

If @OSArch = "x86" Then
	$hklm = "HKLM"
Else
	$hklm = "HKLM64"
EndIf

RegDelete($hklm & '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'Baslangiccalis')

FileDelete("D:\globdata.ini")
FileDelete("D:\install.res.1028.dll")
FileDelete("D:\install.res.1031.dll")
FileDelete("D:\install.exe")
FileDelete("D:\install.ini")
FileDelete("D:\install.res.1033.dll")
FileDelete("D:\install.res.1036.dll")
FileDelete("D:\install.res.1040.dll")
FileDelete("D:\install.res.1041.dll")
FileDelete("D:\install.res.1042.dll")
FileDelete("D:\install.res.2052.dll")
FileDelete("D:\install.res.3082.dll")
FileDelete("D:\msdia80.dll")
FileDelete("D:\VC_RED.cab")
FileDelete("D:\VC_RED.MSI")
FileDelete("D:\vcredist.bmp")
FileDelete("D:\eula.1028.txt")
FileDelete("D:\eula.1031.txt")
FileDelete("D:\eula.1033.txt")
FileDelete("D:\eula.1036.txt")
FileDelete("D:\eula.1040.txt")
FileDelete("D:\eula.1041.txt")
FileDelete("D:\eula.1042.txt")
FileDelete("D:\eula.2052.txt")
FileDelete("D:\eula.3082.txt")

FileDelete(@HomeDrive & "\globdata.ini")
FileDelete(@HomeDrive & "\install.res.1028.dll")
FileDelete(@HomeDrive & "\install.res.1031.dll")
FileDelete(@HomeDrive & "\install.exe")
FileDelete(@HomeDrive & "\install.ini")
FileDelete(@HomeDrive & "\install.res.1033.dll")
FileDelete(@HomeDrive & "\install.res.1036.dll")
FileDelete(@HomeDrive & "\install.res.1040.dll")
FileDelete(@HomeDrive & "\install.res.1041.dll")
FileDelete(@HomeDrive & "\install.res.1042.dll")
FileDelete(@HomeDrive & "\install.res.2052.dll")
FileDelete(@HomeDrive & "\install.res.3082.dll")
FileDelete(@HomeDrive & "\msdia80.dll")
FileDelete(@HomeDrive & "\VC_RED.cab")
FileDelete(@HomeDrive & "\VC_RED.MSI")
FileDelete(@HomeDrive & "\vcredist.bmp")
FileDelete(@HomeDrive & "\eula.1028.txt")
FileDelete(@HomeDrive & "\eula.1031.txt")
FileDelete(@HomeDrive & "\eula.1033.txt")
FileDelete(@HomeDrive & "\eula.1036.txt")
FileDelete(@HomeDrive & "\eula.1040.txt")
FileDelete(@HomeDrive & "\eula.1041.txt")
FileDelete(@HomeDrive & "\eula.1042.txt")
FileDelete(@HomeDrive & "\eula.2052.txt")
FileDelete(@HomeDrive & "\eula.3082.txt")

FileDelete("E:\globdata.ini")
FileDelete("E:\install.res.1028.dll")
FileDelete("E:\install.res.1031.dll")
FileDelete("E:\install.exe")
FileDelete("E:\install.ini")
FileDelete("E:\install.res.1033.dll")
FileDelete("E:\install.res.1036.dll")
FileDelete("E:\install.res.1040.dll")
FileDelete("E:\install.res.1041.dll")
FileDelete("E:\install.res.1042.dll")
FileDelete("E:\install.res.2052.dll")
FileDelete("E:\install.res.3082.dll")
FileDelete("E:\msdia80.dll")
FileDelete("E:\VC_RED.cab")
FileDelete("E:\VC_RED.MSI")
FileDelete("E:\vcredist.bmp")
FileDelete("E:\eula.1028.txt")
FileDelete("E:\eula.1031.txt")
FileDelete("E:\eula.1033.txt")
FileDelete("E:\eula.1036.txt")
FileDelete("E:\eula.1040.txt")
FileDelete("E:\eula.1041.txt")
FileDelete("E:\eula.1042.txt")
FileDelete("E:\eula.2052.txt")
FileDelete("E:\eula.3082.txt")

FileInstall ve DirCreate scriptim

Kod: Tümünü seç

#RequireAdmin
Global $FolderProgram = @DesktopDir & "\ProgramFolder"
If FileExists($FolderProgram) = 0 Then DirCreate($FolderProgram)

If @OSArch = "x86" Then
	$hklm = "HKLM"
Else
	$hklm = "HKLM64"
EndIf
FileInstall("runprogram.exe", $FolderProgram & "\runprogram.exe", 1)
RegWrite($hklm & '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'Baslangiccalis', 'REG_SZ', $FolderProgram & '\runprogram.exe')



Kullanıcı avatarı
BlueLife
Byte4
Byte4
Mesajlar: 188
Kayıt: 29 Ağu 2014, 20:42

Re: Autoit Windows 10 başlangıçta programı silme?

Mesaj gönderen BlueLife » 01 Mar 2019, 11:20

@anxious

@DesktopDir yerine farklı bir konumdan programı çalıştırabilirsin. Programı limitli kullanıcıda çalıştırınca, admin masaütündeki konum ayarlanıyordur. Lakin program orda olmayınca çalışmayacak!

Global $FolderProgram = StringLeft(@WindowsDir,2) & "\ProgramFolder"

Cevapla