Skip to content

Commit

Permalink
Use ico file in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Herzog committed Nov 19, 2024
1 parent 4fc9d15 commit dc723a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Simulator/build/Setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ Section "Install" Inst
File "..\..\Release\Simulator.sh"
File "..\..\Release\Simulator.bat"
File "..\..\Release\SimulatorCLI.bat"
File "..\..\Release\Simulator.ico"
File "..\..\Release\JDBC.cfg"
File "..\tools\JDDE\JavaDDEx64.dll"
File "..\tools\JDDE\JavaDDE.dll"
Expand Down Expand Up @@ -229,7 +230,7 @@ Section "Install" Inst
SetOutPath "$INSTDIR" ; Otherwise the shortcut will have the dictionaries as working directory

; CreateShortCut "$SMPROGRAMS\${PrgName}.lnk" "$INSTDIR\${PROGEXE}"
CreateShortCut "$SMPROGRAMS\${PrgName}.lnk" "$INSTDIR\${PROGBAT}" "" "$INSTDIR\${PROGEXE}" 0 SW_SHOWMINIMIZED
CreateShortCut "$SMPROGRAMS\${PrgName}.lnk" "$INSTDIR\${PROGBAT}" "" "$INSTDIR\Simulator.ico" 0 SW_SHOWMINIMIZED

!insertmacro MULTIUSER_RegistryAddInstallInfo
!insertmacro MULTIUSER_RegistryAddInstallSizeInfo
Expand All @@ -240,6 +241,7 @@ Section "Install" Inst

; Remove files from old installations
Delete "$INSTDIR\Simulator_Reset.exe"
Delete "$INSTDIR\Simulator.exe"

; Remove failed update setup files
Delete "$APPDATA\Temp\${SetupFileName}.part"
Expand Down Expand Up @@ -270,6 +272,7 @@ Section "un.Uninstall" uninst
Delete "$INSTDIR\Simulator.exe"
Delete "$INSTDIR\Simulator.old"
Delete "$INSTDIR\Simulator.new"
Delete "$INSTDIR\Simulator.ico"
Delete "$INSTDIR\Simulator.jar"
Delete "$INSTDIR\Simulator_Reset.exe" ; Not installed anymore - but kept in uninstaller when uninstalling old releases
Delete "$INSTDIR\Simulator.cfg"
Expand Down
2 changes: 2 additions & 0 deletions Simulator/build/ant-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
</fileset>
</copy>
<copy file="${Simulator.location}/JDBC.cfg" todir="${Release.location}"/>
<copy file="${Simulator.location}/src/main/java/ui/res/Symbol.ico" tofile="${Release.location}/Simulator.ico"/>

<echo message="Copy help files" />
<copy todir="${Release.location}/docs">
Expand Down Expand Up @@ -453,6 +454,7 @@

<echo message="Clean up" />
<delete file="${Release.location}/Simulator.exe" />
<delete file="${Release.location}/Simulator.ico" />
<delete file="${Release.location}/Simulator.sh" />
<delete file="${Release.location}/Simulator.bat" />
<delete file="${Release.location}/Splashscreen.png" />
Expand Down

0 comments on commit dc723a6

Please sign in to comment.