Changeset 915

Show
Ignore:
Timestamp:
11/10/07 11:25:39 (1 year ago)
Author:
glslang
Message:

+ build and installer updates

Location:
trunk
Files:
2 removed
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/installer/jahplayer.nsi

    r907 r915  
    44 
    55!ifndef VERSION 
    6   ;!define /date VERSION "%Y%m%d" 
    7   !define VERSION "0.0.0" 
    8 !endif 
    9  
    10 !ifndef OLIB_VERSION 
    11   !define OLIB_VERSION 0.4.1 
     6  !define VERSION 0.3.0 
    127!endif 
    138 
     
    2520InstType "Full" 
    2621 
    27 InstallDir $PROGRAMFILES\jahshaka 
    28 InstallDirRegKey HKLM Software\jahPlayer "" 
     22InstallDir $PROGRAMFILES\Jahshaka 
     23InstallDirRegKey HKLM Software\JahPlayer "" 
    2924 
    3025;-------------------------------- 
     
    3530!include "MUI.nsh" 
    3631!include "Sections.nsh" 
    37 !include "add_to_path.nsh" 
    38 !include "write_env_str.nsh" 
    3932 
    4033;Names 
    41 Name "jahPlayer" 
    42 Caption "jahPlayer (v.${VERSION}) Setup" 
     34Name "JahPlayer" 
     35Caption "JahPlayer (v.${VERSION}) Setup" 
    4336 
    4437;Interface Settings 
     
    5245 
    5346;Pages 
    54 !define MUI_WELCOMEPAGE_TITLE "Welcome to the jahPlayer (v.${VERSION}) Setup Wizard" 
    55 !define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of jahPlayer.\r\n\r\n$_CLICK" 
     47!define MUI_WELCOMEPAGE_TITLE "Welcome to the JahPlayer (v.${VERSION}) Setup Wizard" 
     48!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of JahPlayer.\r\n\r\n$_CLICK" 
    5649 
    5750!insertmacro MUI_PAGE_WELCOME 
     
    7669Function .onInit 
    7770 
    78     ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\jahPlayer" "UninstallString" 
     71    ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JahPlayer" "UninstallString" 
    7972    StrCmp $R0 "" done 
    8073    MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \ 
    81     "jahPlayer is already installed. $\n$\nClick `OK` to remove the \ 
     74    "JahPlayer is already installed. $\n$\nClick `OK` to remove the \ 
    8275    previous version or `Cancel` to cancel this upgrade." \ 
    8376    IDOK uninst 
     
    8780    ClearErrors 
    8881    SetDetailsPrint textonly 
    89     DetailPrint "Uninstalling previous jahPlayer installation..." 
     82    DetailPrint "Uninstalling previous JahPlayer installation..." 
    9083    SetDetailsPrint listonly 
    9184    ExecWait '$R0 _?=$INSTDIR' 
     
    9588  no_remove_uninstaller: 
    9689    MessageBox MB_ICONEXCLAMATION \ 
    97     "Unable to remove previous version of jahPlayer$\nTry uninstalling via the control panel." 
     90    "Unable to remove previous version of JahPlayer$\nTry uninstalling via the control panel." 
    9891    Abort 
    9992   
     
    115108 
    116109  SetOutPath $INSTDIR 
    117   ;File "$%VSINSTALLDIR%\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe" 
    118110  File "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe" 
    119   ExecWait '"$INSTDIR\vcredist_x86.exe /q:a"' 
    120  
    121   SetDetailsPrint both 
    122  
    123 SectionEnd 
    124  
    125 Section "MSXML4 SP2" msxml2 
    126  
    127   SectionIn 1 
    128   SetOutPath $INSTDIR 
    129  
    130   SetOverwrite on 
    131   SetShellVarContext all 
    132  
    133   SetDetailsPrint textonly 
    134   DetailPrint "Installing MSXML4 SP2..." 
    135   SetDetailsPrint listonly 
    136  
    137   SetOutPath $INSTDIR 
    138   File "$%OLIBS_DEVEL_ROOT%\installer\msxml4.msi" 
    139  
    140   ExecWait 'MsiExec.exe /qn /x{2AEBE10C-D819-4EBF-BC60-03BF2327D340}'   ; uninstall MSXML4 if it's there 
    141   ExecWait 'MsiExec.exe /qn /x{35343FF7-939B-401A-87B3-FF90A5123D88}'   ; uninstall MSXML4 SP1 if it's there 
    142   ExecWait 'MsiExec.exe /qn /i "$INSTDIR\msxml4.msi"' 
    143    
    144   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "msxml2" "" 
    145  
    146   SetDetailsPrint both 
    147  
    148 SectionEnd 
     111  File "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\product.xml" 
     112  ExecWait '"$INSTDIR\vcredist_x86.exe" /q:a /c:"msiexec /i vcredist.msi /qn"'  
     113 
     114  SetDetailsPrint both 
     115 
     116SectionEnd 
     117 
     118;Section "MSXML4 SP2" msxml2 
     119 
     120;  SectionIn 1 
     121;  SetOutPath $INSTDIR 
     122 
     123;  SetOverwrite on 
     124;  SetShellVarContext all 
     125 
     126;  SetDetailsPrint textonly 
     127;  DetailPrint "Installing MSXML4 SP2..." 
     128;  SetDetailsPrint listonly 
     129 
     130;  SetOutPath $INSTDIR 
     131;  File "$%OLIBS_DEVEL_ROOT%\installer\msxml4.msi" 
     132 
     133;  ExecWait 'MsiExec.exe /qn /x{2AEBE10C-D819-4EBF-BC60-03BF2327D340}'  ; uninstall MSXML4 if it's there 
     134;  ExecWait 'MsiExec.exe /qn /x{35343FF7-939B-401A-87B3-FF90A5123D88}'  ; uninstall MSXML4 SP1 if it's there 
     135;  ExecWait 'MsiExec.exe /qn /i "$INSTDIR\msxml4.msi"' 
     136   
     137;  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "msxml2" "" 
     138 
     139;  SetDetailsPrint both 
     140 
     141;SectionEnd 
    149142 
    150143Section "OpenAL" openal 
     
    168161SectionEnd 
    169162 
    170 Section "OpenLibraries" olib 
    171  
    172   SectionIn 1 
     163Section "JahPlayer" SecCore 
     164 
     165  SectionIn 1 2 3 RO 
    173166  SetOutPath $INSTDIR 
    174167 
    175168  SetOverwrite on 
    176169  SetShellVarContext all 
    177  
    178   SetDetailsPrint textonly 
    179   DetailPrint "Installing OpenLibraries..." 
    180   SetDetailsPrint listonly 
    181  
    182   SetOutPath $INSTDIR 
    183   File "$%OLIBS_DEVEL_ROOT%\installer\openlibraries-${OLIB_VERSION}-runtime.exe" 
    184   ExecWait '"$INSTDIR\openlibraries-${OLIB_VERSION}-runtime.exe" /S /D' 
    185  
    186   SetDetailsPrint both 
    187  
    188 SectionEnd 
    189  
    190 Section "jahPlayer" SecCore 
    191  
    192   SectionIn 1 2 3 RO 
    193   SetOutPath $INSTDIR 
    194  
    195   SetOverwrite on 
    196   SetShellVarContext all 
    197    
    198   SetDetailsPrint textonly 
    199   DetailPrint "Installing jahPlayer..." 
    200   SetDetailsPrint listonly 
    201  
    202   SetOutPath $INSTDIR\jahPlayer 
    203   File /r "..\jahPlayer\dist\*" 
    204  
    205   SetOutPath $INSTDIR\jahTools 
    206   SetOutPath $INSTDIR\jahTools\encoder 
    207   File /r "..\jahTools\encoder\dist\*" 
    208  
    209   SetDetailsPrint both 
    210  
    211   SetOutPath $INSTDIR\jahPlayer 
    212   CreateDirectory "$SMPROGRAMS\jahPlayer" 
    213   CreateShortCut "$SMPROGRAMS\jahPlayer\jahPlayer.lnk" "$INSTDIR\jahPlayer\jahPlayer.exe" 
    214   CreateShortCut "$DESKTOP\jahPlayer.lnk" "$INSTDIR\jahPlayer\jahPlayer.exe" 
    215  
    216   SetOutPath $INSTDIR 
    217   CreateShortCut "$SMPROGRAMS\jahPlayer\Uninstall jahPlayer.lnk" "$INSTDIR\uninst-jahplayer.exe" 
    218  
    219   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\jahPlayer" "DisplayName" "jahPlayer" 
    220   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\jahPlayer" "UninstallString" "$INSTDIR\uninst-jahPlayer.exe" 
    221  
    222   Push "JAHTOOLSPATH" 
    223   Push "$INSTDIR\jahTools" 
    224   Call WriteEnvStr 
     170   
     171  SetDetailsPrint textonly 
     172  DetailPrint "Installing JahPlayer..." 
     173  SetDetailsPrint listonly 
     174 
     175  SetOutPath $INSTDIR\JahPlayer 
     176  File "..\Release\jahplayer.exe" 
     177  File "..\Release\*.dll" 
     178  File "..\Release\*.pyd" 
     179 
     180  SetOutPath $INSTDIR\JahPlayer 
     181  File "..\jahplayer\*.ui" 
     182  File "..\jahplayer\*.py" 
     183  File "..\jahplayer\*.jpg" 
     184  File "..\jahplayer\*.png" 
     185  File "..\Release\jahplayer.exe" 
     186  File "..\Release\*.dll" 
     187  File "..\Release\*.pyd" 
     188  File "C:\Python25\python.exe" 
     189  File /r "C:\Python25\Lib\*" 
     190  File /r "C:\Program Files\OpenLibraries\bin" 
     191 
     192;  SetOutPath $INSTDIR\JahTools 
     193;  SetOutPath $INSTDIR\JahTools\encoder 
     194;  File /r "..\JahTools\encoder\dist\*" 
     195 
     196  SetDetailsPrint both 
     197 
     198  SetOutPath $INSTDIR\JahPlayer 
     199  CreateDirectory "$SMPROGRAMS\JahPlayer" 
     200  CreateShortCut "$SMPROGRAMS\JahPlayer\JahPlayer.lnk" "$INSTDIR\JahPlayer\JahPlayer.exe" 
     201  CreateShortCut "$DESKTOP\JahPlayer.lnk" "$INSTDIR\JahPlayer\JahPlayer.exe" 
     202 
     203  SetOutPath $INSTDIR 
     204  CreateShortCut "$SMPROGRAMS\JahPlayer\Uninstall JahPlayer.lnk" "$INSTDIR\uninst-jahplayer.exe" 
     205 
     206  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JahPlayer" "DisplayName" "JahPlayer" 
     207  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JahPlayer" "UninstallString" "$INSTDIR\uninst-JahPlayer.exe" 
     208 
     209;  Push "JAHTOOLSPATH" 
     210;  Push "$INSTDIR\jahTools" 
     211;  Call WriteEnvStr 
    225212 
    226213SectionEnd 
     
    228215Section -post 
    229216 
    230         WriteUninstaller $INSTDIR\uninst-jahPlayer.exe 
     217        WriteUninstaller $INSTDIR\uninst-jahplayer.exe 
    231218 
    232219SectionEnd 
     
    255242         
    256243  ;-- Remove registry keys 
    257   DeleteRegKey HKLM "Software\jahPlayer" 
    258   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\jahPlayer" 
     244  DeleteRegKey HKLM "Software\JahPlayer" 
     245  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JahPlayer" 
    259246 
    260247  ;-- remove JAHTOOLSPATH 
    261   Push "JAHTOOLSPATH" 
    262   Call un.DeleteEnvStr 
     248;  Push "JAHTOOLSPATH" 
     249;  Call un.DeleteEnvStr 
    263250 
    264251  ;-- Remove desktop and start->Programs->jahPlayer shortcuts 
    265   Delete $DESKTOP\jahPlayer.lnk 
    266   RMDir /r $SMPROGRAMS\jahPlayer 
     252  Delete $DESKTOP\JahPlayer.lnk 
     253  RMDir /r $SMPROGRAMS\JahPlayer 
    267254 
    268255  ;-- Remove install directory 
     
    272259  
    273260SectionEnd 
    274  
    275  
  • trunk/jahplayer/jahplayer_vc8.vcproj

    r914 r915  
    1818                <Configuration 
    1919                        Name="Debug|Win32" 
    20                         OutputDirectory="$(ConfigurationName)" 
     20                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
    2121                        IntermediateDirectory="$(ConfigurationName)" 
    2222                        ConfigurationType="1" 
     
    9696                <Configuration 
    9797                        Name="Release|Win32" 
    98                         OutputDirectory="$(ConfigurationName)" 
     98                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
    9999                        IntermediateDirectory="$(ConfigurationName)" 
    100100                        ConfigurationType="1" 
  • trunk/jahwidgets/src/qt3/python/python_vc8.vcproj

    r912 r915  
    1818                <Configuration 
    1919                        Name="Debug|Win32" 
    20                         OutputDirectory="Debug" 
    21                         IntermediateDirectory="Debug" 
     20                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     21                        IntermediateDirectory="$(ConfigurationName)" 
    2222                        ConfigurationType="2" 
    2323                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
     
    105105                <Configuration 
    106106                        Name="Release|Win32" 
    107                         OutputDirectory="Release" 
    108                         IntermediateDirectory="Release" 
     107                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     108                        IntermediateDirectory="$(ConfigurationName)" 
    109109                        ConfigurationType="2" 
    110110                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
  • trunk/jahwidgets/src/qt3/themes/themes_vc8.vcproj

    r912 r915  
    1818                <Configuration 
    1919                        Name="Debug|Win32" 
    20                         OutputDirectory="Debug" 
    21                         IntermediateDirectory="Debug" 
     20                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     21                        IntermediateDirectory="$(ConfigurationName)" 
    2222                        ConfigurationType="2" 
    2323                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
     
    104104                <Configuration 
    105105                        Name="Release|Win32" 
    106                         OutputDirectory="Release" 
    107                         IntermediateDirectory="Release" 
     106                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     107                        IntermediateDirectory="$(ConfigurationName)" 
    108108                        ConfigurationType="2" 
    109109                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
  • trunk/jahwidgets/src/qt3/widgets/widgets_vc8.vcproj

    r912 r915  
    1818                <Configuration 
    1919                        Name="Debug|Win32" 
    20                         OutputDirectory="Debug" 
    21                         IntermediateDirectory="Debug" 
     20                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     21                        IntermediateDirectory="$(ConfigurationName)" 
    2222                        ConfigurationType="2" 
    2323                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
     
    105105                <Configuration 
    106106                        Name="Release|Win32" 
    107                         OutputDirectory="Release" 
    108                         IntermediateDirectory="Release" 
     107                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     108                        IntermediateDirectory="$(ConfigurationName)" 
    109109                        ConfigurationType="2" 
    110110                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
  • trunk/jahwidgets/src/qt3/wrapper/wrapper_vc8.vcproj

    r912 r915  
    1818                <Configuration 
    1919                        Name="Debug|Win32" 
    20                         OutputDirectory="Debug" 
    21                         IntermediateDirectory="Debug" 
     20                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     21                        IntermediateDirectory="$(ConfigurationName)" 
    2222                        ConfigurationType="2" 
    2323                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
     
    105105                <Configuration 
    106106                        Name="Release|Win32" 
    107                         OutputDirectory="Release" 
    108                         IntermediateDirectory="Release" 
     107                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     108                        IntermediateDirectory="$(ConfigurationName)" 
    109109                        ConfigurationType="2" 
    110110                        InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"