Jump to content

Autoit V3 Ile Katılımsız Kurulum Örnekleri...


blue_life
 Share

Recommended Posts

hocam fazla bekletmeden cevap verdiğiniz için teşekkür edirim...

autoitle kurulum tamam ama görev yöneticisinde kurulduğu halde çalışıyor gözüküyor bir bakın yardımınızı bekliyorum

Please register to see this content.

kod şu

#Region

#AutoIt3Wrapper_Icon=Library\139.ICO

#AutoIt3Wrapper_Outfile=Snoop_install.exe

#AutoIt3Wrapper_Compression=4

#AutoIt3Wrapper_Res_Description=Snoop_install

#AutoIt3Wrapper_Res_Fileversion=1.0.0.0

#AutoIt3Wrapper_Res_LegalCopyright=© 2010 BlueLife

#AutoIt3Wrapper_Res_Language=1055

#AutoIt3Wrapper_Res_Field=CompanyName|BlueLife

#AutoIt3Wrapper_Res_Field=Dosya Adı|Snoop_install.exe

#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%

#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%

#EndRegion

#include <Library\BlueLife.au3>

Global $TEMP_FILE = _TempFile()

FileInstall("Library\Snoop_install.exe", $TEMP_FILE)

Run($TEMP_FILE)

_PENCEREYI_BEKLE("Setup - Snoopy", "Welcome to the Snoopy Setup Wizard",1,1)

BlockInput(1)

ControlCommand($PENCEREM,"", "TButton1", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Select Destination Directory",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "TButton2", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Select Start Menu Folder",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "TButton2", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Ready to Install",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "TButton2", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Completing the Snoopy Setup Wizard",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "TNewCheckListBox1", "UnCheck") ; Yahoo! Toolbar tıkını kaldır

