Archive: Problem with icons


Problem with icons
Hi, I'm back!
I have a new problem with NSIS. if launch the program after
the installation with NSIS it does not find the icone. If I
launch it manually works fine.
This is the code:


!include nsDialogs.nsh
!include LogicLib.nsh

!define PRODUCT_NAME "Update"
!define PRODUCT_VERSION "2.05"
!define PRODUCT_PUBLISHER "Rand0m"

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Update.exe"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Italian.nlf"
InstallDir "C:\Update"
Icon "${NSISDIR}\Contrib\Graphics\Icons\classic-install.ico"
DirText "some text"

XPStyle on
ShowInstDetails show

Page directory
Page instfiles
Page custom nsDialogsmeh leave

Var CHECKBOX

Function nsDialogsmeh

nsDialogs::Create /NOUNLOAD 1018

${NSD_CreateGroupBox} 0 0 395 205 "Starlight Update System"

${NSD_CreateLabel} 10 25 300 18 "Starlight 2 è stato aggiornato nel vostro computer"

${NSD_CreateLabel} 10 45 300 18 "Scegliere fine per uscire dal programma di aggiornamento"

${NSD_CreateCheckbox} 10 80 100 18 "Avvia Starlight 2"
Pop $CHECKBOX
SendMessage $CHECKBOX ${BM_SETCHECK} ${BST_CHECKED} 0
nsDialogs::Show

FunctionEnd

Function leave
SendMessage $CHECKBOX ${BM_GETSTATE} 0 0 $0
${If} $0 != 0
Exec "$INSTDIR\mirc.exe"
${EndIf}
FunctionEnd

Section "SezionePrincipale" SEC01
SetOutPath "$INSTDIR"
SetOverwrite on
File "allmyicons.ico"
SectionEnd


Where is the trouble? Help me!

What do you mean by it doesn't find the icon. What program?
If you mean mirc.exe, try SetOutPath $INSTDIR before it to set its working directory.

Stu


Ok, now works fine! Thank you! Kind as usual!