I was in the DCEMULATION.COM forums earlir today (it's kind of a nasty atmosphere compared to these forums, more on that later), and some created a self-boot tool. They have been doing some amazing stuff with DreamCasts (open-soruce mp3 players among others, check sourceforge). And these emulators and other software can self-boot the Dreamcast (home brewed discs that run the DC unaided). This guy made a really nice GUI for creating the discs (it was difficult before, beleive me!). Anyway, long story short:
I got inspired and whipped up a NSIS installer that can sit on the same disc as the DC Emulator and run/install a PC emulator of the same system to your computer. Stick with me here...This means you can take, say NESticle and NesterDC on one disc with ROMs and be running the emu just by popping the disc in...on either system. Then I realized the script I whipped up was basically good for autorunning/installing any old cd-based game/program. So here it is...use your imagination, or go to http://members.home.com/cassidyn/download/autorunex.zip .
;HEADER
Name "AutoRunEmu"
SilentInstall silent
OutFile "AutoRunEmu.exe"
InstallDir $TEMP
InstType Standard
DirShow hide
AutoCloseWindow true
;COMPONENTS
Section -
SetCompress auto
SetDataBlockOptimize on
;THIS SHOULD BE CHANGED FOR EACH INDIVIDUAL EMULATOR
ReadRegStr $1 HKLM "software\GONZOTEKEXAMPLE" GNZTKEX
IfErrors 0 NoError
SetOutPath $INSTDIR
;SO SHOULD THIS
FILE NESten061B1.exe
;AND THIS :)
WriteRegStr HKLM "software\GONZOTEKEXAMPLE" GNZTKEX "stuff"
;THIS TOO
EXEC $INSTDIR\NESten061B1.exe
Goto ErrorYay
NoError:
;AND FINALLY THIS
EXECSHELL OPEN "c:\NESten\NESten.exe"
ErrorYay:
SECTIONEND
So when you make your own installers, you wouldn't need to put an installer in another installer, that was just my laziness :) so was hard-coding c:\NES.... Anyway, use a variable for the directory.
-=Gonzotek=-