nIRV
17th April 2001, 14:59
Hi there,
With the arrival of variables and functions, I started this thing that I call "Common NSIS Functions".
It's a .nsi regrouping usefull functions that some might want in an installer. Rather than redoing it everytime, you simply call the function et voila.
That is very good for newbies too. One could just write down !include commonfunctions.nsi and use the functions he needs without bugging with hardcode.
Finaly, it can reduces the size of your installation by reusing functions more than one time in your installation. And unusued functions takes praticaly no space in your installation (take justin for that one)
e.g.
!include commonfunctions.nsi
blablabla
#Add File association
#$0 = extention
#$1 = application name
#$2 = command to execute
StrCpy $0 ".bdz"
StrCpy $1 "BDzReader
StrCpy $2 "$INSTDIR\BDz.exe \%1\"
AddFileAssociation
etc.
I post this here to have feedbacks and by any chance some people wanting to add functions in this .nsi that could become something really useful. (And give power to an eventual frontend to nsis that could offer more options via this commonfunctions.nsi)
peace
With the arrival of variables and functions, I started this thing that I call "Common NSIS Functions".
It's a .nsi regrouping usefull functions that some might want in an installer. Rather than redoing it everytime, you simply call the function et voila.
That is very good for newbies too. One could just write down !include commonfunctions.nsi and use the functions he needs without bugging with hardcode.
Finaly, it can reduces the size of your installation by reusing functions more than one time in your installation. And unusued functions takes praticaly no space in your installation (take justin for that one)
e.g.
!include commonfunctions.nsi
blablabla
#Add File association
#$0 = extention
#$1 = application name
#$2 = command to execute
StrCpy $0 ".bdz"
StrCpy $1 "BDzReader
StrCpy $2 "$INSTDIR\BDz.exe \%1\"
AddFileAssociation
etc.
I post this here to have feedbacks and by any chance some people wanting to add functions in this .nsi that could become something really useful. (And give power to an eventual frontend to nsis that could offer more options via this commonfunctions.nsi)
peace