!define /file OSGSoNumber $%TEMP%\osg-so-number.txt
!define /file OSGVersion $%TEMP%\osg-version.txt
+!define /file FGVersion flightgear\version
!echo "osg-so is ${OSGSoNumber}"
Name "FlightGear Nightly"
-OutFile fgfs_win32_nightly.exe
+OutFile fgfs_win32_nightly_${FGVersion}.exe
; use LZMA for best compression
SetCompressor /FINAL /SOLID lzma
SetOutPath $INSTDIR\osgPlugins-${OSGVersion}
File ${OSGPluginsDir}\osgdb_ac.dll
File ${OSGPluginsDir}\osgdb_osg.dll
+ File ${OSGPluginsDir}\osgdb_osga.dll
File ${OSGPluginsDir}\osgdb_3ds.dll
File ${OSGPluginsDir}\osgdb_mdl.dll
File ${OSGPluginsDir}\osgdb_jpeg.dll
File ${OSGPluginsDir}\osgdb_rgb.dll
File ${OSGPluginsDir}\osgdb_png.dll
+ File ${OSGPluginsDir}\osgdb_dds.dll
File ${OSGPluginsDir}\osgdb_txf.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osg.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osganimation.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgfx.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgmanipulator.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgparticle.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgshadow.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgsim.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgterrain.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgtext.dll
+ File ${OSGPluginsDir}\osgdb_serializers_osgvolume.dll
+ File ${OSGPluginsDir}\osgdb_deprecated_osg.dll
+ File ${OSGPluginsDir}\osgdb_deprecated_osgparticle.dll
Exec '"$INSTDIR\fgrun.exe" --silent --fg-exe="$INSTDIR\fgfs.exe" --ts-exe="$INSTDIR\terrasync.exe" '
CreateDirectory "$SMPROGRAMS\FlightGear"
CreateShortCut "$SMPROGRAMS\FlightGear\FlightGear-nightly.lnk" "$INSTDIR\fgrun.exe"
+
+
WriteUninstaller "$INSTDIR\FlightGear_Uninstall.exe"
WriteRegStr HKLM ${UninstallKey} "DisplayName" "FlightGear Nightly"
- WriteRegStr HKLM ${UninstallKey} "DisplayVersion" "2.1"
+ WriteRegStr HKLM ${UninstallKey} "DisplayVersion" "${FGVersion}"
WriteRegStr HKLM ${UninstallKey} "UninstallString" "$INSTDIR\FlightGear_Uninstall.exe"
WriteRegStr HKLM ${UninstallKey} "UninstallPath" "$INSTDIR\FlightGear_Uninstall.exe"
WriteRegDWORD HKLM ${UninstallKey} "NoModify" 1
DeleteRegKey HKLM ${UninstallKey}
SectionEnd
-
\ No newline at end of file
+