Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

Autoit Ile Katilimsiz Konusunda..


otvertka
 Share

Recommended Posts

Arkadaslar katilimsiz program yapmak istiyorum..forumda cok ornek ve anlatim var inanin hepsini inceledim ama genede isin icinden cikamadim ve bu konuyu acma geregi duydum..yardimci olursaniz sevinirim..

 

sorum:

 

1- parametesi olan bir exe dosyasini autoit ile katilimsiz yapiyorum ama ben bu exe icindeki (tolbar gibi gereksizlerin kurulmasini istemiyorum) gereksizleri nasil cikaricam?

 

2-32 ve 64 bit birlestirip sisteme gore kurulmasini saglamak icin izlenecek yol nasil olmali?

 

3-parametresi olmayan exe dosyasini repackager ile msi ye ceviyorum ama ondada boyut artiyor cunki ekran gorunutusunu alirken bir cok sey ekliyor projeye bunlari  bunlari ayiklarken nelere dikkat etmek gerek(silerken )

 

tesekkur ederim..tek basima cikamadim isin icinden en azinda 1 numarali soruma cevap verirseniz cok sevinirim..

Link to comment
Share on other sites

1- En güzeli toolbarsız olanı bulmak.

2- Sistemin kaç bit olduğunu kontrol ettirmeli ve if döngüsü ile ona göre kurulum yapmasını sağlamalısın.

3- parametresi olmayan dosyanın parametresini bulmak için Universal Silent Switch Finder kullan

Link to comment
Share on other sites

Tamam sagolasin cevap icin radyofon..ama iste bazi exe ler icinde bi suru gereksizle geliyor yada bazi ayarlari degisitiriyor felan..msi ye cevireyim diyorum o da exe nin  boyutunu buyutuyor..advanced installer ile yapiyorum..simdilik denemelere devam ediyorum bakalim..insallah burda yol gosterende olacaktir.

 

formda cok ornek calisma var inceliyorum simdilik..herkese tesekkurler..

 

exe to msi icin en iyi program hangisidir? hangisini tavsiye edersiniz?

Link to comment
Share on other sites

evet o konuda haklisin hatta su an onun yazdigi kodlarla bir katilimsiz yaptim ama burdada pencere saklama olayi cikti..programi katilimsiz parameteyle kuruluyor ama serial icin cagirdigimda  yapilan islemlerin hepsi gozukuyor..kodlar burda..bunlari nasil gizlerim acaba?

 

#Region
#AutoIt3Wrapper_Icon=Library\Simge.ico
#AutoIt3Wrapper_Outfile=CrosswordForge.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_UseUpx=Y
#AutoIt3Wrapper_Res_Description=Katılımsız Crossword Forge
#AutoIt3Wrapper_Res_Fileversion=5.6.1
#AutoIt3Wrapper_Res_LegalCopyright=© 201o BlueLife
#AutoIt3Wrapper_Res_Language=1055
#AutoIt3Wrapper_Res_Field=Crossword Forge Version|5.6.1
#AutoIt3Wrapper_Res_Field=CompanyName|Bluelife
#AutoIt3Wrapper_Res_Field=Dosya Adı|CrosswordForge.exe
#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%
#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%
#EndRegion
 
#include <Library\BlueLife.au3> ;Benim hazırladığım kütüphane
 
; Kur dosyamızı sessiz kurmak için gerekli parametremizi bir değişkene atıryoruz.
Global $Parametrem = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"
 
;Lisans bilgileri doğru olmalıdır. Yanlış olursa kurulum kısa bir süre takılır...
Global $UserName = "xxxxxx" ;Lisans bilgilerini düzeltin
Global $Register_Code = "xxxxxx" ;Lisans bilgilerini düzeltin
 
; Temp klasöründe olmayan bir dosya ismi belirliyoruz.
Global $Setup_File = _TempFile()
 
; Dosyalarımızı autoit içine alarak belirlediğimiz isimde Temp klasörüne çıkartıyoruz.
FileInstall("Library\CrosswordForge.exe", $Setup_File)
 
;Programı belirlediğimiz parametre ile kuruyoruz.
RunWait($Setup_File & " " & $Parametrem)
 
