|
|
#1 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
HELP!!! w/Custom scripted installer.
Hi guys, I promised the community that I am a part of that I would release a mod I created Thanks Giving day for the game TRIBES.
I successfully created a installer, now the only problem is that I need it to install :\ I originally worked out of gfx.nsi, I got everything to work, and the installer itself looks excellent. I couldn't find any code in the NSI that attaches files to it so I browsed around in zip2exe. I noticed at the top it says the contrib crap, so I went ahead and went to my Programs files/NSIS/Contrib/ bla bla... I then opened up the base, then I attempted to replace the base code with the one gfx gave me.. No luck... Syntax syntax syntax.. Now this is weird knowing the installer works in the scripter but not the zip2exe... I am basically trying to add the zip to my custom gfx.nsi, if anyone could help I would deeply appreciate it.. Josh- Here is the un-syntaxed GFX.nsi code. code: |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,336
|
You don't need zip2exe. It's only used for converting ZIP files to installers with two clicks and no customizations. What you are looking for is the File command. Start with the simpler examples - example1.nsi.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Mmk, I might convert some code over from example1.nsi to gfx, but I am definetly not starting over.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Ahh! thank you so much!
;-------------------------------- ; The stuff to install Section "" ;No components page, name is not important ; Set output path to the installation directory. SetOutPath $INSTDIR ; Put file there File Filenamehere.w/e SectionEnd ; end the section |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
mmm..
How do we write a shortcut to installer? |
|
|
|
|
|
#6 | |
|
Junior Member
Join Date: Nov 2007
Posts: 2
|
Quote:
And for desktop shortcut Section "-Make Shortcut" SEC0XX SetOutPath $INSTDIR CreateShortCut "$DESKTOP\Name_of_your _shortcut.lnk" "$INSTDIR\Game.exe" "$INSTDIR\shortcut_icon.ico" SectionEnd shortcut icon is optional if u like to have different icon than main game icon |
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Mmm, but I already have the shortcut, I just need to write it :\
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
|
Use CreateShortCut please.
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Oh, I get it.
Another thing, last thing and I will stop bugging you guys.. How do you change Installer icon? |
|
|
|
|
|
#10 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,336
|
The Icon command would do that.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Err great, uninstaller doesn't work..
|
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Hmm, what is change shortcut icon code?
|
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Nvm got it all working
|
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Hmm, What if I wanted a file to open after it's done installing?
|
|
|
|
|
|
#15 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
You could use the .onInstSuccess function, or add a leave function for the finish page...
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#16 |
|
Junior Member
Join Date: Mar 2007
Posts: 24
|
Err that didn't exactally help at all but I did get it to work anyways.
;AIFO Section "" ;No components page, name is not important ExecShell "open" "$INSTDIR\Config\WTF.cs" SectionEnd ; end the section |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|