Windows XP中的Windows-xp – inno setup.exe失败,浮点除以零
我设置了一个安装我的应用程序的inno安装脚本.生成的setup.exe将在
Windows Vista / 7上正确安装,但是在windows xp上以零错误排除失败.无耻的示例脚本在Windows XP上工作,因此它必须是我正在做的事情.
谁能看到我做错了什么? ; Script generated by the Inno Setup Script Wizard. #define app_src_path "..MyApp" #define app_exe_path "..bin" #define file_ver GetFileVersion(app_exe_path + "win32MyApp.exe") #define app_ver Delete(file_ver,6,2) [Setup] AppId={{BBB40316-958C-446B-A08D-311273214AA6} AppName=MyApp AppVersion={#app_ver} UninstallDisplayName=MyApp AppPublisher=My Company US DefaultDirName={pf}My CompanyMyApp DisableDirPage=yes DefaultGroupName=My Company DisableProgramGroupPage=yes #emit 'OutputBaseFilename="MyApp-Setup-' + app_ver + '"' #emit 'SetupIconFile="' + app_src_path + 'rcMyAppIcon.ico"' Compression=lzma SolidCompression=yes ArchitecturesInstallIn64BitMode=x64 WizardImageFile=ZDS.bmp WizardSmallImageFile=ZDSsmall.bmp [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [InstallDelete] Type: filesandordirs; Name: "{app}MyApp"; [Files] ; x64 files Source: "{#app_exe_path}x64MyApp.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode ; win32 files Source: "{#app_exe_path}win32MyApp.exe"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode ; platform independent Source: "{#app_src_path}rcpic1-24.png"; DestDir: "{app}rc"; Flags: ignoreversion nocompression Source: "{#app_src_path}rcpic2-24.png"; DestDir: "{app}rc"; Flags: ignoreversion nocompression Source: "{#app_src_path}rcpic3-24.png"; DestDir: "{app}rc"; Flags: ignoreversion nocompression [Icons] Name: "{group}MyApp"; Filename: "{app}MyApp.exe" Name: "{commondesktop}MyApp"; Filename: "{app}MyApp.exe"; Tasks: desktopicon Name: "{group}{cm:UninstallProgram,MyApp}"; Filename: "{uninstallexe}" [Run] Filename: "{app}MyApp.exe"; Description: "{cm:LaunchProgram,MyApp}"; Flags: nowait postinstall skipifsilent 编辑: 2012-07-14 10:07:50.855 Log opened. (Time zone: UTC-04:00) 2012-07-14 10:07:50.855 Setup version: Inno Setup version 5.5.1 (u) 2012-07-14 10:07:50.855 Original Setup EXE: E:MyApp-Setup-0.0.0.exe 2012-07-14 10:07:50.855 Setup command line: /SL5="$801DE,623918,137216,E:MyApp-Setup-0.0.0.exe" /LOG 2012-07-14 10:07:50.855 Windows version: 5.1.2600 SP3 (NT platform: Yes) 2012-07-14 10:07:50.855 64-bit Windows: No 2012-07-14 10:07:50.870 Processor architecture: x86 2012-07-14 10:07:50.870 User privileges: Administrative 2012-07-14 10:07:50.885 Exception message: 2012-07-14 10:07:50.885 Message box (OK): Floating point division by zero. 2012-07-14 10:07:51.654 User chose OK. 2012-07-14 10:07:51.654 Deinitializing Setup. 2012-07-14 10:07:51.654 Log closed. 我没有[代码]部分,所以我对MessageBox(OK)消息源自哪里感到困惑.
补充丹的答案不符合评论…
对于向导图像文件,我尝试使用GIMP 2.8作为图像编辑器,色彩深度和操作系统(Windows 7和Windows XP)的每个可能排列.我想出了以下结果: 你使用什么颜色深度并不重要? 8位,16位,24位或32位.当您考虑它时,这是有道理的,因为Windows XP确实支持桌面上的32位图标.请参阅下面的编辑 当他谈到位图中的“腐败”标题时,丹将它钉在头上.事实证明它没有腐败.默认情况下,GIMP 2.8在位图文件的标题中保存“颜色空间信息”. Innosetup或Windows XP(我不知道哪个)不知道如何正确解释这些信息. 关键是要确保这个颜色空间信息不会保存在位图文件中.从GIMP 2.8导出位图时,您可以选择“不写颜色空间信息”选项,如下图所示. EDIT 2014-Mar-20 一些更新的信息:在InnoSetup版本5.5.4(在Windows 7 64位操作系统上运行和安装),使用上述方法与32位图像给位图图像是编译安装文件运行时无效的错误. 更改为24位图像,仍然没有颜色空间信息,解决了问题. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 窗口 – 使用.bat文件的自定义Tee命令
- .net – Windows应用程序分析
- chmod如何为windows工作?
- windows-server-2003 – 将性能计数器编写到MS SQL数据库的
- windows-server-2008-r2 – 按顺序将Windows Server 2008 R
- windows – 什么是衡量网络延迟的最佳工具?
- windows-server-2008 – 使用WordPress,Microsoft Azure和I
- windows – 在运行时请求管理员权限
- windows – 删除/禁用第三方无线软件的优点和缺点
- .net – 故障模块:kernelbase.dll.应用程序崩溃
- windows – 获取最后一个shell命令的错误代码
- WinAPICodePack中的TaskDialog在.NET 4.0上不起作
- windows-server-2008 – Exchange Server 2007安
- 已安装的窗口挂钩列表
- 使用Windows XP,Qt Creator 4.5.2(Windows 32位)
- windows-server-2012 – 远程桌面服务安装/执行模
- windows-server-2012 – 在IIS 8中更改密钥交换机
- windows – 网络共享的文件加密解决方案
- windows-server-2003 – 在定期系统运行状况检查
- Windows系统里Oracle 11g R2 Client(64bit)的下