将整个应用程序文件夹捆绑到安装程序中

时间:2018-08-27 05:20:58

标签: node.js windows file installer inno-setup

我创建了一个带有节点的应用程序,并将其打包,得到两个文件夹以及一些DLL,EXE和其他文件。 Inno的效果很好,只是它似乎没有包含app.exe文件之外的任何其他文件:这是安装脚本:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Pixelmate"
#define MyAppVersion "1.0.0"
#define MyAppPublisher "Eladnava"
#define MyAppURL "https://github.com/eladnava/pixelmate"
#define MyAppExeName "Pixelmate.exe"

[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={{9212F3FB-723F-4830-ABB2-65F35E541E2B}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=C:\Users\Jacob Schneider\Code\pixelmate\Pixelmate-win32-x64\LICENSE
OutputBaseFilename=pixelmate-setup
Compression=lzma
SolidCompression=yes

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

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\Jacob Schneider\Code\pixelmate\Pixelmate-win32-x64\Pixelmate.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

运行安装程序将Exe文件安装到我的计算机上,然后运行它,并显示一条错误消息,指出未找到“ node.dll”。

0 个答案:

没有答案