Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th June 2001, 01:37   #1
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
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 .

code:

;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=-
Gonzotek is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump