Inno Setup 安装制作应用
在Inno Setup安包制作的时候、会发展项目下的子文件夹会 生成到主文件下面。导致程序无法使用。
#define MyAppName "4D××××××××××V1.0" #define MyAppVersion "1.0.0.0" #define MyAppPublisher "成都×××××××" #define MyAppURL "http://www.×××××.com" #define MyAppExeName "SIMU-PMPAPP.exe" [Setup] ; 注: AppId的值为单独标识该应用程序。 ; 不要为其他安装程序使用相同的AppId值。 ; (生成新的GUID,点击 工具|在IDE中生成GUID。) AppId={{9023F0DB-1C40-41ED-9B7C-61E6E117F3BA} AppName={#MyAppName} AppVersion={#MyAppVersion} ;AppVerName={#MyAppName} {#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={pf}\{#MyAppName} DefaultGroupName={#MyAppName} OutputDir=E:\TestSetup OutputBaseFilename=4D网格 Compression=lzma SolidCompression=yes
上面注意的 #MyappName
#define MyAppExeName "SIMU-PMPAPP.exe"----程序要执行的主文件
Source: "E:\TestSetup\Release\System.Xml.Linq.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\UIAutomationProvider.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\UIAutomationTypes.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\WindowsBase.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\WindowsFormsIntegration.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\WinVideoPanelControl.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\WinVideoPanelControl.pdb"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\WPFToolkit.Extended.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "E:\TestSetup\Release\Configs\*"; DestDir: "{app}\Configs"; Flags: ignoreversion //默认DestDir:{app} 应用设置后加 程序对应的子文件夹 Source: "E:\TestSetup\Release\HKDLL\*"; DestDir: "{app}\HKDLL"; Flags: ignoreversion Source: "E:\TestSetup\Release\Data\*"; DestDir: "{app}\Data"; Flags: ignoreversion