wix

VS2010 - Using <Import /> to share properties between setup projects?

纵然是瞬间 提交于 2019-12-24 03:29:55
问题 Why doesn't it work to <Import /> this file, when it works when I replace the statement with just copy-pasting the three properties? ../../Setup.Version.proj <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <InstallerMajorVersion>7</InstallerMajorVersion> <InstallerMinorVersion>7</InstallerMinorVersion> <InstallerBuildNumber>7</InstallerBuildNumber> </PropertyGroup> </Project> Works: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0"

Restrict access to a folder installed using wix installer

爷,独闯天下 提交于 2019-12-24 03:17:01
问题 My use case is to run a msi package which creates a folder, in addition to doing other things, which should be accessible only to the Administrators. I tried using the util:PermissionEx element but the wix page for the PermissionEx element doesn’t really tell about what do different attributes do. I tried various things, one eg below, but I was still able to access the created folder from both administrator and a non-admin user account. <Directory Id=“TmpDir” Name=“TmpDir”> <Component Id=

Getting privilege error while creating a new user and adding it to the administrators

故事扮演 提交于 2019-12-24 03:16:57
问题 I have a made a setup-project with WiX 3.8 in which i want to create a new user and add it to the administrators group. But each time my setup comes to that point, i get an error because of insufficient privileges. That's a little bit curious, because my user is an administrator on the virtual machine, on which i test the setup. What can i do? That's the code in the WXS-file for creating the user: <util:Group Id="Administrators" Name ="Administrators" Domain="[ComputerName]" /> <Component Id

WiX: Where can I download the bootstrapper?

浪子不回头ぞ 提交于 2019-12-24 03:15:40
问题 I'm running Visual Studio 2008 SP1, and I'm getting the following error when trying to compile my WiX projct: Could not find required file 'setup.bin' in 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Engine I've got Windows Installer 3.0 and the Windows Platform SDK installed. I've got a Microsoft SDKs\Windows\v6.0A directory, but there is no Boostrapper directory. Where can I get this? 回答1: Which Windows SDK do you have installed? I installed this one a few months back and it

Manually migrate feature states during upgrade

自闭症网瘾萝莉.ら 提交于 2019-12-24 03:13:06
问题 We have a product for which the feature tree has changed considerably between versions, so the MigrateFeatures="yes" option on the UpgradeVersion element does not seem to work. How would I go about manually converting the old features to the new ones? Do I need a custom action, and if so, how can I do this from there? 回答1: As far as I know, the feature tree structure isn't relevant - it matches the Name in the Feature table, so if they all match you'd still get some migration. Note that it is

WiX: pulling in a CustomTable from a Fragment WITHOUT a CustomAction

荒凉一梦 提交于 2019-12-24 03:02:05
问题 I have a custom table defined in a <Fragment> that I want to link into the main .wxs file. My question is similar to this question, but my fragment does not have a <CustomAction> tag to refer to, and there is no <CustomTableRef> tag to use in the main file. Is the only way to pull in a <Fragment> that does not have a <...Ref> able tag to inject a dummy tag that can be Ref 'd? -- e.g. a <Component> with a "never-install" condition, or a <CustomAction> that never gets scheduled to run (or does

Generating GUIDs for Wix MSI files in Azure DevOps

巧了我就是萌 提交于 2019-12-24 02:44:08
问题 I am setting up a Wix installer for web server application and for a Sitecore front end application. My question is not specific to web server or Sitecore. My issues are with Wix and how to use it with continuous delivery. 1) Wix requires GUIDs for each file and the product itself. Do I need to update each GUID in the Wix file with every build? In a Git repo, that can potentially be a lot of changes. 2) If I have to update the GUIDs when each branch (dev, staging, and master) on my CD server

WiX - passing checkbox values from Burn UI to MSI

做~自己de王妃 提交于 2019-12-24 02:42:38
问题 I have custom UI in Burn with a checkbox "Install Desktop icon". And I have the same thing in my MSI (also created with WiX) that I'm replacing with Burn. The problem is that Burn seems to set checkbox values to 0 or 1 (via MsiProperty ) whereas my MSI expects NULL or NOT NULL . If you try to send through the checkbox value from Burn it will always be evaluated as NOT NULL by the MSI. I have found that I can edit my WiX projects and change: <Condition>DESKTOP_ICONS</Condition> to: <Condition

'Remember Property' pattern and the property used in RadioButtonGroup

£可爱£侵袭症+ 提交于 2019-12-24 02:13:46
问题 I'm trying to save the property value in registry during setup and read it next time installation is run. I follow 'Remember property' pattern as described here It basically works as expected, but I cannot get one scenario working: I run setup (property gets stored in the registry) I run setup again without entering property value on command line I expect value of the property to be read from registry, but it is assigned default value. I think, I know where is the problem: I have "Value"

Wix MajorUpgrade will not detect last position of product version

℡╲_俬逩灬. 提交于 2019-12-24 02:06:52
问题 I am trying to configure my Wix Toolkit installer to handle upgrades for my Visual Studio app. <?xml version="1.0" encoding="UTF-8"?> <?define ProductVersion = "5.0.0.115"?> <?define ProductUpgradeCode = "9880b0b8-b3b1-4fa6-b65e-d4ecff430248"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Product Id="*" Name="My Software" Language="1033" Version="$(var.ProductVersion)" Manufacturer="My Company" UpgradeCode="$(var