john_1726

Untitled

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