View Single Post
Old 29th March 2020, 20:28   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,287
1: I don't know whet you mean by "menu". The Modern UI has a welcome page if that is what you are talking about? Or perhaps the directory page?

2:
Quote:
Section
SetOutPath "$InstDir"
File /r "c:\myfiles\*.*"

SetOutPath "$WinDir\Something"
File /r "c:\mywindowsfiles\*.*"
SectionEnd
3: InstallDir

4: Not sure what you mean.

You have "OutFile" twice in your script, only the last one is used.

You can check for x86 XP like this:

PHP Code:
!include WinVer.nsh
!include x64.nsh
Function .onInit
${IfNot} ${IsWinXP}
${
OrIfNot} ${IsNativeIA32} ; i386 32-bit
  MessageBox MB_ICONSTOP 
"XP only blah blah"
  
Quit 
${EndIf} 
FunctionEnd 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote