I am putting together my first NSIS installer script, and having some trouble.
I am using Modern UI and have provided a simplified script below:
!insertmacro MUI_PAGE_COMPONENTS
Page custom CustomPage
Section "Tomcat" SEC01
;stuff in here to install Tomcat from bundled installer
SectionEnd
Section "Deploy WARS" SEC02
;Fire a separate custom page so that I can use nsDialog to get
;user to choose a folder location for deploying WARs.
;(as potentially their could be more than one Tomcat installed)
SectionEnd
From what I have read, you cannot fire a custom page from within a section.
So how can I maintain the MUI_PAGE_COMPONENTS page to allows user to choose on if they want to install Tomcat AND/OR also deploy WARs.
I will def need a custom page right?
You can have more than one instfiles page so you could have a installer with this page order:
Components
InstFiles (Installs Tomcat)
Directory (Choose WAR destination)
InstFiles (Install WAR)
Section "Tomcat" SECTOM
SectionEnd
Section /o "WAR" SECWAR
SectionEnd
Section
;Use macros from sections.nsh to deselect SECTOM and select SECWAR
SectionEnd
The pre callback functions for page 3 and 4 need to use SectionFlagIsSet from sections.nsh and call Abort if the War component was not selected so the pages are skipped.
Another alternative is to try the DlgHost plugin and show the custom dialog in a child window on your instfiles page...
Related
I installed JomSocial as a component in my Joomla 3.4 deployment. whenever I access this component, the URL is like http://example.com/jomsocial/profile. How can I make it default/main/dominating component, which has URL like:
http://example.com/profile
http://example.com/inbox
and http://example.com/ pointing to JomSocial homepage.
Open the Manage Extensions page in JoomSEF, open the JomSocial extension parameters, and on the Common tab you can either disable this by setting "Show Menu Title" to "No" or use the "Custom Menu Title" field to set your own.
I found out the way myself:
1. Go to admin page > Menus
2. Click on link Home
3. Click button Select > chose Home beneath tree Community
4. Save
Blockquote
Am new to NSIS. Already i have a windows application which contains Service, from there communication takes place and i have a created Setup Project which i developed using .NET. Now i want to know how to convert this Setup to NSIS setup. So far i have created Welcome page, License page and now i am stuck up in Components pages. Since my project contains many 3rd party dlls also. I don't know how to start with. Can any suggest how to work with NSIS?
Blockquote
The component page displays the named sections from your script and the user can choose which components to install:
Page components
Page instfiles
Section "Main Program"
SectionIn RO ; Read only, always installed
Setoutpath $instdir
File "myapp.exe"
SectionEnd
Section "Foo component"
Setoutpath $instdir\plugins
File "Foo.dll"
SectionEnd
Section "Bar component"
Setoutpath $instdir\plugins
File "Bar.dll"
SectionEnd
I'm trying to add a custom page to an NSIS installation, that will contain a title and an image.
I'm using Modern UI.
Thanks ahead
You should use the nsDialogs plugin to create custom pages, it has helper macros to load bitmaps and icons...
I need to change the title of the start page (e.g. "liferay"). I also need to delete the 7Cogs Inc pages from the "go to" menu. And is there a portlet for letting users register at the portal?
All administrative tasks can be handled in the Control Panel.
For deleting sites you can use the Sites panel. Simply find the Site you wish to delete and hit "action" then "delete".
Though renaming the landing site is a bit different, for that you'll have to head over to the "Portal Settings" panel and change the Name.
I would also suggest beginning with a clean database and to remove most of the bundled plugins in tomcat/webapps/. Typically, I remove all the folders except for ROOT (required for Liferay) and tunnel-web (required for web services). Doing so will allow you to start with a clean Liferay without all the default 7Cog content.
I´m using NSIS editor to make a setup for my application, but I don´t want the user to have the option for Autorun the application.
I don´t want the checkbox at the last setup screen.
How can I disable this feature?
Look for the iospecial.ini file of your NSIS directory. You can use this to customize your finish page. Here's one sample.. Check this out -> http://forums.winamp.com/showthread.php?t=264181