;Şimdi kurulan YourUninstalleri lisanlamak için açalım
Global $ProgramPID = Run(@ProgramFilesDir & "\Crossword Forge\Crossword Forge.exe","",@SW_HIDE) ;Çalıştırdığımız programın pidini bir değişkene atayalım.
If $ProgramPID <> 0 Then ;Programımız çalışmışsa
For $I = 1 To 10
If WinExists("[CLASS:RBWindow]") Then ;Kayıt pencersi varsa
WinMove("[CLASS:RBWindow]","",@DesktopHeight,10)
WinSetTrans("Unlock Crossword Forge","",5)
BlockInput(1) ;Fare ve klevyeyi kitleyelim
ControlCommand("[CLASS:RBWindow]", "Unlock...", "Button2", "Check") ;Kayıt penceresini açıyoruz
BlockInput(0) ;Fare ve klevyenin kilitini kaldıralım
WinWait("Unlock Crossword Forge", "",5) ;Kayıt penceresinin görünmesini 15 saniye bekleyelim.
 
If WinExists("Unlock Crossword Forge") Then ;Kayıt penceresi göründüyse
BlockInput(1) ;Fare ve klevyeyi kitleyelim
ControlSetText("Unlock Crossword Forge", "", "RICHEDIT50W1", $UserName) ;Register bilgilerini giriyoruz
ControlSetText("Unlock Crossword Forge", "", "RICHEDIT50W2", $Register_Code) ;Register bilgilerini giriyoruz
ControlCommand("Unlock Crossword Forge", "", "Button1", "Check") ;Onaylıyoruz.
BlockInput(0) ;Fare ve klevyenin kilitini kaldıralım
WinWait("Crossword Forge", "",5) ;Onay penceresini 5 saniye bekleylim
If WinExists("[CLASS:TMessageForm]") Then ;Onay penceresi göründüyse
ControlCommand("Crossword Forge", "", "Button1", "Check") ;Onaylayıp programı kapatıyoruz
EndIf
ExitLoop
EndIf
ElseIf WinExists("[CLASS:RBWindow]") Then ;Kayıt penceresi gelmediyse
ExitLoop
EndIf
Sleep(500)
Next
ProcessClose($ProgramPID) ;Çalıştırdığımız programı kapatalım.
EndIf
 
FileDelete($Setup_File) ;Şimdi dosyamızı silelim.
Exit ; Çıkış

 

winsettrans ve winmove ekledim ama olmadi gene gorunuyor bir yerde hata var..:

Link to comment
Share on other sites

  • 2 hafta sonra ...
  • 5 hafta sonra ...

[codeh]oTrayIcon
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=Icon_1.ico
#AutoIt3Wrapper_Res_Description=Silent_IDM
#AutoIt3Wrapper_Res_Field=IDM Version|6.21
#AutoIt3Wrapper_Res_Field=CompanyName|Aliska
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Opt("WinWaitDelay",1)
ToolTip("Program Kuruluyor..Lutfen Bekleyiniz!!", @DesktopWidth - 328, @DesktopHeight - 76, "::InternetDownload Manager:: v6.21", 4)
Sleep(3000)
FileInstall("C:\Users\Alisa\Desktop\IDM Proje\full_IDM.exe",@TempDir&"\full_IDM.exe")
FileInstall("C:\Users\Alisa\Desktop\IDM Proje\idmsetup.exe", @TempDir & "\$.$")
FileSetAttrib(@TempDir & "\$.$", "+H+S")

Opt("TrayMenuMode", "4")

ProcessClose("IDMan.exe")
ProcessClose("iexplore.exe")
ProcessClose("chrome.exe")
If FileExists(@ProgramFilesDir & "\Internet Download Manager\IDMan.exe") Then
Run(@ProgramFilesDir & "\Internet Download Manager\Uninstall.exe")
WinWait("Kaldırma Yöntemini Seçin")
WinSetState("Kaldırma Yöntemini Seçin","",@SW_HIDE)
BlockInput(1)
WinActivate("Kaldırma Yöntemini Seçin")
WinSetState("Kaldırma Yöntemini Seçin","",@SW_HIDE)
ControlClick("Kaldırma Yöntemini Seçin", "", "Button6" )
ControlClick("Kaldırma Yöntemini Seçin", "", "Button2" )
BlockInput(0)
WinWait("Kaldırmayı Gerçekleştir")
WinSetState("Kaldırmayı Gerçekleştir","",@SW_HIDE)
BlockInput(1)
WinActivate("Kaldırmayı Gerçekleştir")
WinSetState("Kaldırmayı Gerçekleştir","",@SW_HIDE)
ControlClick("Kaldırmayı Gerçekleştir", "", "Button3" )
BlockInput(0)
WinWait("IDM'yi Kaldır")
WinSetState("IDM'yi Kaldır","",@SW_HIDE)
BlockInput(1)
ControlClick("IDM'yi Kaldır", "", "Button2" )
BlockInput(0)
DirRemove(@ProgramFilesDir & "\Internet Download Manager\*.")
RegDelete("HKEY_CURRENT_USER\Software\DownloadManager")
kur()
Else
kur()
EndIf

