inno

ISSI]

;; Activation of Serial Generation
;#define ISSI_GenerateSerial

;#define ISSI_URL "http://www.***.com"
;#define ISSI_UrlText "{cm:ProgramOnTheWeb,***}"
;; (Dafault is "Capitals" + "Numbers")
;; #define ISSI_GenerateSerial "Numbers"
;; #define ISSI_GenerateSerial "All"
;; #define ISSI_GenerateSerial "Capitals"
;; #define ISSI_GenerateSerial "Letters"

;; OPTIONAL: Generate groups of these lengths (Defaults to 5)
;#define ISSI_GenerateSerial_GroupLength 3

;; OPTIONAL: Generate x number of groups (Defaults to 5)
;#define ISSI_GenerateSerial_Groups 6

;; OPTIONAL: For naming of ini [Sections] and folder structure
;#define ISSI_GenerateSerial_AppName "ISSI Serial Generator v1.0"


;; REQUIRED: Issi include
#define ISSI_IncludePath "C:/Inno Setup 5/issi"
#include ISSI_IncludePath+"/_issi.isi"
; 腳本用 Inno Setup 腳本嚮導 生成。
; 查閱文檔獲取創建 INNO SETUP 腳本文件詳細資料!

#define MyAppName "app"
#define MyAppVerName "*** v1.0.0"
#define MyAppPublisher "***公司"
;#define MyStartService "啓動服務"
;#define MyStopService "停止服務"
#define setEnv "設置環境變量"
#define MyAppURL "http://localhost:8080/Appviewer"
;#define MyAppExeName "tomcat6w.exe"
[Setup]
; 注意: AppId 的值是唯一識別這個程序的標誌。
; 不要在其他程序中使用相同的 AppId 值。
; (在編譯器中點擊菜單“工具 -> 產生 GUID”可以產生一個新的 GUID)
AppId={{E6172DB8-7134-4F96-AAA4-72681DD5D850}
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}/{#MyAppName}
DefaultGroupName=***信息平臺
AllowNoIcons=yes
LicenseFile=F:/2月23日/LICENSE.rtf
OutputDir=D:/setup
OutputBaseFilename=appviewer
SetupIconFile=D:/setup/favicon.ico
Compression=lzma
SolidCompression=yes
;;
;嚮導圖片
;WizardImageFile=Office2007.bmp
;嚮導小圖片
WizardSmallImageFile=compiler:WizModernSmallImage-IS.bmp
VersionInfoCompany=***公司
VersionInfoDescription=***平臺
VersionInfoVersion=1.0.0.0

;AlwaysRestart=YES

[Languages]
Name: "chinese"; MessagesFile: "compiler:Default.isl"
;Name: "chs"; MessagesFile: "chs.isl";

[Tasks]
;Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
;Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
;隨設置隨電腦是否啓動
;Name: "startup"; Description: "開機啓動服務"; GroupDescription: "添加啓動選項" ;Flags: unchecked
;隨設置隨電腦是否啓動

[Files]
;Source: "F:/project/start.bat"; DestDir: "{app}"; Flags: ignoreversion
Source: "F:/project/*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "waterctrl.dll"; Flags: dontcopy
Source: "WizModernImage-Is.bmp"; Flags: dontcopy
Source: "F:/component/*.*"; DestDir: "{app}/***用戶使用手冊doc格式"; Flags: ignoreversion recursesubdirs; components: installsample
Source: "F:/component1/*.*"; DestDir: "{app}/***用戶使用手冊pdf格式"; Flags: ignoreversion recursesubdirs; components: installsample1
;Source: "UninsHs.exe"; DestDir: "{app}"; Flags: restartreplace
;Source: "F:/setupapp/設置環境變量.exe"; DestDir: {app}; Flags: ignoreversion deleteafterinstall
Source: "I:/20090119打包/work/GrandDogSetup.dll"; DestDir:{tmp};Flags: ignoreversion deleteafterinstall
Source: "I:/20090119打包/work/DogInst.exe"; DestDir:{tmp};Flags: ignoreversion deleteafterinstall
Source: "F:/setupapp/設置環境變量.exe"; DestDir:{app};Flags: ignoreversion deleteafterinstall


[Messages]
BeveledLabel=***
;20090203 ; *** Application titles
;SetupAppTitle=安裝  - ****
SetupWindowTitle=安裝 - ****

[Icons]
;Name: "{group}/Tomcat 服務"; Filename: "{app}/apache-tomcat-6.0.16/bin/tomcat6w.exe"
;Name: "{userappdata}/Microsoft/Internet Explorer/Quick Launch/{#MyAppName}"; Filename: "{app}/{#MyAppExeName}"; Tasks: quicklaunchicon
;Name: "{commondesktop}/{#MyAppName}"; Filename: "{app}/{#MyAppExeName}"; Tasks: desktopicon
;Name: "{group}/設置java_home"; Filename: "{app}/設置Java_Home.exe"
Name: "{group}/{cm:ProgramOnTheWeb,***}"; Filename: "http://www.zhongrx.com/"
Name: "{group}/{cm:ProgramOnTheWeb,***}"; Filename: "http://localhost:8080/Appviewer"
Name: "{group}/FAQ"; Filename: "{app}/FAQ.txt"

Name: "{group}/配置工具"; Filename: "{app}/tomcat6/webapps/Appviewer/WEB-INF/classes/配置工具.exe"
Name: "{group}/webservice配置"; Filename: "{app}/tomcat6/webapps/AppWebservices/WEB-INF/classes/webservice配置.exe"
Name: "{group}/設置環境變量"; Filename: "{app}/設置環境變量.exe"
Name: "{group}/啓動tomcat服務"; Filename: "{app}/tomcat6/bin/startup.exe"
Name: "{group}/卸載 ***平臺"; Filename: "{uninstallexe}";IconFilename: "{app}/uninstall.ico"
;Name: "{group}/My Program"; Filename: "{app}/MyProg.exe"
;Name: "{group}/卸載 ***平臺"; Filename: "{app}/UninsHs.exe"; Parameters: "/u0=My Program"; WorkingDir: "{app}";


[Components]
Name: "installprogram"; Description: "程序文件"; Types: full custom compact; Flags: fixed
;Name: "installcompiler"; Description: "加密狗"; Types: full custom
Name: "installsample"; Description: "用戶手冊doc格式"; Types: full custom
Name: "installsample1"; Description: "***用戶使用手冊"; Types: full custom

;[Registry]
;Root: HKCU; SubKey: Software/Microsoft/Windows/CurrentVersion/Run; valueType: string; valueName: {#MyAppName}; valueData: "{app}/{#MyAppExeName}";Flags: uninsdeletevalue; Tasks: startup

[Run]
;Filename: "{app}/{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyStartService}}"; Flags: nowait postinstall skipifsilent
;Filename: "{app}/{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyStartService}}"; Flags: nowait postinstall skipifsilent
;20090203
;Filename: "{app}/設置環境變量.exe"; Description: "設置環境環境"; Flags: postinstall shellexec skipifsilent
Filename: "{app}/FAQ.txt"; Description: "FAQ"; Flags:  postinstall shellexec skipifsilent

Filename: "{app}/設置環境變量.exe"; Description: "設置環境變量"; Flags: postinstall shellexec skipifsilent
;Filename: "{app}/start.bat"; Description: "啓動tomcat服務"
;Filename: "{app}/DogInst.exe"; Description: "運行 宏狗驅程"; Flags: nowait postinstall skipifsilent
;Filename: "{app}/UninsHs.exe"; Parameters: "/r0=My Program,{language},{srcexe},{userappdata}/$Inst$/Setup.exe";
Filename: "http://www.z***.com"; Description: "訪問 ***網站"; Flags: postinstall shellexec skipifsilent
;Filename: "{app}/set.bat"
Filename: "{tmp}/DogInst.exe"

Java代碼 複製代碼
  1. function enablewater(ParentWnd: HWND; Left, Top: integer; Bmp: HBITMAP;   
  2.      WaterRadius, WaterHeight: integer): BOOL; external 'enablewater@files:waterctrl.dll stdcall';   
  3. //ParentWnd     放置特效窗口的父窗口句柄。   
  4. //Left          左位置   
  5. //Top           上位置   
  6. //Bmp           位圖句柄。   
  7. //WaterRadius   水紋半徑,會令到水紋看起來範圍更廣。   
  8. //WaterHeight   水紋高度,會令到水紋看起來更深。   
  9. //注意,水紋插件自動根據圖片來設定高度和寬度,   
  10. //另外水紋底圖必須是翻轉的圖片,顯示的時候會翻轉圖片來顯示。   
  11.   
  12. function waterblob(x, y: integer; radius, height: integer): BOOL; external 'waterblob@files:waterctrl.dll stdcall';   
  13. // 在 x,y 點產生半徑爲radius, 高度爲height 的水紋。   
  14.   
  15. function flattenwater(): BOOL; external 'flattenwater@files:waterctrl.dll stdcall';   
  16. // 平伏所有水紋。   
  17.   
  18. function disablewater(): BOOL; external 'disablewater@files:waterctrl.dll stdcall';   
  19. //釋放水紋插件   
  20.   
  21. function setwaterparent(ParentWnd: HWND): BOOL; external 'setwaterparent@files:waterctrl.dll stdcall';   
  22. //v2 新增,設置水紋插件的父句柄   
  23.   
  24. var   
  25.   bmp: TBitmap;   
  26.   LabelDate: TLabel;   
  27.   
  28. procedure InitializeWizard();   
  29. begin   
  30.   LabelDate:=Tlabel.Create(WizardForm.SelectDirpage)   
  31.   LabelDate.Caption:='此爲***文件夾所在目錄,建議默認,不要存爲中文路徑';   
  32.   LabelDate.Left:=ScaleX(10);   
  33.   LabelDate.Top:= ScaleY(120);   
  34.   LabelDate.Font.Color:=$0000FF;   
  35.   LabelDate.Font.Name:= '宋體';   
  36.   LabelDate.Font.Size:= 10;   
  37.   LabelDate.Font.Style:= [fsBold];   
  38.   LabelDate.Parent:= WizardForm.SelectDirpage;   
  39.   ExtractTemporaryFile('WizModernImage-Is.bmp');   
  40.   bmp := TBitmap.create;   
  41.   bmp.LoadFromFile(ExpandConstant('{tmp}/WizModernImage-Is.bmp'));   
  42.   
  43.   enablewater(WizardForm.WelcomePage.Handle, 00, bmp.Handle, 350);   
  44. end;   
  45.   
  46. procedure CurPageChanged(CurPageID: Integer);   
  47. begin   
  48.   if CurPageID = wpWelcome then   
  49.   begin   
  50.     setwaterparent(WizardForm.WelcomePage.Handle);   
  51.     waterblob(70198101000);   
  52.   end else  
  53.   if CurPageID = wpFinished then   
  54.   begin   
  55.     setwaterparent(WizardForm.FinishedPage.Handle);   
  56.     waterblob(70198101000);   
  57.   end else  
  58.     flattenwater();   
  59. end;   
  60.   
  61. procedure DeinitializeSetup();   
  62. begin   
  63.   disablewater();   
  64.   bmp.Free;   
  65. end;  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章