用下面的例子试试看行不行.
[Setup]
AppName=测试程序
AppVerName=测试程序1.0
AppCopyright=版权所有 (C) 2002-2003 黄昏狼制作室
DefaultDirName={pf}/Test
DefaultGroupName=测试程序
MinVersion=4,4
AlwaysRestart=no
AlwaysCreateUninstallIcon=yes
WindowVisible=no
DiskSpanning=no
UseSetupLdr=yes
OutputDir=.
BackSolid=yes
BackColor=clTeal
OutputBaseFilename=setup
[Files]
Source: "test.exe"; DestDir: "{app}";
[Icons]
Name: "{group}/测试程序"; Filename: "{app}/test.exe" ; WorkingDir: "{app}"
Name: "{userdesktop}/测试程序"; Filename: "{app}/test.exe" ; WorkingDir: "{app}"
[Registry]
Root: HKLM; Subkey: "Software/test"; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software/test/test"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software/test/test"; ValueType: string; ValueName: "InstDir"; ValueData: "{app}"