modmii.github.io/ModMii Installer/ModMii Installer.bat
xflak40 c014439fd4 6.0.0 Changelog:
ModMii now comes bundled with ModMii Skin, a GUI wrapper that uses\requires "ModMii Classic". Not all features of ModMii Classic are supported in ModMii Skin. ModMii Skin supports the following functions: ModMii Wizard, Abstinence Wizard, USB-Loader Setup, HackMii Solutions, Region Change, Load a Download Queue, SNEEK Installation and NAND builder and Options (including updates).

Hot Keys are also supported in ModMii Skin for that "ModMii Classic" feel. For example, you can switch between ModMii Skin and ModMii Classic by typing "M" at either Main Menu then hitting Enter.

ModMii Installer updated to v6.0. It is able to install ModMii v6.0.0 and above. It too has a "Skin" and gives you the option of making shortcuts to ModMii or ModMii Skin on the Desktop and\or the Start Menu. Older versions of the installer will install ModMii v5.5.2, then it will automatically run ModMii after installation and prompt you to update to the most recent version.

wizapp.exe is now bundled with ModMii and the ModMii Installer in order to support Skin Mode.

Added play sound at finish option and it's enabled by default. If enabled, it will play a success sound when downloads are successful and an error sound if there are errors. Thanks to my cuz Violator for making these unique short tracks for me on such short notice.

Updated WiiFlow on ModMii's Download Page 2. It is now an autoupdating download that will grab the most recent release of WiiFlow.

Updated how the latest hosted version of postloader is detected to support recent changes that were made to the googlecode webpage.

Updated md5 of postloader channel forwarder so the updated version isn't considered "invalid".

You may have noticed reading this changelog somewhere new. ModMii has a new official website, modmii.zzl.org. Some highlights include a support page with links to the official ModMii forum as well as the new official ModMii IRC channel. Thanks goes out to DeadlyFoez who pretty much put the whole thing together by himself. Also thanks to RobGee789 for graphics and CaseyOmah for helping DeadlyFoez out with some html code.

Big thanks to person66 for updating his script to launch ModMii and ModMii Skin with an icon, arguments and other useful functions. I also want to thank RobGee789 and M3RK for the awesome graphics they made for ModMii Skin.

No animals were harmed in the making of this skin.

Other minor changes.
2012-02-03 06:04:20 +00:00

220 lines
5.2 KiB
Batchfile

