MSi安装错误 [英] MSi installation Error

查看:84
本文介绍了MSi安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Wix创建了MSI。当我尝试安装它时,我收到以下错误。 安装程序没有足够的权限访问此目录c:\windows \ AppTest。安装无法继续以管理员身份登录或联系您的系统管理员。我经历了一些类似的帖子,但它没有帮助我。我有管理员权限,UAC已开启。

以下是我的代码:



< wix xmlns =http://schemas.microsoft.com/wix/2006/wi>

< product name =AppTestid =*enter = code =mode =hold> UpgradeCode ='{05E35D34-E7F6-4CED-BF86-B1747AE92E07}'

语言='1033'代码页='1252'

版本='2.0.0.1'

制造商='LabView Inc'>



< package id =*>

语言= '1033'

SummaryCodepage ='1252'

AdminImage ='no'

InstallerVersion ='200'

InstallPrivileges ='提升'

压缩='是'

ReadOnly ='是'

ShortNames ='是'

评论='AppTest安装程序包'

描述='AppTest安装程序包'

制造商='LabView Inc'/>



< media id =1cabinet =AppTest.cabembedcab =yes>

< directory id =TARGETDIRname =SourceDir >

< directory id =WindowsFolder>

< directory id =APPLICATIONROOTDIRECTORYname =AppTest>







< directoryref id =TARGETDIR>

< component id =AppTest.dllguid =3947344C-8116-48FB-9F8A-080EA7D1ABAD>

< file id =AppTest.dllsource =$(sys.CURRENTDIR)files\AppTest.dllkeypath =yeschecksum =yes>

< file id = msvcp80.dllsource =$(sys.CURRENTDIR)files\msvcp80.dll>

< file id =atl80.dllsource =$(sys.CURRENTDIR)files \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $ b< file id =Microsoft.VC80.ATL.manifessource =$(sys.CURRENTDIR)files\Microsoft.VC80.ATL.manifest>

< file id =Microsoft.VC80.CRT.manifestsource =$(sys.CURRENTDIR)files\Microsoft.VC80.CRT.manifest>

< file id =AppTest.infreadonly =yessource =$(sys.CURRENTDIR)files\AppTest.inf>





< feature id =AppTestFeaturetitle =AppTestlevel =1>

< componentref id =AppTest.dll>








解决方案

(sys.CURRENTDIR)files\AppTest.dllkeypath =yeschecksum =yes>

< file id =msvcp80.dllsource =

< br>

(sys.CURRENTDIR)files\msvcp80.dll>

< file id =atl80.dllsource =


< blockquote>(sys.CURRENTDIR)files\atl80.dll>

< file id =msvcr80.dllsource =


I have created MSI using Wix. When I am trying to install it, I am getting the below error. "The installer has insufficient privileges to access this directory c:\windows\AppTest. The installation can not continue log on as administrator or contact your system administrator". I went through some of similar post but it did not helped me.I have admin rights and UAC is turned on.
Below is my code:

<wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<product name="AppTest" id="*" enter="" code="" mode="hold"> UpgradeCode='{05E35D34-E7F6-4CED-BF86-B1747AE92E07}'
Language='1033' Codepage='1252'
Version='2.0.0.1'
Manufacturer='LabView Inc' >

<package id="*">
Languages='1033'
SummaryCodepage='1252'
AdminImage='no'
InstallerVersion='200'
InstallPrivileges='elevated'
Compressed='yes'
ReadOnly='yes'
ShortNames='yes'
Comments='AppTest Installer Package'
Description='AppTest Installer Package'
Manufacturer='LabView Inc' />

<media id="1" cabinet="AppTest.cab" embedcab="yes">
<directory id="TARGETDIR" name="SourceDir">
<directory id="WindowsFolder">
<directory id="APPLICATIONROOTDIRECTORY" name="AppTest">



<directoryref id="TARGETDIR">
<component id="AppTest.dll" guid="3947344C-8116-48FB-9F8A-080EA7D1ABAD">
<file id="AppTest.dll" source="$(sys.CURRENTDIR)files\AppTest.dll" keypath="yes" checksum="yes">
<file id="msvcp80.dll" source="$(sys.CURRENTDIR)files\msvcp80.dll">
<file id="atl80.dll" source="$(sys.CURRENTDIR)files\atl80.dll">
<file id="msvcr80.dll" source="$(sys.CURRENTDIR)files\msvcr80.dll">
<file id="Microsoft.VC80.ATL.manifes" source="$(sys.CURRENTDIR)files\Microsoft.VC80.ATL.manifest">
<file id="Microsoft.VC80.CRT.manifest" source="$(sys.CURRENTDIR)files\Microsoft.VC80.CRT.manifest">
<file id="AppTest.inf" readonly="yes" source="$(sys.CURRENTDIR)files\AppTest.inf">


<feature id="AppTestFeature" title="AppTest" level="1">
<componentref id="AppTest.dll">




解决方案

(sys.CURRENTDIR)files\AppTest.dll" keypath="yes" checksum="yes">
<file id="msvcp80.dll" source="


(sys.CURRENTDIR)files\msvcp80.dll">
<file id="atl80.dll" source="


(sys.CURRENTDIR)files\atl80.dll">
<file id="msvcr80.dll" source="


这篇关于MSi安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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