Skip to content

Instantly share code, notes, and snippets.

@kirb
Created October 23, 2011 01:19
Show Gist options
  • Save kirb/1306725 to your computer and use it in GitHub Desktop.
Save kirb/1306725 to your computer and use it in GitHub Desktop.
BootTethered
[Autorun]
Icon=BootTethered\Other\source\ipsw.ico
Open=BootTethered\BootTethered.exe
Action=Boot Tethered
Label=Boot Tethered
;*** How to set up ***
; First, set up the AU3 script in a folder called BootTethered
; in the root of your USB stick. Now you just need to put this
; Autorun.inf file in the root. Disconnect and reconnect your
; drive and you should be asked if you want to "boot tethered
; using the program provided on the device."
; If you don't see that, you're either using Windows 7 or have
; Autoplay turned off and will need to run it manually.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=ipsw.ico
#AutoIt3Wrapper_Outfile=..\..\BootTethered.exe
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Res_Comment=Does what it says on the tin.
#AutoIt3Wrapper_Res_Description=BootTethered
#AutoIt3Wrapper_Res_Fileversion=1.0.0.3
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=y
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Run_Tidy=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; BootTethered - quickly boot a tethered iDevice
; Written by Ad@m - http://adamscode.sourceforge.net
; Licensed under the MIT License - http://adam.mit-license.org
;**** How to set up ****
; Create a folder called Other, then inside it, make another
; called source. Put this code in an AU3 file there.
; Make an icon and save it as ipsw.ico in the same folder. I used
; the IPSW icon from iTunes, but anything else is fine.
; Go back to the folder above Other and create the App folder, then
; redsn0w. Extract your zip file of redsn0w there.
; Go back again and create Data and ipsw. Put your IPSWs here.
; Now open the AU3 file in SciTE4AutoIt3 and press F7.
; Optionally, place the included Autorun.inf file in the root of the
; USB stick to make it automatically open on XP and Vista.
;**** How to use ****
; If you set up Autorun.inf and Autoplay isn't turned off, you should
; be asked to run BootTethered when the USB stick is inserted. Else,
; you'll need to run it manually from the BootTethered folder.
If Not FileExists(@ScriptDir & "\App\redsn0w\redsn0w.exe") Then
MsgBox(16+4096, "BootTethered", "Could not find redsn0w. Please make sure it is in the redsn0w folder under the App folder.")
Else
$file = FileOpenDialog("Choose your device's IPSW...", @ScriptDir & "\Data\ipsw", "iOS Firmware Files (*.ipsw)", 3)
If Not @error And $file <> "" And FileExists($file) Then
ShellExecute(@ScriptDir & "\App\redsn0w\redsn0w.exe", """--ipsw=" & $file & """ --justBoot")
If @error Then
MsgBox(48+4096, "BootTethered", "Error " & @error & " occurred while trying to run redsn0w.")
EndIf
EndIf
EndIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment