wix

WiX: Compare version “7.x.x.x” and “10.x.x.x”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 12:19:13
问题 I have a WiX file where I have to do a version comparison to check prerequisites. The expression looks something like this: <Publish (attributes...)> <![CDATA[(VERSION<"7.0") OR (other expressions)]]> </Publish> This was working fine until now as the major version numbers went 7 to 8 to 9. We are now moving to version 10 and the string comparison is failing as "1" is less than "7". I would like "10.0"<"7.0" to evaluate to false as I intend to compare versions, but the expression evaluates to

WiX: Can't stop service despite being able to install and start it as LocalSystem

跟風遠走 提交于 2019-12-24 11:44:44
问题 This is my .wxs file Particularly I managed to install a service as a LocalSystem user, and started it: <!-- Directory where [prey]/versions/[version] will be --> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="Prey"> <Directory Id="VersionsDir" Name="versions"> <Directory Id="VersionDir" Name="$(var.ProductVersion)"> <Directory Id="BinDir" Name="bin"> <Directory Id="BinWindowsDir" Name="windows"> <Component Id="CronServiceExe" Guid="ECC25B2A-FB2E-425A-92AD

How to determine install scope of existing app?

时光毁灭记忆、已成空白 提交于 2019-12-24 10:49:11
问题 I have an installer based on the WixUI_Advanced that allows users to choose their install scope (per user or machine wide). When upgrading (have an existing app with a lower version installed) I would like to hide the install scope screen and automatically select the install scope they chose last time. How can I tell what install scope was used for the previous installation? Edit Looking at my MSI logs I can see that my existing installation is found: // Existing user specific installation

Can WixUiBannerBmp be set in a wixlib?

三世轮回 提交于 2019-12-24 10:29:43
问题 Currently I'm trying to move the WixUIBannerBmp, WixUIDialogBmp and WixUILicenseRtf WixVariables and their corresponding binary files to a wixlib. Unfortunately when building it ignores these and uses the defaults. My Library.wxs: <Fragment> <WixVariable Id="WixUILicenseRtf" Value="licence.rtf" /> <WixVariable Id="WixUIBannerBmp" Value="binaries/bannrbmp.bmp" /> <WixVariable Id="WixUIDialogBmp" Value="binaries/dlgbmp.bmp" /> </Fragment> where the rtf and bmp files are included in the wixlib

Launch dialog on uninstall using WiX

孤街醉人 提交于 2019-12-24 09:27:45
问题 I have created a WiX installer and would like to launch a custom action dialog on uninstall. From this dialog I would like to gather information on why the user is uninstalling my application (well, this means just launching the web-browser). I have seen some people using the On="uninstall" property, but I am not sure if this is the one to use, and how to use it, for the above action. 回答1: Windows doesn't show UI when a product is uninstalled from Add/Remove Programs or Programs and Features.

error CNDL0027 : The File/@Name attribute's value, 'apcsystray.exe', is not a valid 8.3-compliant name.

被刻印的时光 ゝ 提交于 2019-12-24 09:17:03
问题 When I am running the windows installer build using WIX 2.0 tool set i am getting the below error. error CNDL0027 : The File/@Name attribute's value, 'apcsystray.exe', is not a valid 8.3-compliant name. Legal names contain no more than 8 characters followed by an optional extension of no more than 3 characters. Any character except for the follow may be used: \ ? | > < : / * " + , ; = [ ] (space). I am suspecting that it is due to the old version because i am using windows 10 32 bit

MSI: Fixing different component GUIDs for the same file

廉价感情. 提交于 2019-12-24 08:59:53
问题 I've inherited an installer with a fairly long history. In a few versions, component GUIDs were not tracked properly, resulting in different component GUIDs for a given file. v1.0: C:\Program Files\Foo\Foo.exe {GUID_A} v2.0: C:\Program Files\Foo\Foo.exe {GUID_B} v3.0: C:\Program Files\Foo\Foo.exe {GUID_B} This obviously violates component rules, and requires early sequencing of RemoveExistingProducts to avoid absent files after an upgrade. Each new version installs as a Major Upgrade. It is

Where is “msvcR140.dll”? Does it exist?

元气小坏坏 提交于 2019-12-24 08:47:42
问题 I have recently graduated to VS 2015. For reasons explained below, I want to avoid running the VC++ Redistributables installer. I am including the prescribed DLLs in my installer, for an "app local" installation: MFC140.DLL concrt140.dll msvcp140.dll vccorlib140.dll vcruntime140.dll mfc140u.dll mfcm140u.dll This seems to work. My app runs when installed thus on a "virgin" PC. My question is, where do I find msvcr140.dll ? It is mentioned here: https://www.visualstudio.com/license-terms

Error occurred with custom action RegisterComPlus with WIX 3.9 and above

对着背影说爱祢 提交于 2019-12-24 08:23:43
问题 We, at Microsoft, had been using WIX toolset version 3.5.2519.0 for so long to build the installer and patches for our product named (System Center Service Manager aka SCSM). Recently we need to update to WIX Toolset 3.14.0.1703 as this version has support for TLS1.2. Building our project with WIX Toolset 3.14.0.1703 went fine, but while installing it, I am getting the below error: Then I built the product one by one with all the WIX versions, and here are the results: Product built with WIX

WIX User Element Seems to create a new user profile on every install

不打扰是莪最后的温柔 提交于 2019-12-24 07:58:10
问题 I have this bit in a Component in my WIX Installer <util:User Id="CIUSER" CreateUser="yes" UpdateIfExists="no" Name="myuser" PasswordNeverExpires="yes" Password="noneofyourbusiness"> <util:GroupRef Id="Users" /> </util:User> I also use this as a reference in other parts of the code to set directory permissions. It seems like a new user profile gets created each time I install my product. So if anything id placed on the desktop, logging in as this user doesn't see it from install to install.