Browse Source

packagin/windows: changed name from fridgegrid to FridgeGrid

tags/1.3
Sven Oliver Moll 10 months ago
parent
commit
98ed667212
2 changed files with 28 additions and 28 deletions
  1. 25
    25
      packaging/windows/FridgeGrid-cross.nsi
  2. 3
    3
      packaging/windows/build-cross.sh

packaging/windows/fridgegrid-cross.nsi → packaging/windows/FridgeGrid-cross.nsi View File

@@ -8,17 +8,17 @@
;--------------------------------
; The name of the installer
Name "fridgegrid"
Name "FridgeGrid"
; The file to write
OutFile "..\..\..\fridgegrid-installer.exe"
OutFile "..\..\..\FridgeGrid-Installer.exe"
; The default installation directory
InstallDir $PROGRAMFILES\fridgegrid
InstallDir $PROGRAMFILES\FridgeGrid
; Registry key to check for directory (so if you install again, it will
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey HKLM "Software\fridgegrid" "Install_Dir"
InstallDirRegKey HKLM "Software\FridgeGrid" "Install_Dir"
; Request application privileges for Windows Vista
RequestExecutionLevel admin
@@ -44,35 +44,35 @@ UninstPage instfiles
;--------------------------------
; The stuff to install
Section "fridgegrid (required)"
Section "FridgeGrid (required)"
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
!include ..\..\build-release\packaging\files-install.nsh
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\fridgegrid "Install_Dir" "$INSTDIR"
WriteRegStr HKLM SOFTWARE\FridgeGrid "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\fridgegrid" "DisplayName" "fridgegrid"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\fridgegrid" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\fridgegrid" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\fridgegrid" "NoRepair" 1
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FridgeGrid" "DisplayName" "FridgeGrid"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FridgeGrid" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FridgeGrid" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FridgeGrid" "NoRepair" 1
WriteUninstaller "uninstall.exe"
SectionEnd
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\fridgegrid"
CreateShortCut "$SMPROGRAMS\fridgegrid\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\fridgegrid\fridgegrid.lnk" "$INSTDIR\fridgegrid.exe" "" "$INSTDIR\fridgegrid.exe" 0
CreateDirectory "$SMPROGRAMS\FridgeGrid"
CreateShortCut "$SMPROGRAMS\FridgeGrid\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\FridgeGrid\FridgeGrid.lnk" "$INSTDIR\FridgeGrid.exe" "" "$INSTDIR\FridgeGrid.exe" 0
SectionEnd
;--------------------------------
@@ -80,20 +80,20 @@ SectionEnd
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\fridgegrid"
DeleteRegKey HKLM SOFTWARE\fridgegrid
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\FridgeGrid"
DeleteRegKey HKLM SOFTWARE\FridgeGrid
; Remove files and uninstaller
!include ..\..\build-release\packaging\files-delete.nsh
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\fridgegrid\*.*"
Delete "$SMPROGRAMS\FridgeGrid\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\fridgegrid"
RMDir "$SMPROGRAMS\FridgeGrid"
RMDir "$INSTDIR"
SectionEnd

+ 3
- 3
packaging/windows/build-cross.sh View File

@@ -47,9 +47,9 @@ for i in ${INSTALLFILES} ${QTLIBS};do
>> ${PACKAGINGDIR}/files-delete.nsh
done

${PLATFORM}-makensis fridgegrid-cross.nsi
outfile="$(grep OutFile fridgegrid-cross.nsi|cut -f2 -d\"|tr '\\' '/')"
relfile="$(echo ${outfile}|sed "s/-installer/-${version}-installer/")"
${PLATFORM}-makensis FridgeGrid-cross.nsi
outfile="$(grep OutFile FridgeGrid-cross.nsi|cut -f2 -d\"|tr '\\' '/')"
relfile="$(echo ${outfile}|sed "s/-Installer/-${version}-Installer/")"

mv -v "${outfile}" "${relfile}"


Loading…
Cancel
Save