2013-06-05 2 views
0

프로젝트에서 관리자가 아닌 사용자가 레지스트리 항목을 제거 할 수 있도록 레지스트리 항목을 제거합니다.Wix : 레지스트리없이 바로 가기를 만들 수있는 방법

현재 코드는 다음과 같습니다. XML 파일의 섹션을 주석 처리했지만 실패했습니다.

레지스트리 키없이 샷컷을 만들 수있는 가능성이 있습니까? 감사.

<DirectoryRef Id="ApplicationProgramsFolder"> 
    <Component Id="ApplicationShortcut" Guid="C85221B1-70CA-455D-B322-093543BD4DF0"> 
    <Shortcut Id="ApplicationStartMenuShortcut" 
       Name="$(var.ProductName)" 
       Description="$(var.ProductDescription)" 
       Target="[APPLICATIONROOTDIRECTORY]OMOffline.exe" 
       WorkingDirectory="APPLICATIONROOTDIRECTORY" /> 
    <Shortcut Id="RemoteAssistance" 
       Name="Request Remote Assistance" 
       Description="Starts Remote Assistance and creates a password-protected RA ticket that is attached to a new Remote Assistance invitation. The User must enter the e-mail address of the Helper in the To field to send the message to the Helper." 
       Target="[SystemFolder]MSRA.exe" 
       Arguments="/email"/> 
    <Shortcut Id="UninstallProduct" 
       Name="Uninstall $(var.ProductName)" 
       Target="[SystemFolder]msiexec.exe" 
       Arguments="/x [ProductCode] SQLSERVER=&quot;[SQLSERVER]&quot;" 
       Description="Uninstalls $(var.ProductName)" /> 
    <RemoveFolder Id="RemoveApplicationProgramsFolder" 
        Directory="ApplicationProgramsFolder" 
        On="uninstall"/> 
    <!--<RegistryValue Root="HKCU" Key="Software\$(var.ProductManufacturer)\$(var.ProductName)" Name="shortcutsinstalled" Type="integer" Value="1" KeyPath="yes"/>--> 
    </Component> 
</DirectoryRef> 


<DirectoryRef Id="DesktopFolder"> 
    <Component Id="DesktopShortcut" Guid="C03900DF-FFD8-44B8-AA42-1BC72BB9E1F4"> 
    <Shortcut Id="ApplicationDesktopShortcut" 
     Name="$(var.ProductName)" 
     Description="$(var.ProductDescription)" 
     Target="[APPLICATIONROOTDIRECTORY]OMOffline.exe" 
     WorkingDirectory="APPLICATIONROOTDIRECTORY" /> 
    <!--<RegistryValue Root="HKCU" Key="Software\$(var.ProductManufacturer)\$(var.ProductName)" Name="desktopshortcutinstalled" Type="integer" Value="1" KeyPath="yes"/>--> 
    </Component> 
</DirectoryRef> 

답변

0

HKCU는 사용자 별 항목이므로 사용자 별 설치 목표를 방해해서는 안됩니다. http://blogs.msdn.com/b/rflaming/archive/2006/09/30/778690.aspx을 사용하여 사용자 당 Installable 패키지를 만들 수 있습니다.

질문에 대답하기 위해 레지스트리 값없이 설치를 시도했습니다. 프로그램이 빌드 허용되었습니다 (ICE38/ICE41 오류 포함), 링크 게시물을 볼 수있었습니다 MSI

관련 문제