wix3

Wix upgrade: preselect features

这一生的挚爱 提交于 2019-12-06 08:47:51
we're using Wix to create our installers. We're using the UI where one can select the features that need to be installed. Some features are enabled by default and others are disabled. However, these defaults are retained when we run an upgrade. We would like the installer to remember what features were installed and enable them in the Feature Tree for upgrading. All other features should be disabled. We had this code, which seemed to work, but actually, it didn't: <Feature Id="MainFeature" Level="1" ConfigurableDirectory="INSTALLDIR" Display="expand"> <Feature Id="Feature1" Level="1"

Retrieve COM ProgID from exe without registering it

半城伤御伤魂 提交于 2019-12-06 02:43:07
问题 Background: I would like to extract the COM data from a VB6 application so I can register it correctly (according to Microsoft best practice) the application. I am using WiX 3.0 and heat.exe will not extract the data (known issue with heat) and I do not have ready access to the associated TLB file. The VB6 application does not have compatibility turned on so it regenerates the COM GUIDs every build (They want to have the application be able to run side by side with an older version.) I

WIX: Heat duplicate id issue with multiple features/folders

有些话、适合烂在心里 提交于 2019-12-05 14:29:09
I am newbie to Wix and creating a multi feature Wix project. Our product is having 4 modules and each module has to be included as a feature in the Windows installer. But all features are sharing the same folder structure. I am using commandline to build my Wix project. After harvesting every module into different wxs fragments, the light.exe giving error saying that duplicate id in the dirercoty table. My file tree is look like... ModuleA - Core |--bin |--etc | |--mgr |--lib |-- a.txt ModuleB |--bin |--etc | |--mgr |--lib |-- b.txt ModuleC |--bin |--etc | |--mgr |--lib |-- c.txt I am using

WiX condition properties passed from command line don't work?

拜拜、爱过 提交于 2019-12-05 12:15:13
I have a property for whether to install shortcuts that need to be passed via command line arguments. The conditions seem to work when I set the properties within the wxs file, but they seem to be ignored when setting them through the command line. From the log I see that they are being set: MSI (s) (24:C8) [11:01:32:234]: PROPERTY CHANGE: Modifying INSTALLSTARTUPSHORTCUT property. Its current value is '0'. Its new value: '1'. MSI (s) (24:C8) [11:01:32:234]: PROPERTY CHANGE: Modifying INSTALLSTARTMENUSHORTCUT property. Its current value is '0'. Its new value: '1'. MSI (s) (24:C8) [11:01:32:234

How to define installation folder from command line parameter in Wix installer

自闭症网瘾萝莉.ら 提交于 2019-12-05 11:54:38
I install my application to a specific folder using the below wxs code: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLDIR" Name="CompanyName"> <Directory Id="SUBDIR" Name="Application Launcher"> <Component Id="ApplicationFiles" Guid="*"> <File Name="app.exe" Id="AppFile1" Source="app.exe" Vital="yes" /> </Component> </Directory> </Directory> </Directory> </Directory> I want to specify the installation folder with a parameter to be given from the command line like below: msiexec.exe /i setup.msi PATH=C:\MyCompany\Folder\ /qn Thanks a lot.

WiX patching not updating files correctly

天大地大妈咪最大 提交于 2019-12-05 11:25:10
My "admin-image" style WiX test patches are failing to update the existing installation correctly. When using msiexec /lx, I get the following information related to patching "fi_executable.exe": MSI (s) (88:E0) [12:32:41:716]: Baseline: Patch {E244BAC8-7E62-4406-889B-4B67A4EA7369} modified fi_executable.exe with full-file update. MSI (s) (88:E0) [12:32:41:716]: Baseline: First patch for fi_executable.exe, saving native info. MSI (s) (88:E0) [12:32:41:716]: Baseline: fi_executable.exe version for baseline at patch Native: 6.0.5803.11, 1033, 53840. ... MSI (s) (88:E0) [12:32:41:716]: Baseline:

Add a summary information to WiX generated MSI

我是研究僧i 提交于 2019-12-05 11:20:57
How to add (or change a default values) a summary page information to a WiX-generated MSI file? Summary page is the tab page which is visible if you right click on the MSI file in the Windows Explorer and includes following text fields: Title, Subject, Author, Category, Keywords, Comments alt text http://img151.imagevenue.com/img.php?image=13824_msi_summary_122_495lo.jpg Further to @Stefan answer, here's a mapping of Wix items to msi details properties. have not found a way to set "category" property at all. Stefan That information is set in the <Package> element, for example: <Wix xmlns='http

Harvesting a .csproj with heat.exe in Visual Studio 2008 and WiX(v3)

删除回忆录丶 提交于 2019-12-05 04:16:52
I found that Wix v3 uses a tool (heat.exe) to "harvest" information into WiX fragments. Either I am looking in the wrong location, or this is thinly documented. What is the best way to auto-generate a WiX fragment (likely using heat.exe) for a complex folder structure that contains media files: Of varying types (ico/png/xaml/etc) That may change regularly (names/locations/adds/removes) That are classified as "Content" and included in a .csproj such that they can be built into an installer via WiX and would withstand upgrades and patches with decorum? Background Information I found heat.exe,

Wix RegistryKey Permission

Deadly 提交于 2019-12-04 19:27:42
I am attempting to install a registry key that should only be accessible by certain users. Every other part of the installer works (it installs a service and registers a component). Here is the fragment. <Component Id="cmpXXX" Guid="{YYY}"> <RegistryKey Root="HKLM" Key="Software\ZZZ" Action="createAndRemoveOnUninstall"> <RegistryKey Key="Machine" Action="createAndRemoveOnUninstall"> <Permission User="Administrators" GenericAll="yes" /> <RegistryValue Type="string" Name="ID" Value="SecretID" /> <RegistryValue Type="string" Name="Key" Value="SecretKey" /> </RegistryKey> </RegistryKey> <

Remove file and folders on uninstall

巧了我就是萌 提交于 2019-12-04 12:13:31
I am learning WIX to build installer for my app but I am stuck with removing files. My question is how can I remove files and folders on uninstall. When I click on remove button, all the files and folders which the installer created doesn't remove on uninstall. The answer is in the comments above but for future reference there are two things to check first when files are not being removed: Ensure that you do not have Component/@Guid="". In Specifically setting to an empty string (Guid="") tells the Windows Installer ignore all the stuff built into this Component. Note: WiX v3.6+ you can leave