There is just one thing that I would like to fix: The progress bar at the top of the last dialog box does not graphically display 100% complete even though a particular component Section does in fact complete 100% successfully.
I have searched this forum for any posts that might help me with this small problem but I could not find post that suggests a solution.
Please see the attachment to this post to see just how the progress bar fails to show a 100% completion even though the installed component Section does complete 100% successfully.
This happens only when the following installation component Section is run:
The progress bar does show 100% for the other component Section of my NSIS installation program. It is only for the Section above that it does not.
Section "Hub Unicode" HUB_U_SECTION_ID
; Set output path to the installation directory.
SetOutPath $INSTDIR
ClearErrors
File "..\Release\HubU.exe"
Push "Failed to copy HubU.exe into $OUTDIR"
Push "Succeeded in copying HubU.exe into $OUTDIR"
Call LogFailureWAbortOrSuccess
; Set the password into the registry.
ClearErrors
WriteRegStr HKLM "Software\Apex\Hub U" "pword" $ChosenPassword
${If} ${Errors}
!insertmacro _LogWrite 'Error while saving the password into the application registry!'
MessageBox MB_ICONSTOP|MB_OK \
'Error while saving the password into the application registry!'
${Else}
!insertmacro _LogWrite 'Successfully saved the password into the application registry!'
${EndIf}
; Set the Central into the registry.
ClearErrors
WriteRegStr HKLM "Software\Apex\Hub U" "central" $ChosenCentral
${If} ${Errors}
!insertmacro _LogWrite 'Error while saving the Central into the application registry!'
MessageBox MB_ICONSTOP|MB_OK 'Error while saving the Central into the application registry!'
${Else}
!insertmacro _LogWrite 'Successfully saved the Central into the application registry!'
${EndIf}
SetOverwrite off ; We don't want to overwrite a preexisting configuration file (for now)!
ClearErrors
File "..\HubU\hubu.cfg"
Push "Failed to copy hubu.cfg into $OUTDIR"
Push "Succeeded in copying hubu.cfg into $OUTDIR"
Call LogFailureWAbortOrSuccess
SetOverwrite on ; Resume overwriting preexisting files.
ClearErrors
CreateShortcut "$DESKTOP\HubU.lnk" "$OUTDIR\HubU.exe" \
"" "" "" SW_SHOWNORMAL "" "Hub Unicode For Apex"
Push "Failed to create a HubU shortcut onto the desktop at $DESKTOP"
Push "Succeeded in creating a HubU shortcut onto the desktop at $DESKTOP"
Call LogFailureWAbortOrSuccess
ClearErrors
CreateShortcut "$SMPROGRAMS\HubU.lnk" "$OUTDIR\HubU.exe" \
"" "" "" SW_SHOWNORMAL "" "Hub Unicode For Apex"
Push "Failed to create a HubU shortcut onto the startmenu at $SMPROGRAMS"
Push "Succeeded in creating a HubU shortcut onto the startmenu at $SMPROGRAMS"
Call LogFailureWAbortOrSuccess
; If Microsoft VC++ 12.0 is NOT installed on this host computer then we
; must run the appropriate Microsoft Visual C Redistributable in order
; to run Hub Unicode.
StrCmp $MSVCPPVersion12Installed 1 LeaveSection InstallRedistributable
LeaveSection:
Return
InstallRedistributable:
MessageBox MB_ICONINFORMATION|MB_OK \
"A Microsoft redistributable installation program must install support software that will allow $(^Name) to run.$\n$\nYou will have an opportunity to halt the execution of this Microsoft installation program if you wish to do so."
!insertmacro _LogWrite "Running the Microsoft VC++ 12.0 Redistributable installation program"
File "..\..\GlobalApexUnicodeFiles\vcredist_x86.exe"
Exec '$OUTDIR\vcredist_x86.exe'
SectionEnd
Thank you in advance for any help you can offer me!