Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inno setup installer creation failed: undefined method encode for #<Ocra::Pathname: #160

Open
kematy opened this issue Apr 9, 2020 · 1 comment

Comments

@kematy
Copy link

kematy commented Apr 9, 2020

When I run ocra:
ocra xlsx2dxf.rb --no-lzma --chdir-first --innosetup xlsx2dxf.iss --windows
I got
xlsx2dxf.iss: inno setup installer creation failed: undefined method encode for #<Ocra::Pathname:...
I want to know why and how solve it.
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[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={{5EF3D4BF-0B29-4C06-9C06-CD60892FDAA8}
AppName=ExcelToDXF
AppVersion=1.0
;AppVerName=ExcelToDXF 1.0
AppPublisher=FSTL
AppPublisherURL=[email protected]
AppSupportURL=[email protected]
AppUpdatesURL=[email protected]
DefaultDirName={autopf}\xlsx2DXF
DisableProgramGroupPage=yes
InfoAfterFile=D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\注册及使用说明.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputBaseFilename=mysetup
Compression=lzma
SolidCompression=yes
WizardStyle=modern

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

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

[Files]
Source: "D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\xlsx2dxf.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\drw.so"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\jydisk.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\pub_key.pem"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\test_kk.xlsx"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\ruby-project\xlsx2dxf\encprted\xlsx2dxf\注册及使用说明.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\ruby-project\xlsx2dxf\encprted\rgloader*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\ExcelToDXF"; Filename: "{app}\xlsx2dxf.exe"
Name: "{autodesktop}\ExcelToDXF"; Filename: "{app}\xlsx2dxf.exe"; Tasks: desktopicon

[Run]
Filename: "{app}\xlsx2dxf.exe"; Description: "{cm:LaunchProgram,ExcelToDXF}"; Flags: nowait postinstall skipifsilent

@kematy
Copy link
Author

kematy commented Apr 9, 2020

I delete [Files],got the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant