修改InstallShield X(版本10.5)的exe清单 [英] Modify exe manifest of InstallShield X (Version 10.5)

查看:129
本文介绍了修改InstallShield X(版本10.5)的exe清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用InstallShield X(版本10.5)创建了InstallScript Project

I have InstallScript Project created with InstallShield X (Version 10.5)

当我从mt.exe时,Windows SDK v7.1A 具有以下清单:

When I run mt.exe from Windows SDK v7.1A with the following manifest:

MySetup.exe.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level='requireAdministrator'
          uiAccess='false'
        />
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

使用以下命令:

# wrong file! MySetup.exe will be truncated!    
mt.exe -manifest MySetup.exe.manifest -updateresource:MySetup.exe;#1

安装程序(MySetup.exe)从约80 MB缩短为约110 KB.如何将Admin Privilege Elevation清单正确嵌入到由InstallShield X生成的安装程序中?

the installer (MySetup.exe) is truncated from ~80 MB to ~110 KB. How do I properly embed Admin Privilege Elevation manifest to the installer generated by InstallShield X?

推荐答案

InstallShield提供了一个可下载的工具,该工具可修改内置setup.exe或update.exe的清单.在这一点上,我不记得它可以使用哪个版本的InstallShield输出.修改.exe文件的内容时,它将删除数字签名.

There is a downloadable tool from InstallShield which modifies the manifest of a built setup.exe or update.exe. At this point I don't recall which versions of InstallShield's output it works with. It will remove digital signatures as it modifies the contents of the .exe file.

http://support.installshield.com/kb/view.asp? articleid = Q113245

(作为免责声明,我需要付费使用该产品.我仍然建议改用InstallShield版本,该版本提供选择清单的选项.我相信这是适用于MSI setup.exe的InstallShield 12,以及以后的版本,例如用于InstallScript setup.exe和MSI update.exe文件的InstallShield 2010或InstallShield 2011.)

(As a disclaimer I am paid to work on the product. I still recommend instead using a version of InstallShield which offers the option to select a manifest. I believe that's InstallShield 12 for MSI setup.exe, and something later such as InstallShield 2010 or InstallShield 2011 for InstallScript setup.exe and MSI update.exe files.)

这篇关于修改InstallShield X(版本10.5)的exe清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