我曾經在Inno Setup中項目。所有安裝完美,但桌面上的圖標不顯示 - 圖標的白色。Inno Setup - 不顯示桌面上的圖標
#define MyAppName "My Program"
#define MyAppVersion "3.2.0"
#define MyAppVersionName "My Program 3 (64-bit)"
#define MyAppExeName "myprogram.exe"
..................
[Setup]
SetupIconFile=C:\Users\path_to_my_program\myprogram_Icon.ico
................
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppVersionName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
如果我一直在寫部分[圖標]:
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
然後我得到的桌面圖標完美之後安裝。
我該如何解決它的問題?
非常感謝。
如果EXE不包含集成的圖標,那麼你應該複製/安裝圖標文件以及EXE,並在'[Icons]'部分使用'IconFilenName'標誌,例如:'[Files] Source:「C:\ Users \ path_to_my_program \ myprogram_Icon.ico「; DestDir:「{app}」[圖標]名稱:「{commondesktop} \ {#MyAppVersionName}」;文件名:「{app} \ {#MyAppExeName}」; IconFileName:「{app} \ myprogram_Icon.ico」;任務:desktopicon' – RobeN
非常感謝! –