wix3

WiX: Prevent 32-bit installer from running on 64-bit Windows

不想你离开。 提交于 2021-02-06 09:55:26
问题 Due to user confusion, our app requires separate installers for 32-bit and 64-bit versions of Windows. While the 32-bit installer runs fine on win64, it has the potential to create support headaches and we would like to prevent this from happening. I want to prevent the 32-bit MSI installer from running on 64-bit Windows machines. To that end I have the following condition: <Condition Message="You are attempting to run the 32-bit installer on a 64-bit version of Windows."> <![CDATA[Msix64 AND

WiX: Prevent 32-bit installer from running on 64-bit Windows

纵饮孤独 提交于 2021-02-06 09:55:25
问题 Due to user confusion, our app requires separate installers for 32-bit and 64-bit versions of Windows. While the 32-bit installer runs fine on win64, it has the potential to create support headaches and we would like to prevent this from happening. I want to prevent the 32-bit MSI installer from running on 64-bit Windows machines. To that end I have the following condition: <Condition Message="You are attempting to run the 32-bit installer on a 64-bit version of Windows."> <![CDATA[Msix64 AND

Copying multiple files using wildcards/recursively using Wix

安稳与你 提交于 2021-02-04 22:39:52
问题 I'm a total noob on Wix (and installers in general) so please forgive me. My goal is to be able to traverse a directory, search for all, say, *.exe files and copy them to a predefined destination folder. Thing is, I don't know what these files are and their names so I can't type them out one by one in the wxs file... hence wildcards. Now, I ended up with something like this: ... <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='MyDir'

Copying multiple files using wildcards/recursively using Wix

混江龙づ霸主 提交于 2021-02-04 22:39:08
问题 I'm a total noob on Wix (and installers in general) so please forgive me. My goal is to be able to traverse a directory, search for all, say, *.exe files and copy them to a predefined destination folder. Thing is, I don't know what these files are and their names so I can't type them out one by one in the wxs file... hence wildcards. Now, I ended up with something like this: ... <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='MyDir'

WIX - Run custom action on installation cancellation

本小妞迷上赌 提交于 2021-01-27 07:30:11
问题 I'm wirintg an installer using WIX and I need to execute a custom action when a user press the "cancel" button. I've created a custom action but I don't seem to find where to use that action. Any ideas how can I do that? 回答1: Try something like: <Custom Action="MyAction" OnExit="cancel">1</Custom> 回答2: OnExit="cancel" may fail if standard WIX UI is used (WIX assigns another action to "cancel" event). Action execution could be assigned to finish button in this case <Publish Dialog="UserExit"

WIX - Run custom action on installation cancellation

為{幸葍}努か 提交于 2021-01-27 07:29:38
问题 I'm wirintg an installer using WIX and I need to execute a custom action when a user press the "cancel" button. I've created a custom action but I don't seem to find where to use that action. Any ideas how can I do that? 回答1: Try something like: <Custom Action="MyAction" OnExit="cancel">1</Custom> 回答2: OnExit="cancel" may fail if standard WIX UI is used (WIX assigns another action to "cancel" event). Action execution could be assigned to finish button in this case <Publish Dialog="UserExit"

WIX Custom Action modify file in INSTALLFOLDER after InstallFinalize

不羁岁月 提交于 2021-01-04 06:36:52
问题 I have written a C# custom action for my WIX V3 Installer which is supposed to modify my appsettings.json in the INSTALLFOLDER . The action´s Execute-attribute is set to immediate and Impersonate="no",it is called after InstallFinalize but it encounters a problem within this action which is the missing admin permission. The action modifies appsettings.json in the INSTALLFOLDER which is Program File (x86). The custom action reads, deserializes, modifies, and serializes the data normally with

WiX: Utilizing multiple cabs in a very large application

无人久伴 提交于 2020-12-30 15:00:33
问题 I've recently started learning and utilizing WiX, and my first true project with WiX is repackaging a custom configuration of Qt. It's been quite a challenge, as the Qt project is massive. I've managed to smash my way very inelegantly through the process, but have recently reached a snag during linking. I've been receiving Light.exe error "LGHT0296", most likely because I was creating a CAB that was much greater than 2 GB. After trying for the highest compression level, and having that not

WiX: Utilizing multiple cabs in a very large application

和自甴很熟 提交于 2020-12-30 14:50:38
问题 I've recently started learning and utilizing WiX, and my first true project with WiX is repackaging a custom configuration of Qt. It's been quite a challenge, as the Qt project is massive. I've managed to smash my way very inelegantly through the process, but have recently reached a snag during linking. I've been receiving Light.exe error "LGHT0296", most likely because I was creating a CAB that was much greater than 2 GB. After trying for the highest compression level, and having that not

WiX: Utilizing multiple cabs in a very large application

折月煮酒 提交于 2020-12-30 14:48:13
问题 I've recently started learning and utilizing WiX, and my first true project with WiX is repackaging a custom configuration of Qt. It's been quite a challenge, as the Qt project is massive. I've managed to smash my way very inelegantly through the process, but have recently reached a snag during linking. I've been receiving Light.exe error "LGHT0296", most likely because I was creating a CAB that was much greater than 2 GB. After trying for the highest compression level, and having that not