;Create installation of applications !define VERSION "1.0.0" Name "Install Program ${VERSION}" AllowRootDirInstall true ; The name of the installer Name "Install" ; The file to write OutFile "Install.exe" ; Adds an XP manifest to the installer XPStyle on ;making function calls Section "Calling Function" call createdir call func1 call func2 call func3 call func4 SectionEnd ; Dirs to create Function createdir StrCpy $R0 "C:" CreateDirectory "$R0\asch" CreateDirectory "$R0\asch\dir" CreateDirectory "$R0\asch\dir2" CreateDirectory "$R0\asch\dir3" CreateDirectory "$R0\asch\phpmyadmin" FunctionEnd ; The stuff to install Function "func1" ; Install dir ; InstallDir "c:\" ; Set output path to the installation ; directory. SetOutPath "C:\asch\dir" ; Put files here File /r "C:\php\*.*" FunctionEnd Function "func2" ; Set output path to the installation directory. SetOutPath "C:\asch\dir2" ; Put file here File /r "C:\work\*.*" FunctionEnd Function "func3" ; Set output path to the installation directory. SetOutPath "C:\asch\dir3" ; Put file here File /r "c:\program files\apache group\apache\htdocs\work" FunctionEnd Function "func4" ; Set output path to the installation directory. SetOutPath "C:\asch\dir3" ; Put file here File /r "c:\program files\apache group\apache\htdocs\work2" FunctionEnd