diff --git a/DwoodAutoSetup.exe b/DwoodAutoSetup.exe index 790f012..60797e9 100644 Binary files a/DwoodAutoSetup.exe and b/DwoodAutoSetup.exe differ diff --git a/Version.json b/Version.json index f05cb51..e2bef02 100644 --- a/Version.json +++ b/Version.json @@ -1,5 +1,5 @@ { - "Version": 1027, + "Version": 1028, "Url": "DwoodAutoSetup.exe", "Content": "", "history_version": [ diff --git a/上位机安装脚本_new.iss b/上位机安装脚本_new.iss new file mode 100644 index 0000000..3340d61 --- /dev/null +++ b/上位机安装脚本_new.iss @@ -0,0 +1,94 @@ +; Script generated by the Inno Setup Script Wizard. +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! + +#define MyAppName "DwoodAuto" +#define MyAppVersion "1.0.2.8" +#define MyAppPublisher "յľӦ޹˾, Inc." +#define MyAppURL "https://www.example.com/" +#define MyAppExeName "mes-admin-win.exe" +#define MyAppAssocName MyAppName + " File" +#define MyAppAssocExt ".myp" +#define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt + +[Setup] + +; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) +AppId={{5FB14BED-AC62-4022-A224-396FDE9D9B99} +AppName={#MyAppName}{#MyAppVersion} +AppVersion={#MyAppVersion} +;AppVerName={#MyAppName} {#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +AppSupportURL={#MyAppURL} +AppUpdatesURL={#MyAppURL} +DefaultDirName=D:\Program Files\{#MyAppName} +ChangesAssociations=yes +DisableProgramGroupPage=yes +PrivilegesRequired=admin +;ļ TODO +LicenseFile=C:\Users\11964\Desktop\ľ\\DwoodOutput\DwoodOutput\default.txt + +; Uncomment the following line to run in non administrative install mode (install for current user only.) +;PrivilegesRequired=lowest +UninstallDisplayName=Ҫж{#MyAppName} +;װͼ TODO +UninstallDisplayIcon=C:\Users\11964\Desktop\ľ\\DwoodOutput\DwoodOutput\logo.ico +;Ŀ¼ TODO +OutputDir=C:\Users\11964\Desktop\ľ\\DwoodOutput\DwoodOutput +OutputBaseFilename=DwoodAutoSetup +Compression=zip +SolidCompression=yes +WizardStyle=modern + +[Code] +procedure TaskKill(FileName: String); +var + ResultCode: Integer; +begin + Exec('taskkill.exe', '/f /im ' + '"' + FileName + '"', '', SW_HIDE, + ewWaitUntilTerminated, ResultCode); +end; + +function InitializeSetup: Boolean; +begin + // MsgBox('һʾϢ', mbInformation, MB_OK); + TaskKill('mes-admin-win.exe'); + Result := true; +end; + + +[Languages] +Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl" + +[Tasks] +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked + +;TODO Releaseļ +[Files] +Source: "C:\demuProject\jason\mes-admin-windows.git\Files\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs +Source: "C:\demuProject\jason\mes-admin-windows.git\Common\bin\Release\Common.dll"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\demuProject\jason\mes-admin-windows.git\mes_admin_win-Controls\bin\Release\mes_admin_win-Controls.dll"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win-pullrtsp\bin\x64\Release\mes-admin-win-pullrtsp.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win\bin\x64\Release\mes-admin-win.exe"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win\bin\x64\Release\mes-admin-win.exe.config"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\demuProject\jason\mes-admin-windows.git\mes-admin-win\bin\x64\Release\log4net.config"; DestDir: "{app}"; Flags: ignoreversion + +; NOTE: Don't use "Flags: ignoreversion" on any shared system files + +[Registry] +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0" +Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1""" +Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: "" +;дעֹʹãֻͨװʹ ,жԴע֤ +Root:HKLM;Subkey:SOFTWARE\Classes\{#MyAppName};ValueType: string; ValueName:"Version";ValueData:"{#MyAppVersion}";Flags: uninsdeletevalue + +[Icons] +Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";IconFilename:"{app}\logo.ico" +Name: "{autodesktop}\ľԶϵͳ"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon;IconFilename:"{app}\logo.ico" + +[Run] +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent +