I can probably answer one fairly easily. For the shortcut put it inside
of your file element
<File Id="HelloWorld" Source="$(sys.SOURCEFILEPATH)">
Shortcut Id="DesktopShortcut" Directory="DesktopFolder"
Advertise="yes" Name="Hello World" Icon="HelloWorld.exe">
<Icon Id="HelloWorld.exe"
SourceFile="$(sys.SOURCEFILEPATH)" />
</Shortcut>
</File>
-----Original Message-----
From: Troy Teixeira [mailto:[email protected]]
Sent: Thursday, February 23, 2012 10:48 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Several questions related to: Automatic version
update,Prompt for installation path, Desktop Shortcut
Good morning all,
I have been tasked with gathering the information for setting up a
program. I'm new to this and really could use the help.
Questions:
1. How do I set the correct path for the shortcut on the desktop
to point to the executable, currently it's not working?
2. What code do I need to add so that when I run the MSI
installation it will prompt me to input an installation path instead of
using the default?
3. What code do I need to add so that the version is automatically
updated/incremented with each new build?
The contents of the Product.wxs file is pasted below.
________________________________
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="12345678-1234-1234-1234-111111111111"
Name="Hello World" Version="1.0.0.0" Manufacturer="Polaris Wireless"
Language="1033">
<Package InstallerVersion="200" Compressed="no" Comments="Windows
Installer Package" InstallScope="perMachine"/>
<Media Id="1" EmbedCab="no"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="HelloWorldInstaller">
<Directory Id="DesktopFolder" Name="Desktop" />
<Component Id="ApplicationFiles"
Guid="12345678-1234-1234-1234-111111111111">
<File Id="HelloWorld" Source="$(sys.SOURCEFILEPATH)"/>
<Shortcut Id="DesktopShortcut" Directory="DesktopFolder"
Advertise="yes" Name="Hello World" Icon="HelloWorld.exe">
<Icon Id="HelloWorld.exe"
SourceFile="$(sys.SOURCEFILEPATH)" />
</Shortcut>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="DefaultFeature" Level="1">
<ComponentRef Id="ApplicationFiles"/>
</Feature>
</Product>
</Wix>
________________________________
------------------------------------------------------------------------
------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users