阅读:6534回复:4
求助:inno Setup打包驱动程序
最近在做用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 |
|
沙发#
发布于:2009-02-26 15:41
没有人顶牙
版主给点提示呀 |
|
板凳#
发布于:2009-06-21 13:16
遇到同样问题,同问
|
|
地板#
发布于:2009-11-10 12:43
|
|
地下室#
发布于:2009-11-11 16:56
回 楼主(hoguowi) 的帖子
是代码上传的时候传重复了还是程序就是这样子 如果本来就是这样子 |
|