|
|
#1 |
|
Member
Join Date: Jun 2005
Location: Colorado Springs, CO
Posts: 94
|
Can DetailPrint be used within .onInit?
Can the DetailPrint function be used within .onInit?
It seems only available after .onInit ... or I am doing something wrong or leaving something out??? Test script below that attemts to use DetailPrint .... which works during Section ; DetailPrintTest.nsi based on example1.nsi Name "DetailPrintTest" OutFile "DetailPrintTest.exe" InstallDir $PROGRAMFILES\Test ShowInstDetails show ;-------------------------------- ; Pages Page directory Page instfiles ;-------------------------------- Section Anonymous ;No components page, name is not important SetOutPath $INSTDIR File DetailPrintTest.nsi DetailPrint "Reached anonymous section" SectionEnd ; end the section ;-------------------------------- Function .onInit MessageBox MB_OK "Reached .onInit $\r$\n \ SMPROGRAMS: $SMPROGRAMS $\r$\n \ InstallDirectory: $INSTDIR " DetailPrint "Reached .onInit" DetailPrint "Install Dir: $INSTDIR" DetailPrint "Sm Programs: $SMPROGRAMS" FunctionEnd ;-------------------------------- Function .onGUIInit MessageBox MB_OK "Reached .onGUIInit $\r$\n \ SMPROGRAMS: $SMPROGRAMS $\r$\n \ InstallDirectory: $INSTDIR " DetailPrint "Reached .onGUIINit section" FunctionEnd |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|