Commit 43db7be63321ce8569410fc2e81a33e2f67fb7af
1 parent
f5f4d3d3
Exists in
v5.2
Fixing win32 package.
Showing
2 changed files
with
15 additions
and
4 deletions
Show diff stats
configure.ac
... | ... | @@ -159,13 +159,16 @@ case "$host" in |
159 | 159 | if test "$host_cpu" = "x86_64"; then |
160 | 160 | app_cv_programfiles="PROGRAMFILES64" |
161 | 161 | app_cv_winarch="64" |
162 | + app_cv_nsisredir="DisableX64FSRedirection" | |
162 | 163 | else |
163 | 164 | app_cv_programfiles="PROGRAMFILES" |
164 | 165 | app_cv_winarch="32" |
166 | + app_cv_nsisredir="EnableX64FSRedirection" | |
165 | 167 | fi |
166 | 168 | |
167 | 169 | AC_SUBST(PROGRAMFILES,$app_cv_programfiles) |
168 | 170 | AC_SUBST(WINARCH,$app_cv_winarch) |
171 | + AC_SUBST(NSISREDIR,$app_cv_nsisredir) | |
169 | 172 | AC_SUBST(LIBEXT,.dll) |
170 | 173 | ;; |
171 | 174 | ... | ... |
win/pw3270.nsi.in
... | ... | @@ -80,7 +80,6 @@ SubSection "@PRODUCT_NAME@" SecMain |
80 | 80 | file "/oname=$INSTDIR\lib@LIBRARY_NAME@.dll" "lib@LIBRARY_NAME@.dll" |
81 | 81 | file "/oname=$INSTDIR\libv3270.dll" "libv3270.dll" |
82 | 82 | file "/oname=$INSTDIR\@PACKAGE@.dll" "@PACKAGE@.dll" |
83 | - file "/oname=$SYSDIR\libipc3270.dll" "libipc3270.dll" | |
84 | 83 | |
85 | 84 | # Configuration files |
86 | 85 | file "/oname=$INSTDIR\@PRODUCT_NAME@-logo.png" "@PRODUCT_NAME@\@PRODUCT_NAME@-logo.png" |
... | ... | @@ -150,10 +149,13 @@ SubSection "@PRODUCT_NAME@" SecMain |
150 | 149 | setOutPath $INSTDIR |
151 | 150 | |
152 | 151 | ${DisableX64FSRedirection} |
153 | - CreateDirectory "$INSTDIR\plugins" | |
154 | 152 | |
153 | + CreateDirectory "$INSTDIR\plugins" | |
155 | 154 | file "/oname=$INSTDIR\plugins\ipcserver.dll" "@PRODUCT_NAME@-plugins\ipcserver.dll" |
156 | 155 | |
156 | + ${@NSISREDIR@} | |
157 | + file "/oname=$SYSDIR\libipc3270.dll" "libipc3270.dll" | |
158 | + | |
157 | 159 | sectionEnd |
158 | 160 | |
159 | 161 | SubSectionEnd |
... | ... | @@ -164,7 +166,9 @@ SubSection "@PRODUCT_NAME@" SecMain |
164 | 166 | !ifdef WITHLIBHLLAPI |
165 | 167 | Section /o "HLLAPI" HLLAPIBinding |
166 | 168 | |
167 | - ${DisableX64FSRedirection} | |
169 | + ${@NSISREDIR@} | |
170 | + | |
171 | + # Install HLLAPI connector | |
168 | 172 | file "/oname=$SYSDIR\hllapi.dll" "libhllapi.dll" |
169 | 173 | |
170 | 174 | # Install with "lib" prefix for compatibility. |
... | ... | @@ -176,11 +180,13 @@ SubSection "@PRODUCT_NAME@" SecMain |
176 | 180 | !ifdef WITHMONO-TN3270 |
177 | 181 | Section /o ".NET" DOTNET |
178 | 182 | |
179 | - ${DisableX64FSRedirection} | |
180 | 183 | CreateDirectory "$INSTDIR\dotnet" |
181 | 184 | |
185 | + ${DisableX64FSRedirection} | |
182 | 186 | file "/oname=$INSTDIR\dotnet\tn3270.dll" "mono/lib/tn3270-5.2/tn3270.dll" |
183 | 187 | file "/oname=$INSTDIR\dotnet\tn3270.xml" "mono/gapi-2.0/tn3270/tn3270.xml" |
188 | + | |
189 | + ${@NSISREDIR@} | |
184 | 190 | file "/oname=$SYSDIR\mono-tn3270.dll" "mono-tn3270.dll" |
185 | 191 | |
186 | 192 | SectionEnd |
... | ... | @@ -290,6 +296,8 @@ Section "Uninstall" |
290 | 296 | SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 |
291 | 297 | |
292 | 298 | # Delete System libraries |
299 | + ${@NSISREDIR@} | |
300 | + | |
293 | 301 | delete $SYSDIR\libipc3270.dll |
294 | 302 | |
295 | 303 | !ifdef WITHHLLAPI | ... | ... |