Old 9th February 2011, 16:02   #1
FlasH_10
Junior Member
 
Join Date: Feb 2011
Posts: 10
CustomPage and Images

Hi guys,

i have create a custompage with too images (.ico). It's defined in a .ini file. I use this to show me the CustomPage.
code:

...
Page custom CustomPage
...
!insertmacro INSTALLOPTIONS_DISPLAY "test.ini"
...
!insertmacro INSTALLOPTIONS_EXTRACT_AS ..\test.ini" "test.ini"
...



It works fine. The problem is, that i dont see the images on an other pc, cause it seems nsis dont compile/compress the ico file and he cant find the images.
Is there any solution or did I a mistake?

Thanks for help
kind regards
FlasH_10 is offline   Reply With Quote
Old 10th February 2011, 07:18   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 545
Send a message via ICQ to T.Slappy
Probable you forgot to include those .ico files into the your installer...
You need to extract them when installation starts into temp directory and load them from that place, not from absolute path in your PC.

And try to avoid those .ini files, they are deprecated.

Cool looking installers with custom design: www.graphical-installer.com
Design NSIS setup Pages easily: www.install-designer.com
Build NSIS installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 10th February 2011, 11:07   #3
FlasH_10
Junior Member
 
Join Date: Feb 2011
Posts: 10
Big thx.
May you give me one Example? I dont know how to solve it.
I only have to !include ".ico" and change the .ico path in the .ini file to a relative path?
kind regards

//edit:
ok it works fine now. Did only this on the .onInit Function

SetOutPath "$TEMP\"
File "gfx\*.*"

And i use relative path .\\.ico on the .ini file.

thx
FlasH_10 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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