; iExecute.nsi ; ; This script is perhaps one of the simplest NSIs you can make. All of the ; optional settings are left to their default settings. The instalelr simply ; prompts the user asking them where to install, and drops of makensisw.exe ; there. ; ; The name of the installer Name "iExecute" ; The file to write OutFile "iExecute_setup.exe" ; The default installation directory InstallDir $PROGRAMFILES\iExecute ; The text to prompt the user to enter a directory ComponentText "This will install iExecute on your computer. Select which optional things you want installed." ; The text to prompt the user to enter a directory DirText "Choose a directory to install in to:" ; Additional Parameters InstProgressFlags smooth ; The stuff to install Section "iExectue - ActiveX (required)" SetDetailsView show ; Set output path to the installation directory. SetOutPath $INSTDIR ; Put file there File iExecute.dll File iExecuteFrm.htm File Readme.txt File Test.exe ; Write Uninstaller WriteUninstaller "uninstall.exe" SectionEnd ; end the section ; optional section creates start menu shortcuts Section "Start Menu Shortcuts" CreateDirectory "$SMPROGRAMS\iExecute" CreateShortCut "$SMPROGRAMS\iExecute\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 CreateShortCut "$SMPROGRAMS\iExecute\iExecute(sample).lnk" "$INSTDIR\iExecuteFrm.htm" "" "$INSTDIR\iExecuteFrm.htm" 0 SectionEnd Section "Autoregistrate ActiveX DLL's" UnRegDLL "$INSTDIR\iExecute.dll" Sleep 1000 RegDLL "$INSTDIR\iExecute.dll" Sleep 1000 SectionEnd ; uninstall stuff UninstallText "This will uninstall iExecute. Hit next to continue." ; special uninstall section. Section "Uninstall" ; UnReg DLL Files ;UnRegDLL "$INSTDIR\iExecute.dll" Sleep 1000 ; remove files Delete $INSTDIR\iExecuteFrm.htm Delete $INSTDIR\Test.exe Delete $INSTDIR\Readme.txt Delete $INSTDIR\iExecute.dll ; MUST REMOVE UNINSTALLER, too Delete $INSTDIR\uninstall.exe ; remove shortcuts, if any. Delete "$SMPROGRAMS\iExecute\*.*" ; remove directories used. RMDir "$SMPROGRAMS\iExecute" RMDir "$INSTDIR" SectionEnd ; eof