How to install .NET framework 4.0 as part of installation?

后端 未结 3 688
悲哀的现实
悲哀的现实 2020-12-15 13:03

I created bootstrapper,it works but it does not install NET Framework 4.0. After the installation completed my application does not start because no NET Framework 4.0. Why

3条回答
  •  不思量自难忘°
    2020-12-15 13:51

    In the wixproj file, add the following structure. Note that the tags must reside in the the first node, along with the rest of what's usually there.

    
       
        ...
        $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets
        $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets
      
      ...
      
        
          Windows Installer 3.1
        
        
          Microsoft .NET Framework 4.0 (x86 and x64)
        
      
      
        $(ProgramFiles)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\
      
      
        
      
    
    

提交回复
热议问题