wix

WiX - CustomAction ExeCommand - Hide Console

社会主义新天地 提交于 2019-12-29 04:30:11
问题 We've gotten a custom action that runs command-line to work as such: <CustomAction Id="OurAction" FileKey="OurInstalledExe.exe" ExeCommand="our command line args" Execute="deferred" Return="check" /> The problem is, the user sees a console popup when the command runs. The command line requires UAC elevation, but should not require any user interaction. We also install the file with the setup, the custom action runs After="InstallFiles". How do we prevent the user from seeing the console? 回答1:

Restarting windows service during WIX upgrade

六月ゝ 毕业季﹏ 提交于 2019-12-29 02:09:22
问题 We have a windows service installed as a part of our msi WIX installer . During upgrade we are trying to just restart service instead of doing complete reinstall to safe guard the service user creds. A lot of posts discussed in this regard but nothing is conclusive. Tried out disabling DeleteServices during upgrade by doing below, <InstallExecuteSequence> <DeleteServices>NOT UPGRADINGPRODUCTCODE</DeleteServices> </InstallExecuteSequence> Note: The above code is in old MSI as well But still

What else do I need to show the license aside from WixUILicenseRtf?

十年热恋 提交于 2019-12-29 02:08:10
问题 In my wxs file, in the Product element, I added: <WixVariable Id="WixUILicenseRtf" Value="C:\Users\pupeno\...\src\main\deploy\package\windows\License.rtf" /> I think the file is being read because if I put a path that doesn't exist, the msi file is not generate. But, nothing is shown during the installation process. What else am I missing? I'm starting from the javafxpackager template, so, it looks something like this: <?xml version="1.0" encoding="utf-8"?> <!-- Customizing the wix template

WiX: dynamically changing the status text during CustomAction

╄→尐↘猪︶ㄣ 提交于 2019-12-28 18:04:04
问题 I have a pretty lengthy CustomAction in a wix installer, and I want to be able to change the 'Status: ...' text while the operation runs, to see that there is progress and update on its internal status. I know how to set the progresstext of a custom action - but what I want is to dynamically change the progress text during the run of the custom action. 回答1: Deferred Custom Actions can call the MsiProcessMessage function. You can then use INSTALLMESSAGE_ACTIONSTART, INSTALLMESSAGE_ACTIONDATA

How do I fix the upgrade logic of a wix setup after changing InstallScope to “perMachine”

谁说我不能喝 提交于 2019-12-28 13:21:23
问题 We use wix to create setups for our application. For the case where the user has already installed an older version of our application, we do a major upgrade with the MajorUpgrade XML element. This is all working as desired: if an older version is installed, it is upgraded transparently. If a newer version is present, the installer aborts with a clear message. However, I now want to change the InstallScope from "perUser" to "perMachine". Unfortunately this breaks the upgrade logic. The new

Are applications dependent on the environment where it was compiled?

ε祈祈猫儿з 提交于 2019-12-28 07:16:08
问题 We are having a System.BadImageFormatException in our MSI installers. I have already read about the target frameworks, but we already checked and it's targeting the correct framework ( .NET Framework 4.5 same with our QA machines). We have exactly the same source codes, but the results of the msi installer compiled by our 'build team' fails, but the msi installer compiled by us 'dev' works. Question is, does the environment where an application was built and compiled affects the output

Are applications dependent on the environment where it was compiled?

假装没事ソ 提交于 2019-12-28 07:16:02
问题 We are having a System.BadImageFormatException in our MSI installers. I have already read about the target frameworks, but we already checked and it's targeting the correct framework ( .NET Framework 4.5 same with our QA machines). We have exactly the same source codes, but the results of the msi installer compiled by our 'build team' fails, but the msi installer compiled by us 'dev' works. Question is, does the environment where an application was built and compiled affects the output

WIX merge c++ runtime

不打扰是莪最后的温柔 提交于 2019-12-28 06:52:27
问题 I have merged msm for vs 2015 crt: <DirectoryRef Id="TARGETDIR" > <Merge Id = "Microsoft_VC140_CRT_x64.msm" FileCompression = "yes" Language = "1033" SourceFile = "..\\..\\..\\..\\..\\..\\..\\external\\tools\\systemsetups\\merge_modules\\Microsoft_VC140_CRT_x64.msm" DiskId = "1" />" </DirectoryRef> <Feature> <Feature Id="Complete" Title="Complete" Absent="allow" Level="1"> ... <MergeRef Id="Microsoft_VC140_CRT_x64.msm"/> ... </Feature> but I still receiving: --------------------------- MyApp

How to assign path value to Directory in WIX?

▼魔方 西西 提交于 2019-12-28 04:38:04
问题 In my WIX project I have a directory structure something like this: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="INSTALLLOCATION" Name="FolderName"> ... </Directory> <Directory Id="MYDIRECTORY" Name="SomeDifferentDirectory"> ... </Directory> </Directory> Here INSTALLLOCATION represents the installation folder of my program, but I want to additionally create another directory that is outside the installation directory, for example, D:\MyFolder1\MyFolder2 , from the example above

Wix toolset license agreement multi-languages issue

假如想象 提交于 2019-12-28 04:30:31
问题 I have created license.rtf file which has multiple languages and when I try to build my wix project it shows me this error : A string was provided with characters that are not available in the specified database code page '1252'. Either change these characters to ones that exist in the database's code page, or update the database's code page by modifying one of the following attributes: Product/@Codepage, Module/@Codepage, Patch/@Codepage, PatchCreation/@Codepage, or WixLocalization/@Codepage