wix

How do you optimize a JPEG image for MSI installers?

无人久伴 提交于 2019-12-25 08:48:36
问题 I am dealing with a splash screen logo and I've noticed that on different OS versions this image gets distorted, but it happens to work when dealing with Windows 8.1, but not on Windows 7 or Vista. I've been using Adobe Fireworks in conjunction with Illustrator to generate it, and I must have tried a ton of different settings but I can't get the same experience across all operating systems. I load it into my WiX project as follows: <Binary Id="SplashBinary" SourceFile="Splash.jpg"/> And I use

How to restart IIS from WIX?

霸气de小男生 提交于 2019-12-25 08:36:09
问题 I need to restart IIS during my WIX installation, how can I do that? I know I need a custom action but I can't find any WIX predefined path for the iisreset.exe executable 回答1: You actually don't need a custom action for this. You can use the ServiceControl table and link it to the component that needs the IIS restart. 来源: https://stackoverflow.com/questions/44677549/how-to-restart-iis-from-wix

How to get current user %AppData% folder?

∥☆過路亽.° 提交于 2019-12-25 08:25:22
问题 WIX, MSI-installer. I build this MSI on some computer where my login name is developer . In my MSI I have such dialog window: But third variant always contains developer user name even if current user has other login name... How can I fix it? This is my code of these elements: <Control Id="rbgrPath" Type ="RadioButtonGroup" X="5" Y="80" Width="500" Height="100" Property="INSTALLFOLDER"> <RadioButtonGroup Property="INSTALLFOLDER"> <RadioButton Text="[$(var.PLATFORMPROGRAMFILESFOLDER)]Autodesk

WiX Bundle: Patches for 1.0.0 are not removed from Programs & Features when bundle 2.0.0 is installed

别来无恙 提交于 2019-12-25 08:05:08
问题 There are 3 bundles, code is listed below. 1.0.0, 1.0.0.1, and 2.0.0. If 1.0.0, 1.0.0.1, and 2.0.0 are installed, View Installed Updates will still have 1.0.0.1 listed as installed. It will remain there until the last Version is uninstalled. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle Name="Burn Installer" Version="1.0.0" Manufacturer="LANSA" UpgradeCode="AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA" Copyright="..." AboutUrl="..."> <BootstrapperApplicationRef Id=

How to update xml with properties added by the custom action

ε祈祈猫儿з 提交于 2019-12-25 08:01:08
问题 I am building a MSI which in-turn creates a windows service. I have a custom action which uses the archives embedded in the MSI, explodes it. After which it creates a couple of properties, which needs to be updated in the app.config of the msi. I am using <util:xmlFile> element of wix to update the config file. But then it doesnt contain the values updated in the properties. Custom action details : After : InstallFiles Execute : " SecondSequence " // Execute Immediate throws file not found

WiX: how to pack exe or dll to use only during installation

妖精的绣舞 提交于 2019-12-25 07:19:43
问题 I need to include a dll/exe in the resulting MSI (created through a WiX project), but I do not want to deploy them during installation: I only want to use them in some CustomAction my purpose is to include an existing exe/dll and call it during installation from wxs code (not from a CustomAction dll). Is it possible to include files which are not deployed during installation? I mean, only pack them inside the resulting MSI, and call them for some task while they are unpacked inside %temp%

How can I maintain file reference integrity from a WIX Setup Library

ぃ、小莉子 提交于 2019-12-25 06:59:10
问题 I am using the Wix Toolset 3.8 Visual Studio add-in. I have created a WIX Setup Library which encapsulates some common components that will be consumed by various service deployment projects. This library includes references to several solution files which need to be packaged into each deployment. These dependencies are used in my wix library fragments in a few different ways. For example: <Binary Id="InstallationScript" SourceFile=".\Dependency1.vbs" /> <CustomAction Id="DependencyAction"

How to reference SystemFolder in WiX Icon.SourceFile property?

心已入冬 提交于 2019-12-25 06:16:41
问题 To make the long story short, this doesn't work: <Icon Id="msiexec.ico" SourceFile="[SystemFolder]msiexec.exe"/> (Error 4 The system cannot find the file '[SystemFolder]msiexec.exe') And this doesn't work too: <Icon Id="msiexec.ico" SourceFile="$(var.SystemFolder)msiexec.exe"/> Error 3 Undefined preprocessor variable '$(var.SystemFolder)'. 回答1: The second sample in your question will work if you pass var.SystemFolder as a parameter to candle.exe . The <Icon> element is mapped to the Icon MSI

How to reference SystemFolder in WiX Icon.SourceFile property?

血红的双手。 提交于 2019-12-25 06:15:11
问题 To make the long story short, this doesn't work: <Icon Id="msiexec.ico" SourceFile="[SystemFolder]msiexec.exe"/> (Error 4 The system cannot find the file '[SystemFolder]msiexec.exe') And this doesn't work too: <Icon Id="msiexec.ico" SourceFile="$(var.SystemFolder)msiexec.exe"/> Error 3 Undefined preprocessor variable '$(var.SystemFolder)'. 回答1: The second sample in your question will work if you pass var.SystemFolder as a parameter to candle.exe . The <Icon> element is mapped to the Icon MSI

At what step of MSI (InstallExecuteSequence) UAC is prompted?

馋奶兔 提交于 2019-12-25 05:49:22
问题 When I execute my MSI with UAC ON the UAC is not prompted for some time. I am trying to read some registry entry in a custom action before "CostFinalize". My Registry read function will consider a default value if registry entry is not found. But in my case the registry entry is there but it fails to read because the key doesn't have read permission for "User". Although Admin have full permission. Registry read seems to be happening before UAC prompt. How can i make sure UAC is prompted at