; Script generated by the HM NIS Edit Script Wizard. ; HM NIS Edit Wizard helper defines !define PRODUCT_NAME "Digitale Fotografie" !define PRODUCT_KEYNAME "Ratgeber digital" !define PRODUCT_PUBLISHER "Mycompany,Inc.1234567890" !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\fspprojectorreglocation1234567890.exe" !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" ; MUI 1.67 compatible ------ !include "${NSISDIR}\System.nsh" ; MUI Settings !define MUI_ABORTWARNING !define MUI_ICON "${NSISDIR}\install.ico" !define MUI_UNICON "${NSISDIR}\uninstall.ico" ; Welcome page !insertmacro MUI_PAGE_WELCOME ; License page !insertmacro MUI_PAGE_LICENSE "Notes1234567890.rtf" ; Components Page !insertmacro MUI_PAGE_COMPONENTS ; Directory page !insertmacro MUI_PAGE_DIRECTORY ; Instfiles page !insertmacro MUI_PAGE_INSTFILES ; Finish page !define MUI_FINISHPAGE_RUN "$INSTDIR\fspprojector1234567890.exe" !insertmacro MUI_PAGE_FINISH ; Uninstaller pages !insertmacro MUI_UNPAGE_INSTFILES ; Language files !insertmacro MUI_LANGUAGE "Language1234567890" ; MUI end ------ Name "${PRODUCT_NAME}" OutFile "fspout1234567890.exe" InstallDir "$PROGRAMFILES\${PRODUCT_KEYNAME}\${PRODUCT_NAME}" InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" ShowInstDetails show ShowUnInstDetails show Section "Digitale Fotografie Anwendung" SEC01 SetOutPath "$INSTDIR" SetOverwrite ifnewer File "c:\fspprojector1234567890.exe" screensaverstuff1234567890 CreateDirectory "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}" CreateShortCut "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}\Digitale Fotografie.lnk" "$INSTDIR\fspprojector1234567890.exe" CreateShortCut "$DESKTOP\Ratgeber digital - Digitale Fotografie.lnk" "$INSTDIR\fspprojector1234567890.exe" packedfiles1234567890 SectionEnd Section "Adobe Acrobat Reader 7" SEC02 ; For information on Deploying acrobat reader 8 see http://www.appdeploy.com/packages/detail.asp?id=915 File "prerequisites\AdbeRdr709_DLM_de_DE.exe" ExecWait 'AdbeRdr709_DLM_de_DE.exe /sPB /rs /l /msi"/qb-! /norestart /log c:\acrobat7.log ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"' SectionEnd Section -AdditionalIcons CreateShortCut "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\uninst.exe" SectionEnd Section -Post WriteUninstaller "$INSTDIR\uninst.exe" WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\fspprojector1234567890.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\fspprojector1234567890.exe" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" fsp1234567890execfile SectionEnd Function un.onUninstSuccess HideWindow MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer." FunctionEnd Function un.onInit MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2 Abort FunctionEnd Section Uninstall Delete "$INSTDIR\${PRODUCT_NAME}.url" Delete "$INSTDIR\uninst.exe" packedfilesuninstall1234567890 Delete "$INSTDIR\fspprojector1234567890.exe" Delete "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}\Uninstall.lnk" Delete "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}\Digitale Fotografie.lnk" Delete "$DESKTOP\Ratgeber digital - Digitale Fotografie.lnk" ; Delete "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}\MyFSPApplication1234567890.lnk" RMDir "$SMPROGRAMS\${PRODUCT_KEYNAME}\${PRODUCT_NAME}" RMDir "$INSTDIR" DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" SetAutoClose true SectionEnd