Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st April 2009, 22:35   #1
phungus420
Junior Member
 
Join Date: Apr 2009
Posts: 15
Icon for main install

I've searched, and used the wiki links to get an icon to work for the desktop shortcut, and quick launch, but I can't figure out how to get the same icon to be used for the main installer the script creates, it just sticks with the default NSIS icon. When searching these boards here all icon references I got were to creating shortcuts, which I have working fine...

Here is what I've tried:
code:
;Folders where files are and names and stuff above MYCLSDIR is where the main folder is where all the files are that get installed
!define ICON "${MYCLSDIR}\${NAME}.ico"


code:
;Name and file

Name "${NAME}"
!ifdef ICON
Icon "${ICON}"
!endif
OutFile "${NAME} v${VERSION} Setup.exe"



And just for reference this is the code that is working fine for the desktop shortcut:
code:
Section "Start Menu Shortcut" Section4
CreateShortCut "$SMPROGRAMS\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword\${MOD_NAME}.lnk" "$INSTDIR1\Civ4BeyondSword.exe" "mod=\${MOD_LOC}" "${ICON}" 0
SectionEnd



So what am I missing to just make the main Setup installer use the icon?
phungus420 is offline   Reply With Quote
Old 21st April 2009, 23:04   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
if you are using the Modern UI, use:
code:
!define MUI_ICON "somefile.ico"
Animaether is offline   Reply With Quote
Old 21st April 2009, 23:36   #3
phungus420
Junior Member
 
Join Date: Apr 2009
Posts: 15
Wow, thanks, that was really easy... I wish the example scripts in the tuts section just showed that.
phungus420 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