Archive: Noob questions


Noob questions
hi!
We are building a big hotel application using powerbuilder.
Till now our setup application was in Powerbuilder.
We decided to use nsis.I have studied the documentation but i have some basic question that it would be very heplful if u could answer

1)Our application is approx 350MB devided into folders.The setupexe that will be produced from nsis compiler will include the whole 350MB product or the folder will be in the cd as they are now and the setup.exe will install them?
2)How does nsis 'understand' that the files to be installed are in the same CD as the it is?Is the var ${NSISDIR} do the job?
3)I have 4 applications that I want to be installed.I found it imposible to define 4 seperate InstallDir vars and screens so I tried to have one InstallDir and with Strcpy
strcpy $1 "$PROGRAMFILES\hotel"
strcpy $1 "pos"
shouldn t $1 be hotelpos?
4)if I want to have uninstallers for each of the 4 apps I should build the uninstallers within each app's section?
5)I tried to use the nsisedit wizard to build a nsis modernui but althouth the script is produced it cannot be compiled
I get the followinf errors
!insertmacro: macro named "MUI_PAGE_WELCOME" not found!
!insertmacro: macro named "MUI_PAGE_LICENSE" not found!
!insertmacro: macro named "MUI_PAGE_LICENSE" not found!
!insertmacro: macro named "MUI_PAGE_INSTFILES" not found!
!insertmacro: macro named "MUI_PAGE_FINISH" not found!
!insertmacro: macro named "MUI_UNPAGE_INSTFILES" not found!
!insertmacro: macro named "MUI_UNPAGE_INSTFILES" not found!

The script produced by nsisedit

edited by kichik. attached below :down:

Any help welcome
Thanx in advance!!!
sorry for the long thread (and my English...)


1) Depends on what you use. You can use the File instruction to include a file into the installer or CopyFiles to copy it from anywhere you want.

2) ${NSISDIR} is a constant specifying the directory in which NSIS is installed on your system, not the user's. $EXEDIR is what you're looking for. It's the directory where the installer is located.

3) StrCpy doesn't append. If you want to append use:

StrCpy $1 "$1pos"

In the latest CVS version you can easily define more than one directory selection pages, each one controlling another variable than $INSTDIR.

4) You can only have one uninstaller per installer. In the latest CVS version you can include a components page in the uninstaller, so you can make it one uninstaller for all of the applications.

The easiest workaround would be creating 4 different installers.

5) You are probably using the latest version of HM NIS Edit with an old version of NSIS. Upgrade to the latest CVS version of NSIS. See the development page on the NSIS's homepage for more information on that.



Please attach large scripts next time.


Yes, that is what the problem is, I had the same problem, you can either change the names so that after PAGE is COMMAND like
!insertmacro: macro named "MUI_PAGECOMMAND_WELCOME"
or you can download the latest version of NSIS (not the release but the snap shot) and then it will work again.


Thanx a lot guys!!