首先到https://info.flexerasoftware.com/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio填写信息:
完成之后跳转到授权页面:
下载安装完毕后,打开vs2015:
新建工程后:
生成:
解决.NetFramework4.6以上版本问题:
以4.6.1为例:
首先新建文件txt文件编辑:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <SetupPrereq> <conditions> <condition Type="2" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Version" ReturnValue="4.6.01055"/> </conditions> <operatingsystemconditions> <operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" Bits="4" ServicePackMajorMin="1"/> <operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" Bits="4"/> <operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion="" Bits="4"/> </operatingsystemconditions> <files> <file LocalFile=".\Microsoft.net\4.6\Full\NDP461-KB3102436-x86-x64-AllOS-ENU.exe" URL="https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" CheckSum="864056903748706E251FEC9F5D887EF9" FileSize="0,67681000"/> </files> <execute file="NDP461-KB3102436-x86-x64-AllOS-ENU.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"/> <properties Id="{C267632F-EAD4-478E-B578-E72D9C6D87F2}" Description="This prerequisite installs the .NET Framework 4.6.1 full standalone package."/> <behavior Reboot="32"/> </SetupPrereq>
<properties Id="{C267632F-EAD4-478E-B578-E72D9C6D87F2}" Description="This prerequisite installs the .NET Framework 4.6.1 full standalone package."/>
Id为如下字符,安装时若没有.netframework4.6.1会自动选择安装
重命名为:Microsoft .NET Framework 4.6.1 Full.prq 移动到C:\Program Files (x86)\InstallShield\2015LE\SetupPrerequisites文件夹下
打包。
参考:https://community.flexerasoftware.com/showthread.php?220164-prq-for-Microsoft-NET-Framework-4-6-1-Full