Commit 1f775063de9957553643dbab931f4ba6a5a06d3d

Authored by Perry Werneck
1 parent 6149ffc4

Updating windows package.

Showing 1 changed file with 36 additions and 1 deletions   Show diff stats
win/pw3270.nsi.in
@@ -118,6 +118,7 @@ SubSection "@PRODUCT_NAME@" SecMain @@ -118,6 +118,7 @@ SubSection "@PRODUCT_NAME@" SecMain
118 # Misc folders 118 # Misc folders
119 CreateDirectory "$INSTDIR\certs" 119 CreateDirectory "$INSTDIR\certs"
120 CreateDirectory "$INSTDIR\plugins" 120 CreateDirectory "$INSTDIR\plugins"
  121 + CreateDirectory "$INSTDIR\keypad"
121 122
122 # UI definition files 123 # UI definition files
123 CreateDirectory "$INSTDIR\ui" 124 CreateDirectory "$INSTDIR\ui"
@@ -211,6 +212,13 @@ SubSection "@PRODUCT_NAME@" SecMain @@ -211,6 +212,13 @@ SubSection "@PRODUCT_NAME@" SecMain
211 SectionEnd 212 SectionEnd
212 !endif 213 !endif
213 214
  215 + Section "KEYPADS" Keypads
  216 +
  217 + file "/oname=$INSTDIR\keypad\00-right.xml" "@PRODUCT_NAME@\keypad\00-right.xml"
  218 + file "/oname=$INSTDIR\keypad\10-bottom.xml" "@PRODUCT_NAME@\keypad\10-bottom.xml"
  219 +
  220 + SectionEnd
  221 +
214 !ifdef WITHMONO-TN3270 222 !ifdef WITHMONO-TN3270
215 Section /o ".NET" DOTNET 223 Section /o ".NET" DOTNET
216 224
@@ -331,7 +339,34 @@ SectionEnd @@ -331,7 +339,34 @@ SectionEnd
331 339
332 Function .onInit 340 Function .onInit
333 341
334 - #---[ Check DOTNET Command line option ]0------------------------------------------------------------- 342 + #---[ Check SDK Command line option ]-----------------------------------------------------------------
  343 +
  344 +!ifdef WITHSDK
  345 +
  346 + Push $0
  347 +
  348 + ${GetParameters} $R0
  349 + ClearErrors
  350 + ${GetOptions} $R0 /SDK= $0
  351 +
  352 + ${if} $0 == "NO"
  353 +
  354 + SectionGetFlags ${SDK} $0
  355 + IntOp $0 $0 & ${SECTION_OFF}
  356 + SectionSetFlags ${SDK} $0
  357 +
  358 + ${else}
  359 +
  360 + SectionGetFlags ${SDK} $0
  361 + IntOp $0 $0 | ${SF_SELECTED}
  362 + SectionSetFlags ${SDK} $0
  363 +
  364 + ${EndIf}
  365 +
  366 + Pop $0
  367 +!endif
  368 +
  369 + #---[ Check DOTNET Command line option ]--------------------------------------------------------------
335 370
336 !ifdef WITHMONO-TN3270 371 !ifdef WITHMONO-TN3270
337 Push $0 372 Push $0