Archive: New User Problem


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.


Did you take a look in the included examples?


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.


What could be easier than the included example1.nsi and example2.nsi ? ;)


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.


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! :up: