Hej guys! 我試圖做一個安裝程序爲我用InnoSetup的應用程序,一切順利FINDE,只是一個小問題: 它不創造我把Innosetup在應用程序目錄中創建文件夾
Source: "C:\Users\Etix\Desktop\Fower\data\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\Etix\Desktop\Fower\Media\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
的directorys它只是放directorys的所有文件中應用程序文件夾,但不會創建導演並將文件放入其中。 你知道如何讓它真的創建文件夾,並把他們的文件?
這裏我的整個代碼:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Fower"
#define MyAppVersion "1.0"
#define MyAppPublisher "FoxFire Development"
#define MyAppURL "http://www.foxfiredev.net"
#define MyAppExeName "Fower.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={{1D8512EB-BA40-41B9-8E38-262D637508B9}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir=C:\Users\Etix\Desktop\FowerSetup
OutputBaseFilename=FowerSetup
SetupIconFile=C:\Users\Etix\Desktop\FoxFireDev\Projekt - Fower\ManagementNeu\Release\icon.ico
Compression=lzma
SolidCompression=yes
[Languages]
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
Source: "C:\Users\Etix\Desktop\Fower\Fower.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\data\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\Etix\Desktop\Fower\Media\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\Etix\Desktop\Fower\icon.png"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\libsndfile-1.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\msvcp110.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\msvcr110.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\openal32.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sansation.ttf"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfgui wqeq.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfgui.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfml-audio-2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfml-graphics-2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfml-network-2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfml-system-2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\sfml-window-2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\tgui.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Etix\Desktop\Fower\thor.dll"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
這不應該發生。你正在使用正確的標誌作爲這些條目,並且這些文件實際上被複制到與它們的源相同的文件夾結構中(我剛剛在Inno Setup 5.5.4(u)中測試了它)。 – TLama 2014-10-09 19:52:41