In my installer, I have created a few shortcuts on the start menu and the
desktop. However, the first time that I launch an application through its
shortcut, the default Windows Installer dialog pops up with a progress bar
and tells me to "Please wait while Windows configures" my application. I am
setting up my shortcuts as follows:

<Directory Id="INSTALLDIR" Name="My Application Directory">
    <Component Id="component_MyApplication" Guid="{GUID}">
        <File Id="file_MyApplication" KeyPath="yes"
Source="Source\MyApplication.exe">
            <Shortcut Id="shortcut_MyApplicationStartMenu"
Directory="directory_StartMenu" Name="Run My App"
WorkingDirectory="INSTALLDIR" Advertise="yes" Icon="MyApplicationIcon.exe"
/>
            <Shortcut Id="shortcut_MyApplicationDesktop"
Directory="DesktopFolder" Name="Run My App" WorkingDirectory="INSTALLDIR"
Advertise="yes" Icon="MyApplicationIcon.exe" />
        </File>
    </Component>
</Directory>

Is there something that I'm doing wrong here? I have verified that the
shortcut target (in this example, MyApplication.exe) does indeed exist at
the time I launch the shortcut, so I'm not really sure what Windows
Installer is doing. Obviously, I don't want users to encounter another
dialog after they've already installed everything.

Also, I don't really know whether it's relevant to this discussion or not,
but could somebody clarify the significance of the Shortcut/@Advertise
attribute beyond what's provided in the .chm doc? If I set this attribute
to "no", then I get errors like the following:

error LGHT0204 : ICE43: Component component_MyApplication has
non-advertised shortcuts. It should use a registry key under HKCU as its
KeyPath, not a file.
error LGHT0204 : ICE57: Component 'component_MyApplication' has both
per-user and per-machine data with a per-machine KeyPath.

However, I want this installer to install the application on a per-machine,
rather than per-user, basis.

Thanks.
___________
Frank Jenner
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to