EXE file that will download your torque game.
by Max Thomas · in General Discussion · 06/30/2004 (11:04 am) · 27 replies
Hello,
I'm guessing that this is a stupid question but I was wondering if any one could help me with creating a EXE file that will download your torque game into your c drive or where ever specified and create a desktop Icon to launch the game?
thanks, Max
I'm guessing that this is a stupid question but I was wondering if any one could help me with creating a EXE file that will download your torque game into your c drive or where ever specified and create a desktop Icon to launch the game?
thanks, Max
#2
stuff like Inno Setup etc
06/30/2004 (11:22 am)
There are a few free install maker programs out there just do a google search for them.stuff like Inno Setup etc
#3
07/01/2004 (7:51 am)
NullSoft Installer is what we use for the Torque demo and many of the other games we publish.
#4
i.e. with the Nullsoft Installer?
(I've been searching for abit, and nothing has come up...)
Dan
07/01/2004 (5:10 pm)
Is there any tutorials for creating an installer with torque?i.e. with the Nullsoft Installer?
(I've been searching for abit, and nothing has come up...)
Dan
#5
First link is a good bet.
07/01/2004 (9:18 pm)
www.google.com/search?q=nsis&sourceid=firefox&start=0&start=0&ie=utf-8&oe=utf-8First link is a good bet.
#7
07/02/2004 (6:48 am)
Woah Ben uses firefox :O ben, BLASPHEMY!!!! what about the good old M$.
#8
Besides, check this out: story.news.yahoo.com/news?tmpl=story&cid=74&e=3&u=/cmp/20040702/tc_cmp/22103407
07/02/2004 (8:13 am)
Once you go firefox you never go back:).Besides, check this out: story.news.yahoo.com/news?tmpl=story&cid=74&e=3&u=/cmp/20040702/tc_cmp/22103407
#9
07/03/2004 (7:45 am)
I just downloaded nsis and it's working great.
#10
Would there be some Torque instruction that deals with NullSoft?
Thanks, Tatjana
10/27/2005 (6:11 pm)
I'm reading through the user's manual of NullSoft. I'm attempting to write out my own NSIS script. This is my first time dealing with this. I'm understanding what I'm reading, but not knowing exactly how to put the script together, as well as what Torque files need to be scripted in the the NSIS script.Would there be some Torque instruction that deals with NullSoft?
Thanks, Tatjana
#11
It has two sections, required files and Desktop icons.
users must install required files, but have the option to include desktop icons.
It's pretty self explanatory, plus there are comments which begin with ;
10/27/2005 (8:53 pm)
Here's an NSI script for a really old game I made (2d in Visual Basic)It has two sections, required files and Desktop icons.
users must install required files, but have the option to include desktop icons.
It's pretty self explanatory, plus there are comments which begin with ;
; app.nsi ; ; Install script for io.. by Thomas Natale Jr. ;-------------------------------- !ifdef HAVE_UPX !packhdr tmp.dat "upx\upx -9 tmp.dat" !endif !ifdef NOCOMPRESS SetCompress off !endif ;-------------------------------- Name "App title" Caption "Install App title" Icon "C:\program files\NSIS\Contrib\Graphics\Icons\io.ico" OutFile "App.exe" SetDateSave on SetDatablockOptimize on SetOverwrite try CRCCheck on SilentInstall normal BGGradient 000000 000080 FFFFFF InstallColors FF8080 000030 XPStyle on InstallDir "$PROGRAMFILES\YourCompany\App title" InstallDirRegKey HKLM "Software\YourCompany\AppTitle" "" CheckBitmap "C:\program files\NSIS\Contrib\Graphics\Checks\simple.bmp" ;-------------------------------- Page components Page directory Page instfiles UninstPage uninstConfirm UninstPage instfiles ;-------------------------------- !ifndef NOINSTTYPES ; only if not defined InstType "Required Files" InstType "Required Files and Shortcuts" InstType /NOCUSTOM ;InstType /COMPONENTSONLYONCUSTOM !endif AutoCloseWindow false ShowInstDetails hide ;-------------------------------- Section "" ; empty string makes it hidden, so would starting with - ; write reg crap WriteRegStr HKLM SOFTWARE\YourCompany\AppTitle "Install_Dir" "$INSTDIR" ; write uninstall strings WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\APP" "DisplayName" "App title (remove only)" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\APP" "UninstallString" '"$INSTDIR\App-uninst.exe"' SetOutPath $INSTDIR WriteUninstaller "App-uninst.exe" Nop ; for fun SectionEnd Section "Required Files" SectionIn 1 2 RO ;copy files for client and AppTitle SetOutPath $INSTDIR File "C:\filepath\app.exe" File "C:\filepath\*.wav" File "C:\filepath\*.bmp" ;DetailPrint "Registering system files.." ;copy .dlls and .ocxs and reg them.. Sleep 800 RegDLL "$INSTDIR\zlib.dll" SetOutPath $SYSDIR ; copies dx7vb.dll from YOUR windows dir to sysdir File "C:\WINDOWS\system32\dx7vb.dll" File "C:\WINDOWS\system32\msvbvm60.dll" File "C:\WINDOWS\system32\stdole2.tlb" ;File "C:\WINDOWS\system32\msdxm.ocx" File "C:\WINDOWS\system32\mscomctl.ocx" RegDLL "$SYSDIR\dx7vb.dll" Sleep 1000 RegDLL "$SYSDIR\msvbvm60.dll" ;Sleep 1000 ;RegDLL "$SYSDIR\msdxm.ocx" Sleep 1000 RegDLL "$SYSDIR\mscomctl.ocx" DetailPrint "Almost Done.." Sleep 200 SectionEnd Section "Start Menu & Desktop Shortcuts" SectionIn 2 RO DetailPrint "Copying Start Menu Shortcuts.." Call CopyShortcuts SectionEnd Function "CopyShortcuts" CreateDirectory "$SMPROGRAMS\YourCompany\App title" SetOutPath $INSTDIR ; for working directory CreateShortCut "$SMPROGRAMS\YourCompany\App title\APP.lnk" "$INSTDIR\APP.exe" CreateShortCut "$SMPROGRAMS\YourCompany\App title\Uninstall APP.lnk" "$INSTDIR\APP-uninst.exe" CreateShortCut "$SMPROGRAMS\YourCompany\App title\Open APP Folder.lnk" "$INSTDIR\" DetailPrint "Copying Desktop shortcuts.." CreateShortCut "$DESKTOP\App title.lnk" "$INSTDIR\APP.exe" "" "$INSTDIR\APP.exe" 0 SW_SHOWNORMAL CONTROL|SHIFT|I FunctionEnd ;-------------------------------- ; Uninstaller UninstallText "This will uninstall App title. Hit next to continue." UninstallIcon "C:\program files\NSIS\Contrib\Graphics\Icons\nsis1-uninstall.ico"
#12
10/27/2005 (8:53 pm)
The rest:Section "Uninstall" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\APP" DeleteRegKey HKLM "SOFTWARE\YourCompany\AppTitle" DeleteRegKey HKLM "SOFTWARE\YourCompany" DetailPrint "Unregistering system files.." UnRegDLL "$INSTDIR\zlib.dll" Sleep 700 UnRegDLL "$INSTDIR\CSWSK32.OCX" Sleep 1000 ;UnRegDLL "$SYSDIR\dx7vb.dll" ;Sleep 1000 ;UnRegDLL "$SYSDIR\msvbvm60.dll" ;Sleep 1000 ;UnRegDLL "$SYSDIR\stdole2.tlb" ;Sleep 1000 ;Delete "$SYSDIR\stdole2.tlb" ;Delete "$SYSDIR\msvbvm60.dll" ;Delete "$SYSDIR\dx7vb.dll" DetailPrint "Deleting program files.." Delete "$INSTDIR\*.*" DetailPrint "Removing Directories.." RMDir "$INSTDIR" ;take care of program files Delete "$PROGRAMFILES\YourCompany\App title\*.*" RMDir "$PROGRAMFILES\YourCompany\App title" RMDir "$PROGRAMFILES\YourCompany" ;now take care of Startmenu stuff Delete "$SMPROGRAMS\YourCompany\App title\*.*" RMDir "$SMPROGRAMS\YourCompany\App title" RMDir "$SMPROGRAMS\YourCompany" ;del shortcut on desktop Delete "$DESKTOP\App.lnk" SectionEnd
#13
10/27/2005 (11:10 pm)
I agree with using NSIS, it is very powerful. If you need help making .nsi scripts, you can use HM NSIS Edit, a free NSIS editor/IDE to help you with your process.
#15
I use Venis for php editing too... I know i know, it's a habit of mine.
10/28/2005 (12:11 am)
I also use Venis.I use Venis for php editing too... I know i know, it's a habit of mine.
#17
@Thomas Natale and Orion Elenzil
I just bought the Venus IX license. I'm practicing using the wizard, but not getting to far without documentation from SpaceBlue.
Wizard Page 1 of 5-- In the General Application Settings, what are the Number of components? What is meant by components?
Page 2 of 5-- Application Version, what am I to put in here? Outfile, is this created automatically, or to I create one?
Page 3 of 5-- Select component Section, what are the component files associated with the Torque directory?
Thanks soo much! :- )
Tatjana
10/29/2005 (10:06 am)
@Thomas Natale Thank you very much for the code. I'm using it as a guide for the NSIS script in the NullSoft user's manual. @Thomas Natale and Orion Elenzil
I just bought the Venus IX license. I'm practicing using the wizard, but not getting to far without documentation from SpaceBlue.
Wizard Page 1 of 5-- In the General Application Settings, what are the Number of components? What is meant by components?
Page 2 of 5-- Application Version, what am I to put in here? Outfile, is this created automatically, or to I create one?
Page 3 of 5-- Select component Section, what are the component files associated with the Torque directory?
Thanks soo much! :- )
Tatjana
#18
10/29/2005 (11:02 am)
Personally i like the Tarma installer software....very very easy...takes about 2 minutes to get a pretty nice install program going....search google for it.
#19
Another helpful tool is makeself.sh, which basically creates a tarball of all the specified files into one executeable (in console) shell script, which can optionally run a specified script within itself. I just learned that makeself is now also included as part of Loki installer.
10/29/2005 (2:33 pm)
I won't be doing this for a while, but does anyone know of a good installer for Linux? The only GUI one I know of is the Loki Installer, but I've never used it before.Another helpful tool is makeself.sh, which basically creates a tarball of all the specified files into one executeable (in console) shell script, which can optionally run a specified script within itself. I just learned that makeself is now also included as part of Loki installer.
#20
Thank you very much for your suggestion.
I have been investigating Tarma, reading the instructions and poking around. I'm currently on the second page of the installation wizard, the installation files. In these four files, AppFolder, Common Files, WinDir, and WinSysDir, I saw in the AppFolder the Setup.exe. But for the other project files, what are the appropriate Torque files that belong in these folders?
Thanks again, Tatjana
10/29/2005 (4:51 pm)
@GimpMasterThank you very much for your suggestion.
I have been investigating Tarma, reading the instructions and poking around. I'm currently on the second page of the installation wizard, the installation files. In these four files, AppFolder, Common Files, WinDir, and WinSysDir, I saw in the AppFolder the Setup.exe. But for the other project files, what are the appropriate Torque files that belong in these folders?
Thanks again, Tatjana
Torque Owner Peter Dwyer
stuff like Inno Setup etc