Thank you Kichik,
I searched the archive for "banner" but came up empty. I only found frozen bubble and system hardware detection with that keyword.
My idea for an updating progress bar is simple and if it can tie into Afrow UKs solution then NSIS will never seem frozen unless it freezes.
I could understand your arguement of every system being different, finishing jobs at random times but if the progress bar never moves then it'll seem frozen from the start.
My idea is only cosmetic in trying to convince the user that even on executables in which could take a while to finish NSIS is indeed working, installing files, etc.
If an executable takes on average 60 seconds to complete then to be on the safe side and keep the progress bar moving the dev could simply state it will complete on average in two minutes (40% of the progress bar).
If the program then exceeds the two minute time limit and the progress bar stops dead I think its better it stops after two minutes than at execution.
I am not trying to argue anything, in no way trying to state this is a must have. I think NSIS is awesome and I truly appreciate your work on it. It is awesome the way it is now. This is just a wish to keep the progress bar moving.
Thank you Afrow UK,
It seems like I will have nothing but trouble with my current knowledge in trying to nest the "nsExec::ExecToLog" command. Currently the way I have it setup, it works as advertised.
Section "Project_Files" SEC01
SetOutPath "$INSTDIR"
SetOverwrite on
File "Project_Meat.7z"
File "Core_Unpack_Light.bat"
File "7za.exe"
ExecWait "$INSTDIR\Core_Unpack_Light.bat"
...
The above works. But the below presents an unsual problem my knowledge can't get me out of...
Section "Project_Files" SEC01
SetOutPath "$INSTDIR"
SetOverwrite on
File "Project_Meat.7z"
File "Core_Unpack_Light.bat"
File "7za.exe"
nsExec::ExecToLog "$INSTDIR\Core_Unpack_Light.bat"
Pop $0
StrCmp $0 0 0 +3
DetailPrint "Program shut itself down and never finished!"
Goto +2
DetailPrint "Program completed successfully!"
What seems to happen is NSIS now looks for the following files "Project_Meat.7z" "Core_Unpack_Light.bat" "7za.exe" in the executed directory. In other words, if I place those three files in the same directory where I execute the installer from those three files will do their magic. But no magic happens in the "$INSTDIR" directory the way ExecWait does it.
I really do not know what I am doing wrong... It might seem like a bug because its definitely bugging me but most likely I am doing something wrong. My current command in the "Core_Unpack_Light.bat" is
"7za.exe" x -y Project_Meat.7z
I feel really stumped. Just trying to prove to the user something is happening without displaying the dos box and the nsExec command looks like the trick. It just doesn't work for me... Someone help tell me where I am going wrong or please give me an idea on what to try.
Thank you