ControlCommand($PENCEREM, "", "Button2", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("CCleaner v2.29 Kurulumu", "CCleaner v2.29 Kurulum sihirbazı tamamlanıyor.",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "Button4", "UnCheck")

ControlCommand($PENCEREM, "", "TButton2", "Check")

BlockInput(0)

_BEKLE($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

==============================

kuruluma başka metaryaller ekleyebilirsiniz demişiniz ve kod vermişiniz..

Global $TEMP_FILE = _TempFile() ; Temp klasöründe olmayan dosya ismi belirliyoruz..

FileInstall("Library\1.exe", $TEMP_FILE) ; Kur dosyamızı autoit içine alıyoruz

Run($TEMP_FILE) ;Temp klasörüne çıkartılan dosyayı çalıştırıyoruz.

_BEKLE($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

böyle yaptım olmadı

========================================

RunWait(@ScriptDir & "\1.exe")

_BEKLE($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

böyle yaptım olmadı

============================================

yani usteki program kurulduktan sonra bunlar devreye girecekti ama olmadı yardımcı olurmusun.

============================================

bu arada bu isa çok oluyor diyorsanız haberim olsun...

Edited by isaavcı
Link to comment
Share on other sites

  • Replies 160
  • Created
  • Last Reply

Top Posters In This Topic

@isaavcı

Kodların hatalı. Bir keren en son kodlarda CCleaner satırları var.

Programın takılma sebebi ise; en sonda tek buton olduğu halde TButton2 yazmandır.

Tavsiyem ilk önce ekranları gizlemeden deneyip, sonra ekranları gizlemen yönünde olacaktır.

Misal bence aşağıdakini bir dene!

#Region
#AutoIt3Wrapper_Icon=Library\139.ICO
#AutoIt3Wrapper_Outfile=Snoop_install.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Description=Snoop_install
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=© 2010 BlueLife
#AutoIt3Wrapper_Res_Language=1055
#AutoIt3Wrapper_Res_Field=CompanyName|BlueLife
#AutoIt3Wrapper_Res_Field=Dosya Adı|Snoop_install.exe
#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%
#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%
#EndRegion
#include &lt;Library\BlueLife.au3&gt;

Global $TEMP_FILE = _TempFile()
FileInstall("Library\Snoop_install.exe", $TEMP_FILE)
Run($TEMP_FILE)

_PENCEREYI_BEKLE("Setup - Snoopy", "Welcome to the Snoopy Setup Wizard")
BlockInput(1)
ControlCommand($PENCEREM,"", "TButton1", "Check")
BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Select Destination Directory")
BlockInput(1)
ControlCommand($PENCEREM, "", "TButton2", "Check")
BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Select Start Menu Folder")
BlockInput(1)
ControlCommand($PENCEREM, "", "TButton2", "Check")
BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Ready to Install")
BlockInput(1)
ControlCommand($PENCEREM, "", "TButton2", "Check")
BlockInput(0)

_PENCEREYI_BEKLE("Setup - Snoopy", "Completing the Snoopy Setup Wizard")
BlockInput(1)
ControlCommand($PENCEREM, "", "TNewCheckListBox1", "UnCheck") ; Yahoo! Toolbar tıkını kaldır
ControlCommand($PENCEREM, "", "Button1", "Check")
BlockInput(0)

_BEKLE($TEMP_FILE)
_TEMIZLE($TEMP_FILE)

Diğer soruna gelirsek;

1.exe yi library klasröne koy ve yukarıdaki komuların altına aşağıdaki satırları ekleyip dene.

$TEMP_FILE = _TempFile()
FileInstall("Library\1.exe", $TEMP_FILE)
RunWait($TEMP_FILE)
_TEMIZLE($TEMP_FILE)

Link to comment
Share on other sites

hocam sound forge 10 belgelerime gerekli dosyaları attırdım programfilese gerekli dosyaları attırdım reg kaydı gerçekleşti ve sonuda splash ekledim tek exe halinde de compile oldu teşekkür ederim.

================================================

3 tane exe şu şekilde tek exe haline getirip compile etti

#Region

#AutoIt3Wrapper_Icon=Library\SIMGE.ICO

#AutoIt3Wrapper_Outfile=CCleaner.exe

#AutoIt3Wrapper_Compression=4

#AutoIt3Wrapper_Res_Description=Katılımsız CCleaner

#AutoIt3Wrapper_Res_Fileversion=1.0.0.0

#AutoIt3Wrapper_Res_LegalCopyright=© 2010 BlueLife

#AutoIt3Wrapper_Res_Language=1055

#AutoIt3Wrapper_Res_Field=CompanyName|BlueLife

#AutoIt3Wrapper_Res_Field=Dosya Adı|CCleaner.exe

#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%

#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%

#EndRegion

#include <Library\BlueLife.au3>

$TEMP_FILE = _TempFile()

FileInstall("Library\1.exe", $TEMP_FILE)

RunWait($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

$TEMP_FILE = _TempFile()

FileInstall("Library\2.exe", $TEMP_FILE)

RunWait($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

$TEMP_FILE = _TempFile()

FileInstall("Library\3.exe", $TEMP_FILE)

RunWait($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

doğrumudur bilmem ama birbirlerini bekleyerek çalıştılar. Compile edincede tek exe oluşuyor harika.

===================================================

$parameter = ' /S /sp- /silent /norestart /VERYSILENT /s /quiet'

$search = FileFindFirstFile(@ScriptDir & "\1.exe")

$datei = FileFindNextFile($search)

FileClose($search)

ShellExecuteWait(@ScriptDir & "\" & $datei, $parameter)

forumda bunu bulmuştum parametreli kurulum, sizce parametreli kurulum bu örneğimizde nasıl olmalıdır

==============================================

adamın biri birine iyilik yapmış. adam demişki iyiliğine karşı allah razı olsun diyeceğim ama çok kaçar git ahırımda iki inek var seç beğen birini al demiş.

bende diyorumki size çok kaçmaz herşeyin en güzeli sizin olsun...

(Beni sevmeyen beni ben sevdim beni bende rahat ettir rabbim...)

Link to comment
Share on other sites

===================================================

$parameter = ' /S /sp- /silent /norestart /VERYSILENT /s /quiet'

$search = FileFindFirstFile(@ScriptDir & "\1.exe")

$datei = FileFindNextFile($search)

FileClose($search)

ShellExecuteWait(@ScriptDir & "\" & $datei, $parameter)

forumda bunu bulmuştum parametreli kurulum, sizce parametreli kurulum bu örneğimizde nasıl olmalıdır

==============================================

Burda gereksiz kodlar mevcut.

$parameter = ' /S /sp- /silent /norestart /VERYSILENT /s /quiet'
ShellExecuteWait(@ScriptDir &amp; "\1.exe", $parameter)

Tabi bu bir exe dosyası ise ShellExecute kullanma. Exe haricindeki kurlarda (misal *.msi) ShellExecute kullan.

Ben bunun ile ilgili örnek vermiştim galiba. Neyse basit olarak

#Region
#AutoIt3Wrapper_Icon=Library\SIMGE.ICO
#AutoIt3Wrapper_Outfile=CCleaner.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Description=Katılımsız CCleaner
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=© 2010 BlueLife
#AutoIt3Wrapper_Res_Language=1055
#AutoIt3Wrapper_Res_Field=CompanyName|BlueLife
#AutoIt3Wrapper_Res_Field=Dosya Adı|CCleaner.exe
#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%
#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%
#EndRegion
#include &lt;Library\BlueLife.au3&gt;

Global $TEMP_FILE = _TempFile() ; Temp klasöründe olmayan dosya ismi belirliyoruz..
Global $PARAMETREM = "Parametre buraya" ;Parametremizi giriyoruz
FileInstall("Library\Setup.exe", $TEMP_FILE) ; Kur dosyamızı autoit içine alıyoruz
RunWait($TEMP_FILE &amp; " " &amp; $PARAMETREM) ;Temp klasörüne çıkartılan dosyayı çalıştırıyoruz ve kurulumun bitmesini bekliyoruz.
_TEMIZLE($TEMP_FILE) ;Temp klasörüne çıkardığımız dosyamızı siliyoruz.

Link to comment
Share on other sites

hocam çok teşekkür ediyorum, butonu kullan deme emek vermek istiyorum

HOCAM BL_FIRecord TAM OLARAK BİZE NE FAYDASI OLUR

ŞU KODA BEN BİLGİSAYARI KAPAT YAZMIŞIM AMA DEĞİL

$handle = WinGetHandle("Untitled - Notepad", "")

WinClose($handle)

Link to comment
Share on other sites

@isaavcı

BL_FIRecord kısaca script dosyasının yanında bulunan bir klasör için fileinstall satırları oluşturur. Yani ilgili seçilen klasörün içindekiler ile beraber autoit içine almanı sağlıyor diyebilirim.

$handle = WinGetHandle("Untitled - Notepad", "")
WinClose($handle)

"Untitled - Notepad" ingizlice windowstaki notepad programının başlık bilgisidir. Yani notepad penceresi açıksa o pencereyi kapatmanı sağlar.

Link to comment
Share on other sites

hocam repackager ile katılımsız yaptım Vmware Thinapp enterprise 4.6.0-287958.exe ekle kaldırda iki tane gözüktü. Yamener bu bir msi derleme zaten msı dosyasnı tempe atıyor dedi ve doğru tempten aldım.msı ve şu kodu yazdım..

======================

#Region

#AutoIt3Wrapper_Icon=Library\2.ICO

#AutoIt3Wrapper_Outfile=vmware-thinapp-4.6.0-287958.msi

#AutoIt3Wrapper_Compression=4

#AutoIt3Wrapper_Res_Description=vmware-thinapp-4.6.0-287958

#AutoIt3Wrapper_Res_Fileversion=1.0.0.0

#AutoIt3Wrapper_Res_LegalCopyright=© 2010 BlueLife

#AutoIt3Wrapper_Res_Language=1055

#AutoIt3Wrapper_Res_Field=CompanyName|BlueLife

#AutoIt3Wrapper_Res_Field=Dosya Adı|vmware-thinapp-4.6.0-287958.msi

#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%

#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%

#EndRegion

#include <Library\BlueLife.au3>

Global $TEMP_FILE = _TempFile() ; Temp klasöründe olmayan dosya ismi belirliyoruz..

FileInstall("Library\vmware-thinapp-4.6.0-287958.msi", $TEMP_FILE) ; Kur dosyamızı autoit içine alıyoruz

Run($TEMP_FILE) ;Temp klasörüne çıkartılan dosyayı çalıştırıyoruz.

_PENCEREYI_BEKLE("VMware ThinApp ", "Enter license key",1,1)

BlockInput(1)

ControlSetText("VMware ThinApp", "VMware ThinApp", "RichEdit20W1","YG3H2-0UYEL-M7EMZ-ZWWNG-W3AUD")

ControlSetText("VMware ThinApp", "VMware ThinApp", "RichEdit20W2","xxxxxx")

ControlCommand($PENCEREM, "", "Button2", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("VMware ThinApp Setup ", "Completed the VMware ThinApp Setup Wizard",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "Button1", "Check")

BlockInput(0)

_BEKLE($TEMP_FILE)

_TEMIZLE($TEMP_FILE)

msi çağırmadı

bunu kullandım file instal yerine "ShellExecute" olmadı

yanı kura dahil etse serial tarafı tamamdır veya değildir diyecek burada kaldık yardımınızı rica ediyorum

Link to comment
Share on other sites

hocam şu şekilde msi'e çağrı yapıyor

ShellExecute('vmware-thinapp-4.6.0-287958.msi')

WinWait("VMware ThinApp Setup","&Next >")

========================

_PENCEREYI_BEKLE("VMware ThinApp (pencere başlığı) ", "Enter license key (text)",1,1);

BlockInput(1)

ControlSetText("VMware ThinApp", "Enter license key", "RichEdit20W1(input1)","YG3H2-0UYEL-M7EMZ-ZWWNG-W3AUD")

ControlSetText("VMware ThinApp", "Enter license key", "RichEdit20W2(input2)","xxxx")

ControlCommand($PENCEREM, "", "Button2", "Check")

BlockInput(0)

_PENCEREYI_BEKLE("VMware ThinApp Setup ", "Completed the VMware ThinApp Setup Wizard",1,1)

BlockInput(1)

ControlCommand($PENCEREM, "", "Button1", "Check")

BlockInput(0)

ama serial girmiyor hatam nedir acaba

Link to comment
Share on other sites

Başlık ve yazı bilgilerini yanlış giriyor olabilirsin. Peki compile ettiğin autoit exesi çalışıyor mu?

#Region
#AutoIt3Wrapper_Icon=Library\2.ICO
#AutoIt3Wrapper_Outfile=vmware-thinapp-4.6.0-287958.msi
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Description=vmware-thinapp-4.6.0-287958
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=© 2010 BlueLife
#AutoIt3Wrapper_Res_Language=1055
#AutoIt3Wrapper_Res_Field=CompanyName|BlueLife
#AutoIt3Wrapper_Res_Field=Dosya Adı|vmware-thinapp-4.6.0-287958.msi
#AutoIt3Wrapper_Res_Field=Hazırlama Tarihi|%date% %time%
#AutoIt3Wrapper_Res_Field=AutoIt Versiyonu|%AutoItVer%
#EndRegion
#include &lt;Library\BlueLife.au3&gt;

Global $TEMP_FILE = _TempFile() ; Temp klasöründe olmayan dosya ismi belirliyoruz..
FileInstall("Library\vmware-thinapp-4.6.0-287958.msi", $TEMP_FILE) ; Kur dosyamızı autoit içine alıyoruz
ShellExecute($TEMP_FILE) ;Temp klasörüne çıkartılan dosyayı çalıştırıyoruz.

_PENCEREYI_BEKLE("VMware ThinApp ", "Enter license key",1,1)
BlockInput(1)
ControlSetText($PENCEREM, "", "RichEdit20W1","YG3H2-0UYEL-M7EMZ-ZWWNG-W3AUD")
ControlSetText($PENCEREM, "", "RichEdit20W2","xxxxxx")
ControlCommand($PENCEREM, "", "Button2", "Check")
BlockInput(0)

_PENCEREYI_BEKLE("VMware ThinApp Setup ", "Completed the VMware ThinApp Setup Wizard",1,1)
BlockInput(1)
ControlCommand($PENCEREM, "", "Button1", "Check")
BlockInput(0)

_BEKLE($TEMP_FILE)
_TEMIZLE($TEMP_FILE)

Link to comment
Share on other sites

  • 3 ay sonra...
  • 1 ay sonra...

@MuzafferUmaykut

Hayır linkler çalışıyor ama 4shared dosya barındırma sitesi engelllendi!
Dns değişitirerek dosyalara ulaşabilirsiniz!

Ben genelde (çoğunlukla) opendns kullanıyorum. Tavsiye ederim...
Open=208.67.222.222,208.67.220.220

Dns değiştirmek hakkında bilginiz yoksa aşağıdaki programı kullanabilrisiniz!
[color="#0000FF"][u][b]http://www.softpedia.com/get/Internet/Other-Internet-Related/Dns-Jumper.shtml[/b][/u][/color]

Ikinci combodan Opendnsi seçip Apply Dns tuşuna basınız...

Link to comment
Share on other sites

  • 1 ay sonra...

[quote name='blue_life' date='07 March 2010 - 22:11 ' timestamp='1267992692' post='740461']Duruma göre anlatım ve örnekler devam edebilir...[/quote]
"Duruma göre" :rolleyes:

bende ufak bi paylasim yapayim, windows unuz C:\Windows a kurulu ise kullanin
dosyayi cikarip Notepad2 v4.1.24_Custom Install.cmd e cift tiklamak kafi, artik windows-notepad degil notepad2 aktif olacak. (koruma kaldirma vs gibi oyuncak yok, notepad2 yazarsi sayesinde gayet basit ve rahat bir islem)
http://www.mediafire.com/?qascu3jhfw433o8

Duruma göre BlueLife cok daha guzelini yapabilir :D

Link to comment
Share on other sites

Üstat katılımsız kurulum yapmam gereken 3 ile 4 adet program var fakat bu programların versiyonları windows xp, 7 ve 32 bit ile 64 bit olmasına göre değişiyor. AutoIT ile pc' nin yazılımlarını kontrol ettirerek istediğim yazılımların kurulumu sağlayabilir miyiz? Bir de bu yazılımlardan sonra internet explorer' da internet seçenekleri kısmında güvenilen siteler ve açılır pencere engelleyicilerde ayarlar yapmak gerekiyor. Yani buralara bazı site adreslerini yazmakla birlikte sertifikalarla ilgili birkaç tik punch2 larını yapmak gerekiyor. Bunları hepsini birden katılımsız yapmak mümkün mü? Teşekkürler!...

Link to comment
Share on other sites

@radyofon

Söylediklerini yapmak mümkün. Autoitte sistemin 32 bit veyahut 64 bit olduğunu, sistemin tipini gösteren macrolar bulunmaktadır.
Bu macroları kullanarak sisteme uygun programı yükletebilirsin.
Ben sana ufak bir örnek vereyim.

[codebox]#NoTrayIcon
#RequireAdmin

Global $X64 = False
If @OSArch <> "X86" Then $X64 = True

Global $WIN7 = True
If StringInStr("WIN_2003|WIN_XP|WIN_XPe|WIN_2000",@OSVersion) <> 0 Then $WIN7 = False


If $X64 = False Then ;32 bit (x86) ise
If $WIN7 = False Then ;XP ve benzeri bir sistem ise
_XP_X86()
Else ;Deyilse
_WIN7_X86()
EndIf
Else
If $WIN7 = False Then ;XP ve benzeri bir sistem ise
_XP_X64()
Else ;Deyilse
_WIN7_X64()
EndIf
EndIf
Exit



Func _XP_X86()
MsgBox(64,"Kodlar buraya","XP X86")
;Kodlar buraya

EndFunc



Func _XP_X64()
MsgBox(64,"Kodlar buraya","XP X64")
;Kodlar buraya

EndFunc



Func _WIN7_X86()
MsgBox(64,"Kodlar buraya","WIN7 X86")
;Kodlar buraya

EndFunc



Func _WIN7_X64()
MsgBox(64,"Kodlar buraya","WIN7_X64")
;Kodlar buraya

EndFunc[/codebox]
Sen MsgBox satırlarının altına uygun programı kurmak için ilgili komutları girersin.
Diğer konuya gelirsek; internet explorer bu ayarları nerde tuttuğunu tespit etmelisin!
Genlede registryde olabilirler. Tespit ettikten sonra, burdan yazarsın ve seni yönlendirmeye çalışırım.
Kolay gelsin...

Link to comment
Share on other sites

  • 3 hafta sonra ...
  • 2 ay sonra...
  • 5 hafta 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...