Chinaunix首页 | 论坛 | 博客
  • 博客访问: 56589
  • 博文数量: 9
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 145
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-14 22:57
个人简介

沧海之一粟

文章分类

全部博文(9)

文章存档

2015年(2)

2014年(7)

我的朋友

分类: Windows平台

2015-04-17 10:41:03

此脚本在Windows 7 64位环境下进行过测试。

点击(此处)折叠或打开

  1. [Setup]
  2. ;要打包的文件的源路径。次路径后面可以不带反斜杠(\)
  3. SourceDir="The Directory Of Files To Be Packed"
  4. ;程序名称
  5. AppName=Application Name
  6. AppVersion=1.0
  7. AppPublisher=Your Company Name
  8. AppId=Application ID
  9. DefaultDirName={pf}\Application Installation Directory Name
  10. DefaultGroupName=Application Name
  11. ;使用整体压缩
  12. Compression=lzma2
  13. SolidCompression=yes
  14. ;生成的安装文件的图标。此图标的路径相对于SourceDir的值
  15. SetupIconFile="Installer Icon.ico"
  16. ;卸载程序相关信息
  17. Uninstallable=yes
  18. UninstallDisplayIcon="{app}\Uninstaller Icon.ico"
  19. UninstallDisplayName="Uninstall Application Name"
  20. ;打包后生成的安装程序的路径
  21. Output=yes
  22. OutputBaseFilename=The Setup Application Name To Be Generated
  23. ;将打包后的安装文件生成到桌面
  24. OutputDir="userdocs:..\Desktop"
  25. [Files]
  26. ;源所使用的路径为[Setup]中定义的SourceDir的值,递归拷贝所有文件(不包含空文件夹)。
  27. Source: "*"; DestDir: "{app}"; Flags: recursesubdirs
  28. [Dirs]
  29. ;安装程序时创建的文件夹
  30. Name: "{app}\Temp\Whatever You Want"
  31. [Icons]
  32. ;桌面快捷方式
  33. Name: "{commondesktop}\Application Name"; Filename: "{app}\The Real Executable Application Name.exe"; WorkingDir: "{app}"; IconFilename: "{app}\Application Icon.ico"
  34. ;开始菜单目录
  35. Name: "{userstartmenu}\Application Name\Application Desktop Shortcut Name"; Filename: "{app}\The Real Executable Application Name.exe"; WorkingDir: "{app}"; IconFilename: "{app}\Application Icon.ico"
  36. Name: "{userstartmenu}\Application Name\Uninstaller Shortcut Name"; Filename: "{app}\unins000.exe"; WorkingDir: "{app}"; IconFilename: "{app}\Uninstaller Icon.ico"
  37. [UninstallDelete]
  38. ;卸载时删除程序的安装路径和开始菜单等
  39. Type: filesandordirs; Name: "{app}"
  40. Type: filesandordirs; Name: "{userstartmenu}\Application Name\*"
  41. Type: dirifempty; Name: "{userstartmenu}\Application Name"
  42. [Languages]
  43. Name: "ChineseSimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
  44. [LangOptions]
  45. DialogFontSize=9
  46. WelcomeFontSize=12
  47. TitleFontSize=29
  48. CopyrightFontSize=9
  49. RightToLeft=no

除以上脚本之外还有一个中文语言文件,否则生成的安装程序的界面是英文的。
将此文件放在Inno Setup安装目录下的Languages文件夹中即可
ChineseSimplified.zip
阅读(2541) | 评论(0) | 转发(0) |
0

上一篇:Eclipse 无法使用Alt+/快捷键问题

下一篇:没有了

给主人留下些什么吧!~~