hoguowi
驱动牛犊
驱动牛犊
  • 注册日期2006-07-22
  • 最后登录2012-12-20
  • 粉丝0
  • 关注0
  • 积分27分
  • 威望213点
  • 贡献值1点
  • 好评度19点
  • 原创分0分
  • 专家分10分
阅读:6406回复:4

求助:inno Setup打包驱动程序

楼主#
更多 发布于:2009-02-26 11:07
最近在做用inno Setup 打包驱动程序
碰到的问题是 Setup包装上去了 但是硬件插上电脑还是提示 让安装驱动
我的 代码如下 :望高手指点
[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
AppId={{FB42E4E0-08E1-48CA-A56E-57380B486D16}
AppName=test
AppVerName=testV1.1
AppPublisher=vitaminc
DefaultDirName={pf}\test
DefaultGroupName=test汉化版
OutputBaseFilename=setup2
Compression=lzma
SolidCompression=yes

SetupIconFile = C:\Program Files\360Safebox\icon\华夏银行.ico
BackColor=clBlue
BackColor2=clBlack
Uninstallable = yes
CreateAppDir = no
CreateUninstallRegKey = yes
DisableFinishedPage = no
UninstallDisplayIcon =  C:\Program Files\360Safebox\icon\华夏银行.ico

WizardImageBackColor = clMaroon
ChangesAssociations = yes

[Registry]

Root: HKCR; Subkey: ""; ValueType: string; ValueName: "DevLoader"; ValueData: "*ntkern"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "NTMPDriver"; ValueData: "lpc23xx.sys"
Root: HKLM; Subkey: "System\Currentcontrolset\Services\LPC23xx\Parameters"; ValueType: dword; ValueName:"MaximumTransferSize";ValueData: "1023"
Root: HKLM; Subkey: "System\Currentcontrolset\Services\LPC23xx\Parameters"; ValueType: dword; ValueName:"DebugLevel";ValueData:"2"

Root: HKCR; Subkey: ""; ValueType: string; ValueName: "DriverDesc"; ValueData: "test"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "InfPath"; ValueData: "oem21.inf"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "InfSection"; ValueData: "LPC23xx.Dev"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "InfSectionExt"; ValueData: ".NT"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "MatchingDeviceId"; ValueData: "usb\vid_0471&pid_2378"


[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
Name: "english"; MessagesFile: "compiler:Languages\English.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "D:\Program Files\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\helihua\Administrator\lpc23xx.inf";  DestDir: "{win}\inf"; Flags: ignoreversion
Source: "C:\Documents and Settings\helihua\桌面\lpc23xx.sys";  DestDir: "{sys}\drivers"; Flags: ignoreversion
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”

[Icons]
Name: "{group}\[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
AppId={{FB42E4E0-08E1-48CA-A56E-57380B486D16}
AppName=test
AppVerName=testV1.1
AppPublisher=vitaminc
DefaultDirName={pf}\test
DefaultGroupName=test汉化版
OutputBaseFilename=setup2
Compression=lzma
SolidCompression=yes

SetupIconFile = C:\Program Files\360Safebox\icon\华夏银行.ico
BackColor=clBlue
BackColor2=clBlack
Uninstallable = yes
CreateAppDir = no
CreateUninstallRegKey = yes
DisableFinishedPage = no
UninstallDisplayIcon =  C:\Program Files\360Safebox\icon\华夏银行.ico

WizardImageBackColor = clMaroon
ChangesAssociations = yes

[Registry]

Root: HKCR; Subkey: ""; ValueType: string; ValueName: "DevLoader"; ValueData: "*ntkern"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "NTMPDriver"; ValueData: "lpc23xx.sys"
Root: HKLM; Subkey: "System\Currentcontrolset\Services\LPC23xx\Parameters"; ValueType: dword; ValueName:"MaximumTransferSize";ValueData: "1023"
Root: HKLM; Subkey: "System\Currentcontrolset\Services\LPC23xx\Parameters"; ValueType: dword; ValueName:"DebugLevel";ValueData:"2"

Root: HKCR; Subkey: ""; ValueType: string; ValueName: "DriverDesc"; ValueData: "test"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "InfPath"; ValueData: "oem21.inf"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "InfSection"; ValueData: "LPC23xx.Dev"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "InfSectionExt"; ValueData: ".NT"
Root: HKCR; Subkey: ""; ValueType: string; ValueName: "MatchingDeviceId"; ValueData: "usb\vid_0471&pid_2378"


[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
Name: "english"; MessagesFile: "compiler:Languages\English.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "D:\Program Files\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Administrator\lpc23xx.inf";  DestDir: "{win}\inf"; Flags: ignoreversion
Source: "C:\Documents and Settings\lpc23xx.sys";  DestDir: "{sys}\drivers"; Flags: ignoreversion
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”

[Icons]
Name: "{group}\test"; Filename: "{app}\MyProg.exe"
Name: "{commondesktop}\test"; 汉化版"; Filename: "{app}\MyProg.exe"; Tasks: desktopicon
Name: "{group}\Uninstall test";  "; Filename:"{uninstallexe}"

[INI]

Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Flags: uninsdeletesectionifempty
Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; String: "{app}"; Flags: uninsdeleteentry

[Run]

Filename: "{app}\MyProg.exe"; Description: "{cm:LaunchProgram,test}"; Flags: nowait postinstall skipifsilent


"; Filename: "{app}\MyProg.exe"
Name: "{commondesktop}\汉化版"; Filename: "{app}\MyProg.exe"; Tasks: desktopicon
Name: "{group}\Uninstall MW08A "; Filename:"{uninstallexe}"

[INI]

Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Flags: uninsdeletesectionifempty
Filename: "{win}\MYPROG.INI"; Section: "InstallSettings"; Key: "InstallPath"; String: "{app}"; Flags: uninsdeleteentry

[Run]

Filename: "{app}\MyProg.exe"; Description: "{cm:LaunchProgram,test}"; Flags: nowait postinstall skipifsilent


hoguowi
驱动牛犊
驱动牛犊
  • 注册日期2006-07-22
  • 最后登录2012-12-20
  • 粉丝0
  • 关注0
  • 积分27分
  • 威望213点
  • 贡献值1点
  • 好评度19点
  • 原创分0分
  • 专家分10分
沙发#
发布于:2009-02-26 15:41
没有人顶牙
版主给点提示呀
zhuguang
驱动牛犊
驱动牛犊
  • 注册日期2009-05-25
  • 最后登录2011-05-20
  • 粉丝0
  • 关注0
  • 积分3分
  • 威望41点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2009-06-21 13:16
遇到同样问题,同问
icboy591
驱动牛犊
驱动牛犊
  • 注册日期2009-05-26
  • 最后登录2010-04-13
  • 粉丝16
  • 关注1
  • 积分64分
  • 威望611点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2009-11-10 12:43
icboy591
驱动牛犊
驱动牛犊
  • 注册日期2009-05-26
  • 最后登录2010-04-13
  • 粉丝16
  • 关注1
  • 积分64分
  • 威望611点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2009-11-11 16:56
回 楼主(hoguowi) 的帖子
是代码上传的时候传重复了
还是程序就是这样子
如果本来就是这样子
游客

返回顶部