In the new release (2.0a4), both the required and available space text are inversed (read : Available Space : 1.8mb, Required Space : x GB !)...
I just realised that this also applies to 2.0a3 as well. I was previously having a2, that release DID NOT have this small bug.
NSIS 2 - Beta 0 is out!
202 posts
bug in NSIS 2 a4
If DirText is not set then the installation starts automatically.
(Posted on SourceForge, too)
Example:
LoadLanguageFile German.nlf
Name "TEST"
OutFile "Setup.exe"
Caption "TEST"
Icon setup.ico
CRCCheck on
InstallDir '$PROGRAMFILES\Test'
DirShow show
AutoCloseWindow true
ShowInstDetails show
ShowUninstDetails show
Now the section "TEST" and "Uninstall"
If DirText is not set then the installation starts automatically.
(Posted on SourceForge, too)
Example:
LoadLanguageFile German.nlf
Name "TEST"
OutFile "Setup.exe"
Caption "TEST"
Icon setup.ico
CRCCheck on
InstallDir '$PROGRAMFILES\Test'
DirShow show
AutoCloseWindow true
ShowInstDetails show
ShowUninstDetails show
Now the section "TEST" and "Uninstall"
I have answered both of you at SourceForge. There is no need to post here too if you post on SourceForge.
Hi kichik,
thanks for your answer.
But it's outdated to use DirText.
Now I'm using five different language files and so I don't use DirText. You should look at this.
Ramon 😛
thanks for your answer.
But it's outdated to use DirText.
Now I'm using five different language files and so I don't use DirText. You should look at this.
Ramon 😛
I got a strange problem using the latest CVS version.
Makensis.exe Revision 1.8 works fine, but later revisions don't work at all. When I try to start a compiled installer, it just enters an infinite loop (100% CPU usage), and nothing happens. A MessageBox at the beginning of onInit doesn't show up.
Makensis.exe Revision 1.8 works fine, but later revisions don't work at all. When I try to start a compiled installer, it just enters an infinite loop (100% CPU usage), and nothing happens. A MessageBox at the beginning of onInit doesn't show up.
I guess I only uploaded the source that solves this problem... New makensis.exe that should solve this problem is up (at CVS). Please use SourceForge next time.
Originally posted by kichikThanks 😁
I guess I only uploaded the source that solves this problem... New makensis.exe that should solve this problem is up (at CVS). Please use SourceForge next time.
Alpha 5 is finally out!
Please post bug reports and feature requests at SourceForge.
Change log:
Please post bug reports and feature requests at SourceForge.
Change log:
- Added UseOuterUIItem
- Enahanced ChangeUI
- Enahanced SetDlgItemText
- Added one-section.nsi example file
- Optimized Ximon's code for plug-in DLLs (back to 37KB)
- If default user language doesn't fit exactly, will try to find primary language match
- Fixed some strings that got reaplaced (space available and required etc.)
- Compiles without MS Platform SDK
- Included Spanish.nlf
- Included MagicLime.exe by snowchyld
The new plugin code is not working anymore in alpha 5 when using multiple plugins in one script. I always get an error message saying the the dll could not be written.
Attached is a slighlty modified test.nsi of the install options demo which shows this bug.
Attached is a slighlty modified test.nsi of the install options demo which shows this bug.
Thanks, I will fix this ASAP.
Please use SourceForge for bug reporting. You don't even need to sign up to post bugs.
(edit) OK, here is the deal with this bug. It only happens if the runtime first plug-in command is called in a line after another plug-in command in the script.
That means that if you have a plug-in command in .onInit and in a Section but the Section comes first in the script itself this will happen.
The temporary solution until I work this out is just putting the runtime first plug-in command before any other plug-in command in the script.
(edit2) if two different DLLs are used the second one can not extracted =/
At least this one is easier then the first... New version should be here in about 30 minutes.
Please use SourceForge for bug reporting. You don't even need to sign up to post bugs.
(edit) OK, here is the deal with this bug. It only happens if the runtime first plug-in command is called in a line after another plug-in command in the script.
That means that if you have a plug-in command in .onInit and in a Section but the Section comes first in the script itself this will happen.
The temporary solution until I work this out is just putting the runtime first plug-in command before any other plug-in command in the script.
(edit2) if two different DLLs are used the second one can not extracted =/
At least this one is easier then the first... New version should be here in about 30 minutes.
Bug #2 fixed on CVS version.
I already have an idea of how to solve the first bug. Alpha 6 with both of these fixes should be out soon.
I already have an idea of how to solve the first bug. Alpha 6 with both of these fixes should be out soon.
Seems like the infinite loop bug from the beta version is back 🙁
Alpha 5 is down for now until I sort things out.
Alpha 5 is down for now until I sort things out.
Alpha 6 is out. Bugs fixed.
CVS will be updated tomorrow because I have to go now.
[edit]CVS updated[/edit]
Good night,
KiCHiK
CVS will be updated tomorrow because I have to go now.
[edit]CVS updated[/edit]
Good night,
KiCHiK
Could you update the gfx.nsi file?It's been a while since you last updated it 🙂
And btw, what could i use SetDlgItemText for?I'm still scratching my head at what it does.
And btw, what could i use SetDlgItemText for?I'm still scratching my head at what it does.
one-section.nsi file that is included with alpha is outdated... Please use the one that is here.
mlbl, what is there to update in gfx.nsi? It works just fine... When I finish working with Joost on the InstallSheild look you will have a very extensive example, don't worry 😁
SetDlgItemText is meant for you to set custom static text controls that are not used by NSIS. For example, you can put a static text control in IDD_INST and in .onNextPage set it to the page number.
mlbl, what is there to update in gfx.nsi? It works just fine... When I finish working with Joost on the InstallSheild look you will have a very extensive example, don't worry 😁
SetDlgItemText is meant for you to set custom static text controls that are not used by NSIS. For example, you can put a static text control in IDD_INST and in .onNextPage set it to the page number.
Ok, i understand now 🙂
Alpha 6 is out. Bugs fixed.Great work 🙂
One little question:
The docs say: "Added preserv file attribute option to File command", but the documentation of the "file" command doesnt mention this feature.
Could you please update the docs for this? Thanks.
Will do.
Is there a way to make XPStyle on and InstProgressFlags smooth working together ? It seems that InstProgressFlags smooth only works without XPStyle.
Originally posted by mlblNo XPStyle will not support the Smooth option.. Its a limitation of the new 6.0 controls that don't allow it i belive.
Is there a way to make XPStyle on and InstProgressFlags smooth working together ? It seems that InstProgressFlags smooth only works without XPStyle.
Bug notice: giving a RTF file as the license data will result in showing the "source code" of the RTF instead of rendering the RTF under Windows 9x. A fix will be available as soon as possible.
And as you can see here, another bug relating to MBCS to Unicode conversion has been fixed (SetFont "Korean/Chinese/Japanese name" #).
And as you can see here, another bug relating to MBCS to Unicode conversion has been fixed (SetFont "Korean/Chinese/Japanese name" #).
RTF works under Win ME
Pre alpha 7 is available at the CVS.
Please let me know if the infinite loop bug is back. I am pretty sure it shouldn't come back, but if it is please let me know ASAP.
It is only a pre alpha version because I still have some stuff to do such as updating the documents, writing a DLL that will show a dialog to allow the user to select the language, updating InstallOptions and making some new UIs.
Thanks a lot to Dave Laundon (eccles) for optimizing the header and keeping it at 37KB.
Please post all bugs and new feature requests at SourceForge.
Please let me know if the infinite loop bug is back. I am pretty sure it shouldn't come back, but if it is please let me know ASAP.
It is only a pre alpha version because I still have some stuff to do such as updating the documents, writing a DLL that will show a dialog to allow the user to select the language, updating InstallOptions and making some new UIs.
- Language can be choosen from .onInit
- Replaced SetDlgItemText by GetDlgItem
- SendMessage WM_SETTEXT treats lParam as a string and not a number
- Added CreateFont
- Checkbox is only required in IDD_DIR if logging is enabled
- Not specifying any language now really causes the script compiler to use the last used language
- Fixed a bug with MBCS and the uninstaller text
- Fixed a bug that caused RTF not to show on Windows 9x
- Added a dialog that shows up if compress whole is used and initial uncompressing lasts longer than a second.
- MBCS to Unicode and Unicode to MBCS conversion bugs fixed
- Added .onStaticCtlBkColor and un.onStaticCtlBkColor
Thanks a lot to Dave Laundon (eccles) for optimizing the header and keeping it at 37KB.
Please post all bugs and new feature requests at SourceForge.
Small bug fixed. EXEDIR, CMDLINE and others had wrong values. Fixed in the latest CVS version.
Another note. When using MessageBox in .onInit you will get the "NSIS ERROR" caption because no language was selected yet so it doesn't know which caption to use.
I have uploaded another version (ui.c and makensis.exe changed) that uses the default language (first defined in the script) in .onInit.
I have uploaded another version (ui.c and makensis.exe changed) that uses the default language (first defined in the script) in .onInit.
Hi kichik,
I'm using the latest CVS version.
I'm using the following Code:
CreateDirectory "$SMPROGRAMS\SMTPAuth"
CreateShortCut "$SMPROGRAMS\SMTPAuth\SMTPAuth.lnk" "$INSTDIR\SMTPAuth.exe"
Now it puts the shortcuts in the Startmenu\Programs\AutoRun\SMTPAuth folder.
Is the $SMPROGRAMS var wrong set. It worked in the other versions.
(It takes the same path in the uninstaller)
Windows ME, German
I'm using the latest CVS version.
I'm using the following Code:
CreateDirectory "$SMPROGRAMS\SMTPAuth"
CreateShortCut "$SMPROGRAMS\SMTPAuth\SMTPAuth.lnk" "$INSTDIR\SMTPAuth.exe"
Now it puts the shortcuts in the Startmenu\Programs\AutoRun\SMTPAuth folder.
Is the $SMPROGRAMS var wrong set. It worked in the other versions.
(It takes the same path in the uninstaller)
Windows ME, German
Thanks Ramoon, latest CVS version fixes this.
You don't have to post the bug both here and at SourceForge, SourceForge is enough. Don't worry, I get an E-Mail for every bug report there so I won't miss it.
You don't have to post the bug both here and at SourceForge, SourceForge is enough. Don't worry, I get an E-Mail for every bug report there so I won't miss it.
Latest version really lets you choose the language from .onInit.
how do you use onStaticCtlBkColor?
Function .onStaticCtlBkColor
; $0 contains the HWND of the control that
; needs a bk color
; $0 should contain the color of the
; control when the function finishes
Push $1
GetDlgItem $1 $HWNDPARENT 1028 ; branding text control
StrCmp $1 $0 0 +3
StrCpy $0 0x00BBGGRR
Goto done
StrCpy $0 -1 ; use default
done: Pop $1
FunctionEnd