2013-06-05 4 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, чтобы сделать пакет для каждого пользователя.

Чтобы ответить на ваш вопрос, я попробовал установку без значения регистра. Программа была разрешена для создания (с ошибкой ICE38/ICE41), я смог увидеть ссылку на сообщение Установка MSI

Смежные вопросы