Commit d774d0cf1a03fffd73e39b801112d9322fb6228b
1 parent
af7d6c65
Exists in
master
Criando pacote de instalacao.
Showing
1 changed file
with
22 additions
and
2 deletions
Show diff stats
v3.3.7/nsis/g3270.nsi
1 | -# define the name of the installer | |
1 | +Name "g3270" | |
2 | +Caption "g3270 - 3270 Emulator for windows/gtk" | |
2 | 3 | outfile "g3270_installer.exe" |
4 | +XPStyle on | |
3 | 5 | |
4 | 6 | # define the directory to install to |
5 | 7 | installDir $PROGRAMFILES\g3270 |
6 | 8 | |
9 | +RequestExecutionLevel admin | |
10 | + | |
7 | 11 | # default section |
8 | 12 | section |
9 | 13 | |
10 | 14 | # define the output path for this file |
11 | 15 | setOutPath $INSTDIR |
12 | 16 | |
17 | +createShortCut "$SMPROGRAMS\g3270.lnk" "$INSTDIR\g3270.exe" | |
18 | + | |
13 | 19 | # define what to install and place it in the output path |
14 | 20 | file g3270.exe |
15 | 21 | file lib3270.dll |
... | ... | @@ -19,6 +25,10 @@ file w3n46.dll |
19 | 25 | file ui.xml |
20 | 26 | file g3270.jpg |
21 | 27 | |
28 | +# Locale files | |
29 | +CreateDirectory "$INSTDIR\locale\pt_BR\LC_MESSAGES" | |
30 | +file "/oname=$INSTDIR\locale\pt_BR\LC_MESSAGES\g3270.mo" "locale\pt_BR\LC_MESSAGES\g3270.mo" | |
31 | + | |
22 | 32 | # define uninstaller name |
23 | 33 | writeUninstaller $INSTDIR\uninstall.exe |
24 | 34 | |
... | ... | @@ -26,6 +36,13 @@ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\g3270" \ |
26 | 36 | "DisplayName" "g3270 - 3270 emulator for windows/gtk" |
27 | 37 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\g3270" \ |
28 | 38 | "UninstallString" "$INSTDIR\uninstall.exe" |
39 | +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\g3270" \ | |
40 | + "InstallLocation" "$INSTDIR" | |
41 | +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\g3270" \ | |
42 | + "NoModify" "1" | |
43 | +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\g3270" \ | |
44 | + "NoRepair" "1" | |
45 | + | |
29 | 46 | sectionEnd |
30 | 47 | |
31 | 48 | # create a section to define what the uninstaller does. |
... | ... | @@ -35,7 +52,7 @@ section "Uninstall" |
35 | 52 | # Always delete uninstaller first |
36 | 53 | delete $INSTDIR\uninstaller.exe |
37 | 54 | |
38 | -# now delete installed file | |
55 | +# now delete installed files | |
39 | 56 | delete $INSTDIR\g3270.exe |
40 | 57 | delete $INSTDIR\lib3270.dll |
41 | 58 | delete $INSTDIR\fonts.conf |
... | ... | @@ -43,6 +60,9 @@ delete $INSTDIR\g3270.conf |
43 | 60 | delete $INSTDIR\w3n46.dll |
44 | 61 | delete $INSTDIR\ui.xml |
45 | 62 | delete $INSTDIR\g3270.jpg |
63 | +delete $INSTDIR\g3270.log | |
64 | +delete "$SMPROGRAMS\g3270.lnk" | |
65 | +rmdir /r "$INSTDIR\locale" | |
46 | 66 | |
47 | 67 | # Remove registry |
48 | 68 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\g3270" | ... | ... |