john_1726

Untitled

Jul 9th, 2021
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.90 KB | None | 0 0
  1. MakeNSIS v3.06.1 - Copyright 1999-2020 Contributors
  2. See the file COPYING for license details.
  3. Credits can be found in the Users Manual.
  4.  
  5. Processing config: C:\Program Files (x86)\NSIS\nsisconf.nsh
  6. Processing default plugins: "C:\Program Files (x86)\NSIS\Plugins\x86-ansi\*.dll"
  7. + Banner::destroy
  8. + Banner::getWindow
  9. + Banner::show
  10. + BgImage::AddImage
  11. + BgImage::AddText
  12. + BgImage::Clear
  13. + BgImage::Destroy
  14. + BgImage::Redraw
  15. + BgImage::SetBg
  16. + BgImage::SetReturn
  17. + BgImage::Sound
  18. + Dialer::AttemptConnect
  19. + Dialer::AutodialHangup
  20. + Dialer::AutodialOnline
  21. + Dialer::AutodialUnattended
  22. + Dialer::GetConnectedState
  23. + INetC::get
  24. + INetC::head
  25. + INetC::post
  26. + INetC::put
  27. + InstallOptions::dialog
  28. + InstallOptions::initDialog
  29. + InstallOptions::show
  30. + InstallOptionsEx::dialog
  31. + InstallOptionsEx::initDialog
  32. + InstallOptionsEx::setFocus
  33. + InstallOptionsEx::show
  34. + InstallOptionsEx::skipValidation
  35. + LangDLL::LangDialog
  36. + Math::Script
  37. + SelfDel::Del
  38. + StartMenu::Init
  39. + StartMenu::Select
  40. + StartMenu::Show
  41. + System::Alloc
  42. + System::Call
  43. + System::Copy
  44. + System::Free
  45. + System::Get
  46. + System::Int64Op
  47. + System::Store
  48. + System::StrAlloc
  49. + TypeLib::GetLibVersion
  50. + TypeLib::Register
  51. + TypeLib::UnRegister
  52. + UserInfo::GetAccountType
  53. + UserInfo::GetName
  54. + UserInfo::GetOriginalAccountType
  55. + VPatch::GetFileCRC32
  56. + VPatch::GetFileMD5
  57. + VPatch::vpatchfile
  58. + advsplash::show
  59. + nsDialogs::Create
  60. + nsDialogs::CreateControl
  61. + nsDialogs::CreateItem
  62. + nsDialogs::CreateTimer
  63. + nsDialogs::GetUserData
  64. + nsDialogs::KillTimer
  65. + nsDialogs::OnBack
  66. + nsDialogs::OnChange
  67. + nsDialogs::OnClick
  68. + nsDialogs::OnNotify
  69. + nsDialogs::SelectFileDialog
  70. + nsDialogs::SelectFolderDialog
  71. + nsDialogs::SetRTL
  72. + nsDialogs::SetUserData
  73. + nsDialogs::Show
  74. + nsExec::Exec
  75. + nsExec::ExecToLog
  76. + nsExec::ExecToStack
  77. + nsProcess::_CloseProcess
  78. + nsProcess::_FindProcess
  79. + nsProcess::_KillProcess
  80. + nsProcess::_Unload
  81. + nsisdl::download
  82. + nsisdl::download_quiet
  83. + splash::show
  84.  
  85. !define: "MUI_INSERT_NSISCONF"=""
  86.  
  87. Changing directory to: "C:\cygwin64\tmp\NsisInstal"
  88.  
  89. Processing script file: "C:\cygwin64\tmp\NsisInstal\MyApp.nsi" (ACP)
  90. !include: "C:\Program Files (x86)\NSIS\Include\LogicLib.nsh" (ACP)
  91. !include: closed: "C:\Program Files (x86)\NSIS\Include\LogicLib.nsh"
  92. !include: "C:\Program Files (x86)\NSIS\Include\Sections.nsh" (ACP)
  93. !include: closed: "C:\Program Files (x86)\NSIS\Include\Sections.nsh"
  94. !include: "C:\Program Files (x86)\NSIS\Include\MUI2.nsh" (ACP)
  95. !include: "C:\Program Files (x86)\NSIS\Contrib\Modern UI 2\MUI2.nsh" (ACP)
  96. NSIS Modern User Interface version 2.1 - Copyright 2002-2020 Joost Verburg (C:\Program Files (x86)\NSIS\Contrib\Modern UI 2\MUI2.nsh:14)
  97. !include: closed: "C:\Program Files (x86)\NSIS\Contrib\Modern UI 2\MUI2.nsh"
  98. !include: closed: "C:\Program Files (x86)\NSIS\Include\MUI2.nsh"
  99. !define: "MAJOR_VERSION"="1"
  100. !define: "MINOR_VERSION"="2"
  101. !define: "PATCH_VERSION"="3"
  102. !define: "BUILD_VERSION"="4"
  103. !define: "APP_COPYRIGHT"="MyApp © MyCompany 2021"
  104. !define: "COMPANY_NAME"="MyCompany"
  105. !define: "FLEX_LM"="FlexLM"
  106. !define: "FLEX_DIR"="FlexSQI"
  107. !define: "PRODUCT_NAME"="MyApp"
  108. !define: "PRODUCT_VERSION"="1.2.3.4"
  109. !define: "SETUP_NAME"="MyAppSetup.exe"
  110. BrandingText: "MyCompany"
  111. OutFile: "MyAppSetup.exe"
  112. Icon: "favicon.ico"
  113. UninstallIcon: "favicon.ico"
  114. !define: "MUI_ICON"="favicon.ico"
  115. !define: "MUI_UNICON"="favicon.ico"
  116. Name: "MyApp"
  117. InstallDir: "$PROGRAMFILES64\MyApp\"
  118. InstallRegKey: "HKLM\Software\$PRODUCT_NAME\"
  119. ShowInstDetails: hide
  120. ShowUnInstDetails: hide
  121. SetCompressor: /SOLID lzma
  122. SetCompressorDictSize: 12 mb
  123. Var: "MyAppInstallDir"
  124. Var: "FlexLmInstallDir"
  125. !insertmacro: MUI_PAGE_WELCOME
  126. !insertmacro: end of MUI_PAGE_WELCOME
  127. !insertmacro: MUI_PAGE_LICENSE
  128. !insertmacro: end of MUI_PAGE_LICENSE
  129. !define: "MUI_PAGE_CUSTOMFUNCTION_PRE"="SelectFilesCheck"
  130. !define: "MUI_PAGE_CUSTOMFUNCTION_LEAVE"="ComponentsLeave"
  131. !insertmacro: MUI_PAGE_COMPONENTS
  132. !insertmacro: end of MUI_PAGE_COMPONENTS
  133. !define: "MUI_DIRECTORYPAGE_TEXT_TOP"="$(MUI_DIRECTORYPAGE_TEXT_TOP_A)"
  134. !define: "MUI_PAGE_HEADER_TEXT"="MyApp Configuration"
  135. !define: "MUI_PAGE_HEADER_SUBTEXT"="Select the folder in which to install MyApp."
  136. !define: "MUI_PAGE_CUSTOMFUNCTION_PRE"="SelectFilesA"
  137. !insertmacro: MUI_PAGE_DIRECTORY
  138. !insertmacro: end of MUI_PAGE_DIRECTORY
  139. !insertmacro: MUI_PAGE_INSTFILES
  140. !insertmacro: end of MUI_PAGE_INSTFILES
  141. !define: "MUI_DIRECTORYPAGE_TEXT_TOP"="$(MUI_DIRECTORYPAGE_TEXT_TOP_B)"
  142. !define: "MUI_PAGE_HEADER_TEXT"="FlexLM Configuration"
  143. !define: "MUI_PAGE_HEADER_SUBTEXT"="Select the folder in which to install FlexLM."
  144. !define: "MUI_PAGE_CUSTOMFUNCTION_PRE"="SelectFilesB"
  145. !insertmacro: MUI_PAGE_DIRECTORY
  146. !insertmacro: end of MUI_PAGE_DIRECTORY
  147. !insertmacro: MUI_PAGE_INSTFILES
  148. !insertmacro: end of MUI_PAGE_INSTFILES
  149. !define: "MUI_PAGE_CUSTOMFUNCTION_LEAVE"="DeleteSectionsINI"
  150. !insertmacro: MUI_PAGE_FINISH
  151. !insertmacro: end of MUI_PAGE_FINISH
  152. !insertmacro: MUI_UNPAGE_WELCOME
  153. !insertmacro: end of MUI_UNPAGE_WELCOME
  154. !insertmacro: MUI_UNPAGE_CONFIRM
  155. !insertmacro: end of MUI_UNPAGE_CONFIRM
  156. !insertmacro: MUI_UNPAGE_INSTFILES
  157. !insertmacro: end of MUI_UNPAGE_INSTFILES
  158. !insertmacro: MUI_UNPAGE_FINISH
  159. !insertmacro: end of MUI_UNPAGE_FINISH
  160. !insertmacro: DeclareLanguages
  161. !insertmacro: MUI_LANGUAGE
  162. !insertmacro: end of MUI_LANGUAGE
  163. !insertmacro: end of DeclareLanguages
  164. warning 7025: "${LANG_ENGLSH}" is not a valid language id, using language id 1033! (C:\cygwin64\tmp\NsisInstal\MyApp.nsi:96)
  165. LangString: "NoSectionsSelected" 1033 "You haven't selected any sections!"
  166. warning 7025: "${LANG_ENGLSH}" is not a valid language id, using language id 1033! (C:\cygwin64\tmp\NsisInstal\MyApp.nsi:99)
  167. LangString: "MUI_DIRECTORYPAGE_TEXT_TOP_A" 1033 "Setup will install MyApp in the following folder..."
  168. warning 7025: "${LANG_ENGLSH}" is not a valid language id, using language id 1033! (C:\cygwin64\tmp\NsisInstal\MyApp.nsi:101)
  169. LangString: "MUI_DIRECTORYPAGE_TEXT_TOP_B" 1033 "Setup will install FlexLM in the following folder..."
  170. Var: "STR_HAYSTACK"
  171. Var: "STR_NEEDLE"
  172. Var: "STR_CONTAINS_VAR_1"
  173. Var: "STR_CONTAINS_VAR_2"
  174. Var: "STR_CONTAINS_VAR_3"
  175. Var: "STR_CONTAINS_VAR_4"
  176. Var: "STR_RETURN_VAR"
  177. Function: "StrContains"
  178. Exch($STR_NEEDLE,0)
  179. Exch(st(1),0)
  180. Exch($STR_HAYSTACK,0)
  181. StrCpy $STR_RETURN_VAR "" () ()
  182. StrCpy $STR_CONTAINS_VAR_1 "-1" () ()
  183. StrLen $STR_CONTAINS_VAR_2 "$STR_NEEDLE"
  184. StrLen $STR_CONTAINS_VAR_4 "$STR_HAYSTACK"
  185. IntOp: $STR_CONTAINS_VAR_1=$STR_CONTAINS_VAR_1+1
  186. StrCpy $STR_CONTAINS_VAR_3 "$STR_HAYSTACK" ($STR_CONTAINS_VAR_2) ($STR_CONTAINS_VAR_1)
  187. StrCmp "$STR_CONTAINS_VAR_3" "$STR_NEEDLE" equal=found, nonequal=
  188. StrCmp "$STR_CONTAINS_VAR_1" "$STR_CONTAINS_VAR_4" equal=done, nonequal=
  189. Goto: loop
  190. StrCpy $STR_RETURN_VAR "$STR_NEEDLE" () ()
  191. Goto: done
  192. Pop: $STR_NEEDLE
  193. Exch($STR_RETURN_VAR,0)
  194. FunctionEnd
  195. !define: "StrContains"="!insertmacro "_StrContainsConstructor""
  196. Section: "MyApp" ->(SEC1)
  197. !insertmacro: _StrContainsConstructor
  198. Push: $INSTDIR
  199. Push: MyApp
  200. Call "StrContains"
  201. Pop: $0
  202. !insertmacro: end of _StrContainsConstructor
  203. StrCmp "$0" "" equal=notfoundMyApp, nonequal=
  204. StrCpy $MyAppInstallDir "$INSTDIR" () ()
  205. Goto: installMyApp
  206. SetOutPath: "$INSTDIR"
  207. !insertmacro: WriteSignedUninstaller
  208. !makensis: ""C:\Program Files (x86)\NSIS\Bin\makensis.exe" /v4 /OCS UTF8 "/DGENRATINGUNINST=C:\Users\moorer\AppData\Local\Temp\Uninst.exe" "MyApp.nsi" "/XOutfile `C:\Users\moorer\AppData\Local\Temp\tempinstaller.exe`""
  209. MakeNSIS v3.06.1 - Copyright 1999-2020 Contributors
  210. See the file COPYING for license details.
  211. Credits can be found in the Users Manual.
  212.  
  213. Command line defined: "GENRATINGUNINST=C:\Users\moorer\AppData\Local\Temp\Uninst.exe"
  214. Processing config: C:\Program Files (x86)\NSIS\nsisconf.nsh
  215. Processing default plugins: "C:\Program Files (x86)\NSIS\Plugins\x86-ansi\*.dll"
  216. + Banner::destroy
  217. + Banner::getWindow
  218. + Banner::show
  219. + BgImage::AddImage
  220. + BgImage::AddText
  221. + BgImage::Clear
  222. + BgImage::Destroy
  223. + BgImage::Redraw
  224. + BgImage::SetBg
  225. + BgImage::SetReturn
  226. + BgImage::Sound
  227. + Dialer::AttemptConnect
  228. + Dialer::AutodialHangup
  229. + Dialer::AutodialOnline
  230. + Dialer::AutodialUnattended
  231. + Dialer::GetConnectedState
  232. + INetC::get
  233. + INetC::head
  234. + INetC::post
  235. + INetC::put
  236. + InstallOptions::dialog
  237. + InstallOptions::initDialog
  238. + InstallOptions::show
  239. + InstallOptionsEx::dialog
  240. + InstallOptionsEx::initDialog
  241. + InstallOptionsEx::setFocus
  242. + InstallOptionsEx::show
  243. + InstallOptionsEx::skipValidation
  244. + LangDLL::LangDialog
  245. + Math::Script
  246. + SelfDel::Del
  247. + StartMenu::Init
  248. + StartMenu::Select
  249. + StartMenu::Show
  250. + System::Alloc
  251. + System::Call
  252. + System::Copy
  253. + System::Free
  254. + System::Get
  255. + System::Int64Op
  256. + System::Store
  257. + System::StrAlloc
  258. + TypeLib::GetLibVersion
  259. + TypeLib::Register
  260. + TypeLib::UnRegister
  261. + UserInfo::GetAccountType
  262. + UserInfo::GetName
  263. + UserInfo::GetOriginalAccountType
  264. + VPatch::GetFileCRC32
  265. + VPatch::GetFileMD5
  266. + VPatch::vpatchfile
  267. + advsplash::show
  268. + nsDialogs::Create
  269. + nsDialogs::CreateControl
  270. + nsDialogs::CreateItem
  271. + nsDialogs::CreateTimer
  272. + nsDialogs::GetUserData
  273. + nsDialogs::KillTimer
  274. + nsDialogs::OnBack
  275. + nsDialogs::OnChange
  276. + nsDialogs::OnClick
  277. + nsDialogs::OnNotify
  278. + nsDialogs::SelectFileDialog
  279. + nsDialogs::SelectFolderDialog
  280. + nsDialogs::SetRTL
  281. + nsDialogs::SetUserData
  282. + nsDialogs::Show
  283. + nsExec::Exec
  284. + nsExec::ExecToLog
  285. + nsExec::ExecToStack
  286. + nsProcess::_CloseProcess
  287. + nsProcess::_FindProcess
  288. + nsProcess::_KillProcess
  289. + nsProcess::_Unload
  290. + nsisdl::download
  291. + nsisdl::download_quiet
  292. + splash::show
  293.  
  294. !define: "MUI_INSERT_NSISCONF"=""
  295.  
  296. Changing directory to: "C:\cygwin64\tmp\NsisInstal"
  297.  
  298. Processing script file: "MyApp.nsi" (ACP)
  299. !include: "C:\Program Files (x86)\NSIS\Include\LogicLib.nsh" (ACP)
  300. !include: closed: "C:\Program Files (x86)\NSIS\Include\LogicLib.nsh"
  301. !include: "C:\Program Files (x86)\NSIS\Include\Sections.nsh" (ACP)
  302. !include: closed: "C:\Program Files (x86)\NSIS\Include\Sections.nsh"
  303. !include: "C:\Program Files (x86)\NSIS\Include\MUI2.nsh" (ACP)
  304. !include: "C:\Program Files (x86)\NSIS\Contrib\Modern UI 2\MUI2.nsh" (ACP)
  305. NSIS Modern User Interface version 2.1 - Copyright 2002-2020 Joost Verburg (C:\Program Files (x86)\NSIS\Contrib\Modern UI 2\MUI2.nsh:14)
  306. !include: closed: "C:\Program Files (x86)\NSIS\Contrib\Modern UI 2\MUI2.nsh"
  307. !include: closed: "C:\Program Files (x86)\NSIS\Include\MUI2.nsh"
  308. !define: "MAJOR_VERSION"="1"
  309. !define: "MINOR_VERSION"="2"
  310. !define: "PATCH_VERSION"="3"
  311. !define: "BUILD_VERSION"="4"
  312. !define: "APP_COPYRIGHT"="MyApp © MyCompany 2021"
  313. !define: "COMPANY_NAME"="MyCompany"
  314. !define: "FLEX_LM"="FlexLM"
  315. !define: "FLEX_DIR"="FlexSQI"
  316. !define: "PRODUCT_NAME"="MyApp"
  317. !define: "PRODUCT_VERSION"="1.2.3.4"
  318. !define: "SETUP_NAME"="MyAppSetup.exe"
  319. BrandingText: "MyCompany"
  320. OutFile: "MyAppSetup.exe"
  321. Icon: "favicon.ico"
  322. UninstallIcon: "favicon.ico"
  323. !define: "MUI_ICON"="favicon.ico"
  324. !define: "MUI_UNICON"="favicon.ico"
  325. Name: "MyApp"
  326. InstallDir: "$PROGRAMFILES64\MyApp\"
  327. InstallRegKey: "HKLM\Software\$PRODUCT_NAME\"
  328. ShowInstDetails: hide
  329. ShowUnInstDetails: hide
  330. SetCompressor: /SOLID lzma
  331. SetCompressorDictSize: 12 mb
  332. !insertmacro: MUI_UNPAGE_CONFIRM
  333. !insertmacro: end of MUI_UNPAGE_CONFIRM
  334. !insertmacro: MUI_UNPAGE_INSTFILES
  335. !insertmacro: end of MUI_UNPAGE_INSTFILES
  336. !insertmacro: DeclareLanguages
  337. !insertmacro: MUI_LANGUAGE
  338. !insertmacro: end of MUI_LANGUAGE
  339. !insertmacro: end of DeclareLanguages
  340. Section: "-Uninstall"
  341. ReadRegStr $0 HKCU\SOFTWARE\MyCompany\InstallLocation
  342. DeleteRegKey: HKCU\SOFTWARE\MyCompany
  343. Delete: "$0\config.dat"
  344. Delete: "$0\MyApp.exe"
  345. Delete: "$0\ReleaseNotes.txt"
  346. Delete: "$0\MyCompany_LandingPage_114.bmp"
  347. Delete: "$0\MyAppLicense.txt"
  348. Delete: "$SMPROGRAMS\MyApp.lnk"
  349. DeleteRegKey: HKCU\SOFTWARE\MyApp
  350. DeleteRegKey: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp
  351. DeleteRegKey: HKCU\Software\Modern UI Test
  352. RMDir: "$0"
  353. Delete: "$InstDir\Uninst.exe"
  354. RMDir: "$InstDir"
  355. SectionEnd
  356. OutFile: "C:\Users\moorer\AppData\Local\Temp\tempinstaller.exe"
  357.  
  358. Processed 1 file, 1 command line command, writing output (x86-ansi):
  359. warning 7998: ANSI targets are deprecated
  360. Processing pages... Done!
  361. Removing unused resources... Done!
  362. Generating language tables... Done!
  363. Generating uninstaller... Done!
  364.  
  365. Output: "C:\Users\moorer\AppData\Local\Temp\tempinstaller.exe"
  366. Install: 0 pages (0 bytes), 1 section (2072 bytes), 25 instructions (700 bytes), 46 strings (481 bytes), 1 language table (166 bytes).
  367. Uninstall: 2 pages (192 bytes), 1 section (2072 bytes), 62 instructions (1736 bytes), 85 strings (1141 bytes), 1 language table (250 bytes).
  368.  
  369. Using lzma (compress whole) compression.
  370.  
  371. EXE header size: 74752 / 37888 bytes
  372. Install code: (2795 bytes)
  373. Install data: (0 bytes)
  374. Uninstall code+data: (43257 bytes)
  375. Compressed data: 20547 / 46052 bytes
  376. CRC (0xF56DD901): 4 / 4 bytes
  377.  
  378. Total size: 95303 / 83944 bytes (113.5%)
  379.  
  380. 1 warning:
  381. 7998: ANSI targets are deprecated
  382. !makensis: returned 0
  383. !system: "set __COMPAT_LAYER=RunAsInvoker&"C:\Users\moorer\AppData\Local\Temp\tempinstaller.exe""
  384. !system: returned 2
  385. !system: "SIGNTOOL sign /f CodeSigningCertificate/MyCompany.pfx /p Test /tr http://timestamp.digicert.com /td SHA256 "C:\Users\moorer\AppData\Local\Temp\Uninst.exe""
  386. Done Adding Additional Store
  387. Successfully signed: C:\Users\moorer\AppData\Local\Temp\Uninst.exe !system: returned 0
  388. File: "Uninst.exe"->"$InstDir\Uninst.exe" 80376 bytes
  389. !insertmacro: end of WriteSignedUninstaller
  390. File: "MyApp.exe" 65558528 bytes
  391. File: "ReleaseNotes.txt" 47 bytes
  392. File: "MyCompany_LandingPage_114.bmp" 478 bytes
  393. File: "MyAppLicense.txt" 72 bytes
  394. CreateShortcut: "$SMPROGRAMS\MyApp.lnk"->"$InstDir\MyApp.exe" icon:,0, nwd=0, showmode=0x0, hotkey=0x0, comment=
  395. ClearErrors:
  396. WriteRegStr: HKCU\SOFTWARE\MyApp\Company Name=MyCompany
  397. WriteRegStr: HKCU\SOFTWARE\MyApp\Version=1.2.3.4
  398. WriteRegStr: HKCU\SOFTWARE\MyApp\AppID={A0E84732-E2B2-46E5-8CA2-462B8DF92DCD}
  399. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\DisplayIcon=$PROGRAMFILES64\MyApp\MyApp.exe
  400. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\AppID={A0E84732-E2B2-46E5-8CA2-462B8DF92DCD}
  401. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\DisplayName=MyApp
  402. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\DisplayVersion=1.2.3.4
  403. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\InstallLocation=$INSTDIR
  404. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\Publisher=MyCompany
  405. WriteRegStr: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp\UninstallString="$INSTDIR\Uninst.exe"
  406. SectionEnd
  407. Section: "FlexLM" ->(SEC3)
  408. !insertmacro: _StrContainsConstructor
  409. Push: $INSTDIR
  410. Push: Flex
  411. Call "StrContains"
  412. Pop: $0
  413. !insertmacro: end of _StrContainsConstructor
  414. StrCmp "$0" "" equal=notfoundFlex, nonequal=
  415. StrCpy $FlexLmInstallDir "$INSTDIR" () ()
  416. Goto: installFlex
  417. SetOutPath: "$INSTDIR"
  418. File: "installs.exe" 407040 bytes
  419. File: "lmdown.exe" 1828688 bytes
  420. File: "lmflex.exe" 2158592 bytes
  421. SectionEnd
  422. !define: "PROG1_InstDir"="$PROGRAMFILES64\MyApp"
  423. !define: "PROG1_StartIndex"="0"
  424. !define: "PROG1_EndIndex"="0"
  425. !define: "PROG2_InstDir"="C:\FlexSQI\"
  426. !define: "PROG2_StartIndex"="1"
  427. !define: "PROG2_EndIndex"="1"
  428. LangString: "DESC_SecMyApp" 1033 "MyAppTM software is an easy-to-use suite of tools."
  429. LangString: "DESC_SecFlexLM" 1033 "FlexSQI contains all the files necessary to implement the FlexLM license server."
  430. !insertmacro: MUI_FUNCTION_DESCRIPTION_BEGIN
  431. !insertmacro: end of MUI_FUNCTION_DESCRIPTION_BEGIN
  432. !insertmacro: MUI_DESCRIPTION_TEXT
  433. !insertmacro: end of MUI_DESCRIPTION_TEXT
  434. !insertmacro: MUI_DESCRIPTION_TEXT
  435. !insertmacro: end of MUI_DESCRIPTION_TEXT
  436. !insertmacro: MUI_FUNCTION_DESCRIPTION_END
  437. !insertmacro: end of MUI_FUNCTION_DESCRIPTION_END
  438. Function: ".onInit"
  439. InitPluginsDir
  440. SetOutPath: "$TEMP"
  441. File: "MyCompany_LandingPage_114.bmp"->"spltmp.bmp" 0/478 bytes
  442. File: "splash.dll"->"$PLUGINSDIR\splash.dll" 4096 bytes
  443. Plugin command: show 2000 $TEMP\spltmp
  444. Pop: $0
  445. Delete: "$TEMP\spltmp.bmp"
  446. FunctionEnd
  447. Var: "IfBack"
  448. Function: "SelectFilesCheck"
  449. StrCmp "$IfBack" "1" equal=0, nonequal=NoCheck
  450. Call "ResetFiles"
  451. FunctionEnd
  452. Function: "ComponentsLeave"
  453. Push: $R0
  454. Push: $R1
  455. Call "IsPROG1Selected"
  456. Pop: $R0
  457. Call "IsPROG2Selected"
  458. Pop: $R1
  459. StrCmp "$R0" "1" equal=End, nonequal=
  460. StrCmp "$R1" "1" equal=End, nonequal=
  461. Pop: $R1
  462. Pop: $R0
  463. MessageBox: 48: "$(NoSectionsSelected)"
  464. Abort: ""
  465. Pop: $R1
  466. Pop: $R0
  467. FunctionEnd
  468. Function: "IsPROG1Selected"
  469. Push: $R0
  470. StrCpy $R0 "0" () ()
  471. SectionGetFlags: 0->$R0
  472. IntOp: $R0=$R0&1
  473. StrCmp "$R0" "1" equal=0, nonequal=+3
  474. StrCpy $R0 "1" () ()
  475. Exch($R0,0)
  476. FunctionEnd
  477. Function: "IsPROG2Selected"
  478. Push: $R1
  479. StrCpy $R1 "1" () ()
  480. IntOp: $R1=$R1+1
  481. SectionGetFlags: 1->$R1
  482. IntOp: $R1=$R1&1
  483. StrCmp "$R1" "1" equal=0, nonequal=+3
  484. StrCpy $R1 "1" () ()
  485. Exch($R1,0)
  486. FunctionEnd
  487. Function: "ResetFiles"
  488. Push: $R0
  489. Push: $R1
  490. StrCpy $R0 "1" () ()
  491. IntOp: $R0=$R0+1
  492. ReadINIStr $R1 [Sections]:$R0 from $PLUGINSDIR\sections.ini
  493. SectionSetFlags: $R0=$R1
  494. StrCmp "$R0" "1" equal=0, nonequal=Loop
  495. Pop: $R1
  496. Pop: $R0
  497. FunctionEnd
  498. Function: "SelectFilesA"
  499. StrCpy $IfBack "1" () ()
  500. Push: $R0
  501. Push: $R1
  502. StrCpy $R0 "1" () ()
  503. Call "IsPROG1Selected"
  504. Pop: $R0
  505. StrCmp "$R0" "1" equal=+4, nonequal=
  506. Pop: $R1
  507. Pop: $R0
  508. Abort: ""
  509. StrCpy $INSTDIR "$PROGRAMFILES64\MyApp" () ()
  510. Pop: $R1
  511. Pop: $R0
  512. FunctionEnd
  513. Function: "SelectFilesB"
  514. Push: $R0
  515. StrCpy $R0 "0" () ()
  516. Call "IsPROG2Selected"
  517. Pop: $R0
  518. StrCmp "$R0" "1" equal=+4, nonequal=
  519. Pop: $R1
  520. Pop: $R0
  521. Abort: ""
  522. StrCpy $INSTDIR "C:\FlexSQI\" () ()
  523. Pop: $R0
  524. FunctionEnd
  525. Function: "DeleteSectionsINI"
  526. FlushINI: $PLUGINSDIR\Sections.ini
  527. Delete: "$PLUGINSDIR\Sections.ini"
  528. Delete: "$MyAppInstallDir\installs.exe"
  529. Delete: "$MyAppInstallDir\lmdown.exe"
  530. Delete: "$MyAppInstallDir\lmflex.exe"
  531. Delete: "$MyAppInstallDir\MyAppLicense.txt"
  532. Delete: "$MyAppInstallDir\MyCompany_LandingPage_114.bmp"
  533. Delete: "$FlexLmInstallDir\config.dat"
  534. Delete: "$FlexLmInstallDir\MyApp.exe"
  535. Delete: "$FlexLmInstallDir\ReleaseNotes.txt"
  536. Delete: "$FlexLmInstallDir\MyCompany_LandingPage_114.bmp"
  537. Delete: "$FlexLmInstallDir\MyAppLicense.txt"
  538. Delete: "$FlexLmInstallDir\vcruntime140_1.dll"
  539. FunctionEnd
  540.  
  541. Processed 1 file, writing output (x86-ansi):
  542. warning 7998: ANSI targets are deprecated
  543. Adding plug-ins initializing function... Done!
  544. warning 6020: Uninstaller script code found but WriteUninstaller never used - no uninstaller will be created.
  545. Processing pages... Done!
  546. Removing unused resources... Done!
  547. Generating language tables... Done!
  548.  
  549. Output: "C:\cygwin64\tmp\NsisInstal\MyAppSetup.exe"
  550. Install: 9 pages (576 bytes), 2 sections (4144 bytes), 586 instructions (16408 bytes), 257 strings (4415 bytes), 1 language table (358 bytes).
  551. Uninstall: 4 pages (320 bytes), 0 sections (0 bytes), 343 instructions (9604 bytes), 154 strings (2355 bytes), 1 language table (286 bytes).
  552. Datablock optimizer saved 26980 bytes (~0.0%).
  553.  
  554. Using lzma (compress whole) compression.
  555.  
  556. EXE header size: 77312 / 37888 bytes
  557. Install code: (24317 bytes)
  558. Install data: (70085963 bytes)
  559. Compressed data: 17652567 / 70110280 bytes
  560. CRC (0xD32C971E): 4 / 4 bytes
  561.  
  562. Total size: 17729883 / 70148172 bytes (25.2%)
  563.  
  564. 5 warnings:
  565. 7025: "${LANG_ENGLSH}" is not a valid language id, using language id 1033! (C:\cygwin64\tmp\NsisInstal\MyApp.nsi:96)
  566. 7025: "${LANG_ENGLSH}" is not a valid language id, using language id 1033! (C:\cygwin64\tmp\NsisInstal\MyApp.nsi:99)
  567. 7025: "${LANG_ENGLSH}" is not a valid language id, using language id 1033! (C:\cygwin64\tmp\NsisInstal\MyApp.nsi:101)
  568. 7998: ANSI targets are deprecated
  569. 6020: Uninstaller script code found but WriteUninstaller never used - no uninstaller will be created.
  570.  
Advertisement
Add Comment
Please, Sign In to add comment