Old 19th February 2020, 11:34   #1
nickc1977
Junior Member
 
Join Date: Feb 2020
Posts: 3
Newbie Question..

Hi

I'm very new to creating installers and I'm looking for guidance. I just want to create a very basic installer where I have 5 files to copy to one folder and 3 files to copy to 2 other folders.. Been searching through the forum and the sample scripts but I'm struggling to work it out. No need for anything like registry entries or an uninstaller (maybe a need for a desktop shortcut though)

Can anyone give me a nudge in the right direction please?

Thanks in advance
nickc1977 is offline   Reply With Quote
Old 19th February 2020, 19:18   #2
Nutzzz
Member
 
Join Date: May 2007
Location: Orange County, CA, U.S.A.
Posts: 69
The examples in the NSIS install folder are very helpful. Maybe look at
code:
C:\Program Files (x86)\NSIS\Examples\Modern UI\StartMenu.nsi


The commands you want are: SetOutPath and File

For your desktop icon, you could make an optional section using Section (with /o) containing a call to CreateShortCut

Alternatively, if you don't need the Readme checkbox on the Finish page, you could re-use it for your desktop icon, e.g.:
code:
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "Create Desktop shortcut"
!define MUI_FINISHPAGE_RUN_FUNCTION "DoDesktopShortcut"

Function DoDesktopShortcut
CreateShortCut "$DESKTOP\YourShortcut.lnk" "$INSTDIR\YourProgram.exe"
FunctionEnd


Last edited by Nutzzz; 19th February 2020 at 20:29.
Nutzzz is offline   Reply With Quote
Old 20th February 2020, 08:33   #3
nickc1977
Junior Member
 
Join Date: Feb 2020
Posts: 3
Thank you, I'll take a look there
nickc1977 is offline   Reply With Quote
Old 20th February 2020, 09:28   #4
nickc1977
Junior Member
 
Join Date: Feb 2020
Posts: 3
Thank you for the pointer, I have now created an installer that does exactly what I need
nickc1977 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
basic, installer

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