2011-11-15 474 views
0

收盤報價在編譯時,匯創口口聲聲說有一個錯誤:錯誤:缺少在參數「名稱」

Line: 81 
Error: Missing closing quote on parameter "Name" 

,但我看不出有什麼不妥。它指向線僅低於[圖標]

[Files] 
Source: "{#SOURCEDIR}\Debug\myapplication.exe"; DestDir: {app}; Flags: ignoreversion 
Source: "{#SOURCEDIR}\Debug\aDllFile.dll"; DestDir: {app}; Flags: ignoreversion 
Source: "{#SOURCEDIR}\Debug\another.aDllFile.dll"; DestDir: {app}; Flags: ignoreversion 
Source: "{#SOURCEDIR}\Debug\and.another.aDllFile.dll"; DestDir: {app}; Flags: ignoreversion 
; NOTE: Don't use "Flags: ignoreversion" on any shared system files 

[Icons] 
Name: "{group}\{#APPTITLE}"; Filename: "{app}\{#APPEXENAME}" 
Name: "{group}\{cm:ProgramOnTheWeb,{#APPTITLE}}"; Filename: "{#APPURL}" 
Name: "{group}\{cm:UninstallProgram,{#APPTITLE}}"; Filename: "{uninstallexe}" 
Name: "{commondesktop}\{#APPTITLE}"; Filename: "{app}\{#APPEXENAME}"; Tasks: desktopicon 
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#APPTITLE}"; Filename: "{app}\{#APPEXENAME}"; Tasks: quicklaunchicon 
Name: "{userstartup}\{#APPTITLE}"; Filename: "{app}\{#APPEXENAME}"; IconFilename: "{app}\{#APPEXENAME}"; 

[Run] 
;Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, ""&"", ""&&"")}}"; Flags: nowait RunHidden SkipIfDoesntExist; Parameters: exit; WorkingDir: {app}; 
Filename: {app}\{#APPEXENAME}; Description: "{cm:LaunchProgram,{#StringChange(APPNAME, "noupdate", "&&")}}"; Flags: nowait postinstall skipifsilent 


[Messages] 
WelcomeLabel1=Welcome to the Setup Wizard for%n[name] 
WelcomeLabel2=Salve! This application will install [name/ver] on your computer. You do not need administrator rights to do this.%n%nIf you would close your other applications before continuing, it would be mighty nice of you. 
ExitSetupMessage=Hey! I'm not finished installing!%n If you exit now, the program will not be installed.%n%nHowever, you can always run the Setup again some other time if you wish to complete the installation.%n%nDo you still want to exit? 
InfoBeforeLabel=Just a few little notes about {#APPTITLE}... 
InfoBeforeClickLabel=When you are ready to continue the Installation, just click Next. 
SelectTasksDesc=Just a few little tidbits, if you like them... 

[注]

我不能相信,這一問題被視爲1003次,沒有人給我一票!

+0

哪一行是81行,什麼是SOURCEDIR和APPTITLE(以及其他)定義爲? – Deanna

+0

是否有任何宏 - {#APPTITLE}等含有引號?也可以嘗試刪除[圖標]上方的註釋行,隨機拍攝,但它有引號。 – sashoalm

+0

BGM已經找到了它發生的原因(在文件描述中引用,然後在ISPP定義中引用)並在另一個論壇中發佈。我也要求他們在這裏回覆。 – Deanna

回答

1

好吧,我知道了。我的一個定義是失敗的。它應該從目標可執行文件的資源中提取file_description。

#define APPTITLE GetStringFileInfo("C:\sourcepath\myapplication.exe", FILE_DESCRIPTION) 

有一個'在文件描述!這導致Inno引用所有的引號。

這裏是迪伊厄雷在創新科技論壇上告訴我:

它爲什麼要逃跑呢?它不知道它需要什麼來逃避它,它只是「一個字符串」。如果需要使用StringChange()或者只是正確地引用它,你應該將它轉義出來。 '