Old 30th July 2012, 04:01   #1
whossa
Junior Member
 
Join Date: Jul 2012
Posts: 5
Talking NSIS custom page with existing control

Hi all,

Currently I was told to develop a new installation package for our product and the original installation package was written by custom control which belongs one part of our UI lib, so
is it possible to reuse the existing UI element rather than convert them into NSIS script?
And if it could be reached by plugin and I wonder whether it's a time-consuming or a tough task?

Thanks in advance!
whossa is offline   Reply With Quote
Old 30th July 2012, 06:21   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 549
Send a message via ICQ to T.Slappy
Is your UI lib some C, C++, Delphi (...) plug-in (.dll) or an application?
If so the it can be used in NSIS very easily!

(here I suppose your plug-in can be called from main installer [with some parameters] and it asks for some values and performs some tasks then it quits)

But if you want to convert your <some-installation-system-name> installer into NSIS script there is no <converter> or similar tool which makes it easier for you - everything has to be written manually.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 30th July 2012, 09:30   #3
whossa
Junior Member
 
Join Date: Jul 2012
Posts: 5
Thanks T.Slappy! Our ui lib is written in C++.
That's what I wonder, so the least painful way for me is to wrapper those needed custom page as a plugin and call them from nsis script. uh, i'm new to NSIS, so as far as I know there are at least 3 ways to manipulate the UI layout and elements:

1. pure NSIS script
2. ini file and combined with InstallOption plugin
3. encapsule the dll as plugin and call them from nsis script
whossa is offline   Reply With Quote
Old 30th July 2012, 13:20   #4
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 549
Send a message via ICQ to T.Slappy
For your plug-in is the easiest the way #3.
There are some plug-ins which have their custom UI - e.g. http://nsis.sourceforge.net/Inetc_plug-in adds own dialog into installer.
You plug-in should do the same.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
custom, nsis, page, visual studio

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