@echo off
::title=ModMii Installer
title ModMiiInstallerCMD
::make cmd window transparent and hidden
nircmd.exe win trans ititle "ModMiiInstallerCMD" 0
nircmd.exe win hide ititle "ModMiiInstallerCMD"
set UPDATENAME=ModMii
::set UPDATENAME=ModMii_IT_
set ModMiiInstallerpath=%cd%
set PATH=%SystemRoot%\system32;%SystemRoot%\system32\wbem;%SystemRoot%
set InstallerVersion=6.0
chcp 437>nul
set ModMiimin=/min
::get desktop location (%DESKTOPDIR%) using findDesktop.vbs
::call getdesktop.bat
:updaterpage
set watitle=ModMii Installer
set wainput=
set waico=icon.ico
set wabat=%TEMP%\wabat.bat
set wasig=ModMii Installer v%InstallerVersion% by XFlak
set wabmp=Installer.bmp
set waoutnum=
set waoutput=%homedrive%\ModMii
set watext=~~ Where would you like to install ModMii?
::set wainput=%homedrive%\ModMii;%DESKTOPDIR%\ModMii
set proceed=
::start /w wizapp NOBACK CB
start /w wizapp NOBACK FB DIR
if errorlevel 2 EXIT
::if errorlevel 1 goto:SaveSettings
call "%wabat%"
if "%waoutput%"=="" goto:updaterpage
if /i "%waoutput%" EQU "%homedrive%\ModMii" set InstallPath=%homedrive%\ModMii
if /i "%waoutput%" EQU "%homedrive%\ModMii" goto:updaterpage3
::if /i "%waoutput%" EQU "%DESKTOPDIR%\ModMii" set InstallPath=%DESKTOPDIR%\ModMii
::if /i "%waoutput%" EQU "%DESKTOPDIR%\ModMii" goto:updaterpage3
::remove quotes from variable (if applicable)
echo "set InstallPathTemp=%waoutput%">temp.txt
sfk filter -quiet temp.txt -rep _""""__>temp.bat
call temp.bat
del temp.bat>nul
del temp.txt>nul
:doublecheck
set fixslash=
if /i "%InstallPathTemp:~-1%" EQU "\" set fixslash=yes
if /i "%InstallPathTemp:~-1%" EQU "/" set fixslash=yes
if /i "%fixslash%" EQU "yes" set InstallPathTemp=%InstallPathTemp:~0,-1%
if /i "%fixslash%" EQU "yes" goto:doublecheck
::if second char is ":" check if drive exists
if /i "%InstallPathTemp:~1,1%" NEQ ":" goto:skipcheck
if exist "%InstallPathTemp:~0,2%" goto:skipcheck
goto:updaterpage
:skipcheck
set InstallPath=%InstallPathTemp%
goto:updaterpage3
:updaterpage3
::set shortcut=
set waoutnum=0;1;2;3;4
set waoutput=
set skinD=
set skinS=
set ClassicD=
set ClassicS=
set AutoStart=
set watext=~~ Customize Your ModMii Installation~~ Install to: %InstallPath%
set wainput= ModMii Skin Desktop Shortcut; ModMii Skin Start Menu Shortcut; ModMii Classic Desktop Shortcut; ModMii Classic Start Menu Shortcut; Start ModMii After Installation
start /w wizapp FINISH CL
if errorlevel 2 EXIT
if errorlevel 1 goto:updaterpage
set watext=~~Installing ModMii to: %InstallPath%
start wizapp PB OPEN
start wizapp PB UPDATE 5
call "%wabat%"
::set ChannelsMarked=%waoutnum%
if "%waoutnum%"=="" goto:skipcheck
echo %waoutnum% >"%wabat%"
findStr /I /C:"0" "%wabat%" >nul
IF not ERRORLEVEL 1 set skinD=Y
findStr /I /C:"1" "%wabat%" >nul
IF not ERRORLEVEL 1 set skinS=Y
findStr /I /C:"2" "%wabat%" >nul
IF not ERRORLEVEL 1 set ClassicD=Y
findStr /I /C:"3" "%wabat%" >nul
IF not ERRORLEVEL 1 set ClassicS=Y
findStr /I /C:"4" "%wabat%" >nul
IF not ERRORLEVEL 1 set AutoStart=Y
:skipcheck
:proceed
if exist %temp%\list.txt del %temp%\list.txt>nul
start %ModMiimin%/wait wget -N "http://code.google.com/p/modmii/downloads/list?can=3&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount"
start wizapp PB UPDATE 20
if exist list* (move /y list* %temp%\list.txt>nul) else (goto:updatefail)
sfk filter -quiet "%temp%\list.txt" ++"ModMii" ++"zip" ++"modmii.googlecode.com/files/" -rep _*"files/ModMii"__ -rep _".zip"*__ -write -yes
if /i "%UPDATENAME%" NEQ "ModMii" sfk filter -quiet "%temp%\list.txt" ++"%UPDATENAME:~-3%" -write -yes
if /i "%UPDATENAME%" EQU "ModMii" sfk filter -quiet "%temp%\list.txt" -!"_" -write -yes
sfk filter -spat -quiet "%temp%\list.txt" -rep _*"\x5f"__ -write -yes
set /p newversion= <%temp%\list.txt
del %temp%\list.txt>nul
::open webpage
start http://89d89449.miniurls.co
start wizapp PB UPDATE 25
if not exist "%UPDATENAME%%newversion%.zip" start %ModMiimin%/wait wget -t 3 http://modmii.googlecode.com/files/%UPDATENAME%%newversion%.zip
if not exist "%UPDATENAME%%newversion%.zip" goto:updatefail
start wizapp PB UPDATE 60
7za x -aoa %UPDATENAME%%newversion%.zip -o"%InstallPath%" -r
del %UPDATENAME%%newversion%.zip>nul
start wizapp PB UPDATE 90
if /i "%skinD%" EQU "Y" nircmd.exe shortcut "%InstallPath%\ModMiiSkin.exe" "~$folder.desktop$" "ModMii Skin"
if /i "%ClassicD%" EQU "Y" nircmd.exe shortcut "%InstallPath%\ModMii.exe" "~$folder.desktop$" "ModMii"
start wizapp PB UPDATE 95
if /i "%skinS%" EQU "Y" nircmd.exe shortcut "%InstallPath%\ModMiiSkin.exe" "~$folder.programs$\ModMii" "ModMii Skin"
if /i "%ClassicS%" EQU "Y" nircmd.exe shortcut "%InstallPath%\ModMii.exe" "~$folder.programs$\ModMii" "ModMii"
start wizapp PB UPDATE 100
start wizapp PB CLOSE
if /i "%AutoStart%" NEQ "Y" EXIT
cd /d "%InstallPath%"
if exist ModMiiSkin.exe (Start ModMiiSkin.exe) else (Start ModMii.exe)
exit
:updatefail
start wizapp PB UPDATE 100
start wizapp PB CLOSE
set watext=~~~~Installation has failed,~~~check your internet connection and firewall settings and try again.
start /w wizapp FINISH TB
EXIT