Old 26th March 2007, 18:06   #1
SandyB
Junior Member
 
Join Date: Mar 2007
Location: Orlando, FL USA
Posts: 3
New User Problem

I am a new user and don't quite understand the scipt syntax. I want to first do a very simple install:
1. Make a new folder named "CLXP"
2. Unzip a program file named "FileA" into it.
3. Make a shortcut to operate that on the desktop.
Could someone give ma a kickstart to do this. I think I can get it after that. Thanks.
SandyB is offline   Reply With Quote
Old 26th March 2007, 18:10   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Did you take a look in the included examples?

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 26th March 2007, 18:16   #3
SandyB
Junior Member
 
Join Date: Mar 2007
Location: Orlando, FL USA
Posts: 3
Yes I did, and they all seem to do a lot more than I need for the first try. That's why I wanted help with something really easy so I can figure it out. Thanks.
SandyB is offline   Reply With Quote
Old 26th March 2007, 18:30   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
What could be easier than the included example1.nsi and example2.nsi ?

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 27th March 2007, 00:44   #5
SandyB
Junior Member
 
Join Date: Mar 2007
Location: Orlando, FL USA
Posts: 3
Well, what I want to do should be easier, and I had hoped that if I could see a script which does that done by someone who knows what they're doing, then I could probably figure out the rest without asking for more help. But if that's not possible, let me just ask the several questions I have from looking at, compiling and running Example1.nsi:
1. InstallDir $PROGRAMFILES\Example1---I don't want to give the user a choice where to install it, I want the installer to create a folder if it doesn't exist and install a compressed program file in that folder. What do I replace this line with to do that?
2. Page directory---I don't want to show a browse combo box, I just want to have a page that shows text that tells the user what's going to happen and has a Continue and a Cancel button. So what do I call that page? Do I need to design one with a graphics editor or is there already one like that?
3. Section "";No components page, name is not important---I do have a file "FileA" to be installed in the newly created folder, so what is the syntax and punctuation to state that correctly?
4. I want to create a shortcut on the desktop to start the program "FileA". How do I do that?

Thanks for the help with these questions.
SandyB is offline   Reply With Quote
Old 27th March 2007, 01:40   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Based on example1.nsi:

1. Remove all Page tags.
2. Maybe you should add a license page about that shows text that tells the user what's going to happen.
3. in Section, just add your Files with File instruction, see IfFileExists to test if there's a file. For shortcuts, see example2.nsi in section Section "Start Menu Shortcuts".

Good luck!


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel 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