Alshabh

Untitled

Aug 25th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. Here is a copy of a Self Extraction Directive (SED) file. Keep in mind you can IExpress 2.0 to create an .EXE for many items like batch files, Inf files, VBS files and other .exe files. For this purpose we are talking about VBScripts. You can edit this file and "recompile" your .exe. Why would you want recompile your .exe? To name a few you might find unwanted behavior in your VBS or you may need to add additional files and you don't want to have to go through the entire IExpress setup again, so you would change data in this file and in two clicks your app is recompiled.
  2.  
  3. First, let�s talk about some important sections in this SED file. There are five sections Version, Options, Strings, SourceFiles, and SourceFiles0. When editing your SED files you will be mostly working in the Strings, SourceFiles, and SourceFiles0 sections, most of the Options section was done when you created the package for the first time.
  4.  
  5. Here is the strings section with comments:
  6. [Strings]
  7. InstallPrompt= �Use if you want the user to confirm your install, I never use this option.
  8. DisplayLicense= �Use if you have an EULA or the like, I never use this option.
  9. FinishMessage= �If you want to inform the user that your install is done.
  10. TargetName= �The directory path and name of your .EXE
  11. FriendlyName= �This is the package title and what is help in memory.
  12. AppLaunched= �This is the command line REMEMBER to use quotes around directory paths with spaces
  13. PostInstallCmd= �If you have an app that need to run last put the command line here.
  14. AdminQuietInstCmd= �You use this to tell IExpress when given the /q:a switch what command to use for the internal exe, vbs, hta, etc.
  15. UserQuietInstCmd= �You use this to tell IExpress when given the /q switch what command to use for the internal exe, vbs, hta, etc.
  16. FILE0= �The name of the source file. Every file you include will have a FILE1= or FILE2= and so on.
  17.  
  18. Here are the SourceFiles and SourceFiles0 sections:
  19. [SourceFiles]
  20. SourceFiles0= �The directory path containing all of the source files listed in this SED file.
  21. [SourceFiles0] �For every FILEx= listed in the strings section you MUST have the variable listed here.
  22. %FILE0%=
  23. %FILE1%=
  24. %FILE2%=
  25.  
  26.  
  27. Complete Self Extraction Directive(SED) for an app called HelloWorld.EXE
  28. [Version]
  29. Class=IEXPRESS
  30. SEDVersion=3
  31. [Options]
  32. PackagePurpose=InstallApp
  33. ShowInstallProgramWindow=1
  34. HideExtractAnimation=1
  35. UseLongFileName=1
  36. InsideCompressed=0
  37. CAB_FixedSize=0
  38. CAB_ResvCodeSigning=0
  39. RebootMode=N
  40. InstallPrompt=%InstallPrompt%
  41. DisplayLicense=%DisplayLicense%
  42. FinishMessage=%FinishMessage%
  43. TargetName=%TargetName%
  44. FriendlyName=%FriendlyName%
  45. AppLaunched=%AppLaunched%
  46. PostInstallCmd=%PostInstallCmd%
  47. AdminQuietInstCmd=%AdminQuietInstCmd%
  48. UserQuietInstCmd=%UserQuietInstCmd%
  49. SourceFiles=SourceFiles
  50. VersionInfo=VersionSection
  51. [VersionSection]
  52. FileDescription=Installer for Hello World
  53. LegalCopyright=
  54. CompanyName=Your Company Name
  55. FileVersion=1.1
  56. InternalName=Hello World
  57. OriginalFilename=Hello_World
  58. ProductName=Hello World
  59. ProductVersion=1.1
  60. [Strings]
  61. InstallPrompt=
  62. DisplayLicense=
  63. FinishMessage=
  64. TargetName=C:\Scripts\Iexpress_Installs\HelloWorld.EXE
  65. FriendlyName=Hello World
  66. AppLaunched=C:\Windows\system32\wscript.exe Hello.vbs
  67. PostInstallCmd=<None>
  68. AdminQuietInstCmd=
  69. UserQuietInstCmd=
  70. FILE0="Hello.vbs"
  71. FILE1="example.txt"
  72. [SourceFiles]
  73. SourceFiles0=C:\Scripts\Iexpress_Installs\
  74. [SourceFiles0]
  75. %FILE0%=
  76. %FILE1%=
Advertisement
Add Comment
Please, Sign In to add comment