Func kur()
Run(@TempDir & "\$.$ -tr")

WinWait("IDM Setup","",0)
WinSetTrans("IDM Setup","",@SW_HIDE)
BlockInput(1)
WinActivate("IDM Setup")
WinSetTrans("IDM Setup","",@SW_HIDE)
ControlClick("IDM Setup", "", "Button1" )
BlockInput(0)
WinWait("Internet Download Manager Kurulum Sihirbazı")
WinSetTrans("Internet Download Manager Kurulum Sihirbazı","",@SW_HIDE)
BlockInput(1)
WinActivate("Internet Download Manager Kurulum Sihirbazı")
WinSetTrans("Internet Download Manager Kurulum Sihirbazı","",@SW_HIDE)
ControlClick("Internet Download Manager Kurulum Sihirbazı", "", "Button2" )
BlockInput(0)

WinWait("Lütfen IDM Lisansını Okuyun")
WinSetTrans("Lütfen IDM Lisansını Okuyun","",@SW_HIDE)
BlockInput(1)
WinActivate("Lütfen IDM Lisansını Okuyun")
WinSetTrans("Lütfen IDM Lisansını Okuyun","",@SW_HIDE)
WinSetTrans("[active]", "","1")
ControlClick("Lütfen IDM Lisansını Okuyun", "", "Button2" )
BlockInput(0)

WinWait("Hedef Konumu Seçin")
WinSetTrans("Hedef Konumu Seçin","",@SW_HIDE)
BlockInput(1)
WinActivate("Hedef Konumu Seçin")
WinSetTrans("Hedef Konumu Seçin","",@SW_HIDE)
ControlClick("Hedef Konumu Seçin", "", "Button2" )
BlockInput(0)

WinWait("Internet Download Manager Kurulumunu Başlat")
WinSetTrans("Internet Download Manager Kurulumunu Başlat","",@SW_HIDE)
BlockInput(1)
WinActivate("Internet Download Manager Kurulumunu Başlat")
WinSetTrans("Internet Download Manager Kurulumunu Başlat","",@SW_HIDE)
ControlClick("Internet Download Manager Kurulumunu Başlat", "", "Button2" )
BlockInput(0)

WinWait("Kurulum Tamamlandı")
WinSetTrans("Kurulum Tamamlandı","",@SW_HIDE)
BlockInput(1)
WinActivate("Kurulum Tamamlandı")
WinSetTrans("Kurulum Tamamlandı","",@SW_HIDE)
ControlClick("Kurulum Tamamlandı", "", "Button3" )
BlockInput(0)

WinWait("IDM tarayıcı ilişkilendirmesi")
WinSetTrans("IDM tarayıcı ilişkilendirmesi","",@SW_HIDE)
BlockInput(1)
WinActivate("IDM tarayıcı ilişkilendirmesi")
WinSetTrans("IDM tarayıcı ilişkilendirmesi","",@SW_HIDE)
ControlClick("IDM tarayıcı ilişkilendirmesi", "", "Button1" )
BlockInput(0)
ProcessClose("IDMan.exe")
Run(@TempDir&"\full_IDM.exe")
FileDelete(@TempDir & "\$.$")
FileDelete(@TempDir & "\full_IDM.exe")
FileDelete(@TempDir & "\Activate.reg")
FileDelete(@TempDir & "\IDMan.exe")
ToolTip("::IDM 6.21::", @DesktopWidth - 328, @DesktopHeight - 76, "::Kurulum Tamamlandi.|| By Alis.", 4)
Sleep(3000)
EndFunc

[/codeh]Arkadaslar abiler..ben internet download manageri katilimsiz yaptim kodlar asagida..sorunsuz kuruluyor eskisini kaldirip yensini kuruyor ve key ile lisasliyor burda sorun yok ama bu islemleri yaparken pencereler gorunuyor..2. setup iconu win7 gorev cubugunda gorunuyor..forundaki konulara baktim ama bir turlu cevap bulamadim. bunlari nasil gizlerim? lutfen yardim ediniz bayagidir ugrasiyorum..ama olmuyor..yapilan katilimsizlarda boyle olmuyor bende bir hata veya eksik bir sey var ama ne? 
winmove,winsettrans,winsetstate hepsini denedim olmadi..

Link to comment
Share on other sites

hocam o degil bende ekli #notrayicon bu sadece scriptin icocnunu gizliyor benim dedigim kurulum yaparken setup dosyasinin iconu gorev cubugunda cikiyor birde pencereleri gizleyemiyorum..ne yaptiysam olmadi bir yerde hata var ama bulamadim..kurulumda sorun yok..

Link to comment
Share on other sites

  • 2 ay sonra...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...