Originally posted by T(+)rgetThat would probably make the installer look a bit weird. In it's current form, the installer is pretty much simple and small in size. Adding a branding image will also make the installer size much larger and i think NSIS looks great at the moment. If you're looking for an installer that supports branding, try Inno Setup instead - www.jrsoftware.org
lol soz
Anyway like I said it'll be nice to see that Brand Image thing included with this version of NSIS you know the image on the side of the installer.
Full color icon, XP style without recompiling and smaller header size
136 posts
Yeah but you could do a switch so that if you don't include it in your nsi file it won't use the coding for it or if you put in your nsi file BrandImage off.
I just think it'll be a nice addition to NSIS which most people would like to use say like if the installer is over 50mb or something you wouldn't notice much difference in size.
I just think it'll be a nice addition to NSIS which most people would like to use say like if the installer is over 50mb or something you wouldn't notice much difference in size.
Hi Target,
I will do it. I was thinking of doing it with the first version but I had a problem with bitmaps...
To mlbl, I will make it so the header size won't change. Don't worry, it is just a couple of lines of code...
KiCHiK
[edit]I have just noticed that Sunjammer has uploaded the new version with the Enabled/Disabled bitmap bug fixed.
Thanks Sunjammer[/edit]
I will do it. I was thinking of doing it with the first version but I had a problem with bitmaps...
To mlbl, I will make it so the header size won't change. Don't worry, it is just a couple of lines of code...
KiCHiK
[edit]I have just noticed that Sunjammer has uploaded the new version with the Enabled/Disabled bitmap bug fixed.
Thanks Sunjammer[/edit]
I have just noticed that Sunjammer has uploaded the new version with the Enabled/Disabled bitmap bug fixed.Eh? I haven't done anything recently, what are you on about KiCHiK? 😁
[edit]KiCHiK is correct - if you consider six days ago to be "recently" 😁 [/edit]
lol
Thanks for your reply about adding the Brand Image like that old version which that anyedit guy done NSIS v1.59BB (I did contact him about doing it for the latest version but he ain't got no time to do it)
Thanks for your reply about adding the Brand Image like that old version which that anyedit guy done NSIS v1.59BB (I did contact him about doing it for the latest version but he ain't got no time to do it)
A new version is out:
- Full color bitmap for EnabledBitmap/DisabledBitmap are now supported. Bitmap size MUST be 20x20 now though... I hope that doesn't break anyone's script
- Code now compiles and works with Borland compiler (would somone mind checking it on mingw too?)
- Fixed a bug that caused makensis to crash if uninstall section was present and WriteUninstaller wasn't. Also made it so the uninstaller data won't be added unless WriteUninstaller was called.
For Borland copmiler users:
1) To compile my mod you need to change the current makefile and get it to compile ResourceEditor.cpp too.
2) If you want to make your Borland compiled NSIS even smaller you can remove any resources of the RCData type (using Resource Hacker or another resource editor), and remove the .reloc section (using crayzee's wipe.reloc v1.40 or another aligner/wiper). UPX does a good job as well.
I think that branding image support will take a little longer to make than I have thought in the first place. It is a little complicated... I will try to find some code on the Internet, but if I fail I will have to write it my-self and it will take some time.
- Full color bitmap for EnabledBitmap/DisabledBitmap are now supported. Bitmap size MUST be 20x20 now though... I hope that doesn't break anyone's script
- Code now compiles and works with Borland compiler (would somone mind checking it on mingw too?)
- Fixed a bug that caused makensis to crash if uninstall section was present and WriteUninstaller wasn't. Also made it so the uninstaller data won't be added unless WriteUninstaller was called.
For Borland copmiler users:
1) To compile my mod you need to change the current makefile and get it to compile ResourceEditor.cpp too.
2) If you want to make your Borland compiled NSIS even smaller you can remove any resources of the RCData type (using Resource Hacker or another resource editor), and remove the .reloc section (using crayzee's wipe.reloc v1.40 or another aligner/wiper). UPX does a good job as well.
I think that branding image support will take a little longer to make than I have thought in the first place. It is a little complicated... I will try to find some code on the Internet, but if I fail I will have to write it my-self and it will take some time.
The problem with this mod is that it forces you to use branding image. I don't want to do that. I want to give it as an option.
To do this I need to learn how to edit dialog resources. And of course, like everything else with Microsoft, it isn't that simple...
I haven't found any class/code that already does this so I guess I will have to write my own class. I hope it won't take too long. If I write this class I will be able to implement font changing as well.
To do this I need to learn how to edit dialog resources. And of course, like everything else with Microsoft, it isn't that simple...
I haven't found any class/code that already does this so I guess I will have to write my own class. I hope it won't take too long. If I write this class I will be able to implement font changing as well.
Uploaded
I was away so KiCHiK's new NSIS 1.99 version has literally only just been uploaded to my archive. Keep it up KiCHiK - that's the sixth version I've uploaded so far 😁
I was away so KiCHiK's new NSIS 1.99 version has literally only just been uploaded to my archive. Keep it up KiCHiK - that's the sixth version I've uploaded so far 😁
Yeah do it your way mate so we can change fonts as well 😁 that'll be nice. Can't wait for this version to come out!
It is almost ready. I just want to make sure everything works as it should, update the documents, and test it on Borland compiler.
It will probably be uploaded tomorrow.
I have attached a JPEG teaser, enjoy 😁
BTW, In my version you can replace the bitmaps during installation, so you can put a different bitmap for every page.
It will probably be uploaded tomorrow.
I have attached a JPEG teaser, enjoy 😁
BTW, In my version you can replace the bitmaps during installation, so you can put a different bitmap for every page.
Ready!
- Added SetFont
- Added AddBrandingImage, and SetBrandingImage
- 'SpaceTexts none' now causes no space texts to appear
- Added gfx.nsi example file
Will be uploaded soon... [edit]Done![/edit]
Enjoy 😁
- Added SetFont
- Added AddBrandingImage, and SetBrandingImage
- 'SpaceTexts none' now causes no space texts to appear
- Added gfx.nsi example file
Will be uploaded soon... [edit]Done![/edit]
Enjoy 😁
KiCHiK, you're the greatest!
There's only one thing left which could be very useful: Merge NSIS 1.99 and NSIS 2.0a1
There's only one thing left which could be very useful: Merge NSIS 1.99 and NSIS 2.0a1
Thanks man 😁
But I have to disagree... There are two things left!
I need to make nsis support multiple languages too 🙂
To merge it with NSIS 2.0a1 I first have to talk to Rainwater but he doesn't answer =/
I guess he is away or something...
But I have to disagree... There are two things left!
I need to make nsis support multiple languages too 🙂
To merge it with NSIS 2.0a1 I first have to talk to Rainwater but he doesn't answer =/
I guess he is away or something...
Great work!
Another nice thing would be an integration of InstallOptions. Now the images & font settings don't work with the InstallOptions dialogs.
Another nice thing would be an integration of InstallOptions. Now the images & font settings don't work with the InstallOptions dialogs.
Nice one m8e thanks for adding that support for me 😁 I am a happy bunny now 🙂
The branding image works great, but it doesn't show up in the uninstaller.
I just noticed something - in the uninstaller, the text between the cancel and uninstall button is not centered, i'm not sure if this small "problem" existed before, but it is as though there is an invisible button between the uninstall button and the text that causes it to be that way (not centered). Hope you can fix this (although it's very minor and can be ignored)
I just noticed something - in the uninstaller, the text between the cancel and uninstall button is not centered, i'm not sure if this small "problem" existed before, but it is as though there is an invisible button between the uninstall button and the text that causes it to be that way (not centered). Hope you can fix this (although it's very minor and can be ignored)
As the branding image is set at runtime (so it can be compressed along with all other files), you need to set it seperatly for the uninstaller. That means you have to create a function named un.onNextPage and control the image there.
The space between between the cancel and the uninstall button is because the space is "reserved" for the back button. This space also exists in the license agreement page... Fixing it will enlarge the header size by 0.5KB so I prefer to leave this way as this is, like you said, a very minor bug.
The space between between the cancel and the uninstall button is because the space is "reserved" for the back button. This space also exists in the license agreement page... Fixing it will enlarge the header size by 0.5KB so I prefer to leave this way as this is, like you said, a very minor bug.
New version:
- Updated InstallOptions that support the SetFont option
- Documented !error and !warning (hidden features)
- Added !echo and !verbose
- Added 'force' option for CRCCheck to make sure your installer is not corrupted (disables /NCRC command line option)
- Updated InstallOptions that support the SetFont option
- Documented !error and !warning (hidden features)
- Added !echo and !verbose
- Added 'force' option for CRCCheck to make sure your installer is not corrupted (disables /NCRC command line option)
Uploaded
Uploaded to the archive and ready for download (if you're wondering why I posted this it's because AFAIK the archive is the only place that NSIS 1.99 is hosted, KiCHiK sends me updates directly, so until I post here you can't be sure unless you actually read the info on the archive which version is hosted there 😁)
Uploaded to the archive and ready for download (if you're wondering why I posted this it's because AFAIK the archive is the only place that NSIS 1.99 is hosted, KiCHiK sends me updates directly, so until I post here you can't be sure unless you actually read the info on the archive which version is hosted there 😁)
Ok thanks, i didn't thought of doing that 🙂
Branding Image
The branding image is not correctly resized on systems with a non standard font resolution (96 dpi). If you for example use large fonts (120 dpi), the image does not use the complete width of the installer window.
The branding image is not correctly resized on systems with a non standard font resolution (96 dpi). If you for example use large fonts (120 dpi), the image does not use the complete width of the installer window.
Thanks for letting me know Thomas.
This sucks =/
It means I will have to calculate the number of pixels required on the user's machine, which means the image could end up being very ugly...
Well, it will be on the next version... Ugly, but it will be there 🙁
[edit]Ready and uploaded[/edit]
This sucks =/
It means I will have to calculate the number of pixels required on the user's machine, which means the image could end up being very ugly...
Well, it will be on the next version... Ugly, but it will be there 🙁
[edit]Ready and uploaded[/edit]
Why in the world do people use custom font sizes! arg. It makes a lot of programs look ugly and distorted.
kichik, thanks for breathing new life into NSIS. Keep up the good work!
kichik, thanks for breathing new life into NSIS. Keep up the good work!
Fonts
It's not a game playing with font resolutions. On many notebook computers you have lcd displays with a standard resolution which is NOT 96 dpi (the standard for desktop computers).
The image resize problem is not so easy. You have to do complex transformations to resize an image with a goog result. This could not be an installer task. May be a parameter could turn off the resizing (e.g. AddBrandingImage top 40 noresize).
I like the new Branding Image very much. The setup procedure is the first contact a user has with the software. So an image in the installer can give a much better look.
---
What about setting fonts in the install options DLL. We launch the installer with a first page build with the install options DLL. Is there any chance to use the font (SetFont command) in the DLL?
May be it could be usefull to add another font - the LicenceFont. The licence agreement is a formatted text document. Changing the installer font can result in a re-formatting of the document.
It's not a game playing with font resolutions. On many notebook computers you have lcd displays with a standard resolution which is NOT 96 dpi (the standard for desktop computers).
The image resize problem is not so easy. You have to do complex transformations to resize an image with a goog result. This could not be an installer task. May be a parameter could turn off the resizing (e.g. AddBrandingImage top 40 noresize).
I like the new Branding Image very much. The setup procedure is the first contact a user has with the software. So an image in the installer can give a much better look.
---
What about setting fonts in the install options DLL. We launch the installer with a first page build with the install options DLL. Is there any chance to use the font (SetFont command) in the DLL?
May be it could be usefull to add another font - the LicenceFont. The licence agreement is a formatted text document. Changing the installer font can result in a re-formatting of the document.
Currently I am just using LoadImage(0, filename, IMAGE_BITMAP, width, height, LR_LOADFROMFILE). If you know another way that resiezs better, besides resizing it myself, please tell me.
In the latest version I released install options takes the font from the NSIS window.
In my next version I intend to make the license agreement use RTF instead of text. Correct me if I am wrong but this will give you the option to change the font. If not the font, at least its size.
In the latest version I released install options takes the font from the NSIS window.
In my next version I intend to make the license agreement use RTF instead of text. Correct me if I am wrong but this will give you the option to change the font. If not the font, at least its size.
Will it also be possible to click hyperlinks in the License Text?
If RTF supports it...
I have built another example of branding usage.
This time it uses a nsis header file I made that defines some very helpful macros.
This is all you need:
It also works with the uninstaller.
Have a look at gfx.nsi inside the zip file to see an example of usage.
This time it uses a nsis header file I made that defines some very helpful macros.
This is all you need:
!include "branding.nsh"
Function .onInit
!insertmacro BI_INIT $2
FunctionEnd
Function .onNextPage
!insertmacro BI_NEXT
FunctionEnd
Function .onPrevPage
!insertmacro BI_PREV
FunctionEnd
!insertmacro BI_LIST
!insertmacro BI_LIST_ADD "bitmap1.bmp"
!insertmacro BI_LIST_ADD "bitmap2.bmp"
!insertmacro BI_LIST_ADD "bitmap3.bmp"
!insertmacro BI_LIST_ADD "bitmap4.bmp"
!insertmacro BI_LIST_ADD "bitmap5.bmp"
!insertmacro BI_LIST_END It can be used from within sections if you wish too. Just add !insertmacro BI_NEXT anywhere.It also works with the uninstaller.
Have a look at gfx.nsi inside the zip file to see an example of usage.