3) ProductVersion doesn't increment itself. There are a number of ways to do this depending on your build process. We use a custom TFS Workflow Build Activity to increment the third quad of the version number in the Product.wxs (it uses some C# XML read/writes to set the appropriate attribute) and another Build Activity to propagate that version number across the appropriate AssemblyInfo.cs files.
2) Look at Wix UI Extensions. Particularly WixUI_InstallDir. 1) Look at using a reference to the File element Id. So, if the file element containing your executable you want to shortcut is MyExecFile, then you can reference the installed path to that file using [#MyExecFile]. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: Troy Teixeira [mailto:tteixe...@polariswireless.com] Sent: Thursday, February 23, 2012 12:48 PM 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users