Questions tagged [wix3.5]

For issues relating to deployment using Windows Installer XML, version 3.5.

wix3.5
Filter by
Sorted by
Tagged with
3 votes
2 answers
2k views

Add/Enable handler mapping in IIS 7/7.5 using WIX 3.5

WIX 3.5 works using IIS6 for adding wildcard but for IIS7/7.5 there are 2 problems. Handler Mappings is disabled by default Have to navigate to "Edit Feature Permissions" and check "Scripts" to ...
0 votes
0 answers
16 views

How to specify the application config file in a Wix Custom Action that will execute an exe that is in a Binary element?

I have an .Net 6 exe that is published as a single exe with its app config along side it. I want to run this exe after the commit stage of the wix installation. I know that the exe can be embedded ...
8 votes
2 answers
9k views

WiX custom action - running application in Target directory

I am using WiX to install a certain EXE file. I want the WiX setup to end running the EXE file (and not leaving any window opened), so I am using: <CustomAction Id="LaunchApp" FileKey="APPFileKey" ...
3 votes
1 answer
2k views

WiX ProgramFiles64Folder behaves like ProgramFilesFolder (x86)

I building a simple installer that copies files to a folder under Program Files. In spite of defining the Component as Win64 and Directory to be ProgramFiles64Folder, the MSI at runtime changes the ...
0 votes
0 answers
21 views

In Wix, at reinstall, is there possibility to re-execute an XML update components?

I have an installer that deploy an executable and a XML config file. I have some properties to override the value in config file. I use the "REMEMBER_ME" pattern to catch the cli args. Can ...
0 votes
1 answer
35 views

WIX ToolSet Conditional logic ignored

I am having some trouble trying to perform automatic installations after a registry search to see installed versions of specific software. This custom action should then set a conditional variable to &...
3 votes
0 answers
33 views

Wix Installer showing 0x80070001: Failed while caching [duplicate]

I am creating the Desktop application exe installer using Wix application. First I am creating MSI using Wix and then I am creating the exe installer using WixBootstrapper project. created exe ...
0 votes
0 answers
53 views

Wix 3.5 add file based on file exists or not

I’m currently trying to learn how to build a installer itself but have a hard time figuring it out. I miss a concrete example of how an element is used, for example in my case am I needed to search ...
37 votes
5 answers
17k views

WiX x64 platform target

When I create a WiX project and try to build it with the platform set to 'x64', I get errors in my build output like this: ------ Build started: Project: MyProject, Configuration: Release x64 ------ ...
34 votes
6 answers
30k views

Wix Not Removing Files on Uninstall

I've seen others' questions on this matter, but I can't make it work for me. I'm trying to get used to Wix so we can migrate our vdproj's (I feel like we've taken 1 step forward and 4 steps back here.....
1 vote
2 answers
1k views

How to combine MSI files created with WiX in differnet languages to one file where yo can select the language?

I have a Windows Installer XML (WiX 3.5) project and five localization files for my installer. Therefore WiX creates five .msi files, for every language one. How can i put all in one .msi and let the ...
6 votes
1 answer
728 views

wix example of dual purpose (per-user or per-machine) package using ui

Does any one have or know of a location of a sample Product.wxs on how to properly write Single Package Authoring? I am trying to create a dual purpose (per-user or per-machine (user choice)) MSI. I ...
1 vote
1 answer
786 views

wix - error CNDL0004: The file element contains an unexpected attribute "src" when running from the command line

When I run the below command from the command line for the WIx installer after migrated from version 2.0 to 4.0 E:\Code\PCPE\builder>ant -v -f Build.xml -Dlabel =.001 install I am getting the ...
0 votes
1 answer
157 views

DirectoryRef: use in 2 different folders

In my installer project I have a harvested output of a referenced project which creates a fragment and, inside it, DirectoryRef element. <?xml version="1.0" encoding="utf-8"?>...
0 votes
1 answer
76 views

Wix installer wrong path to the users folder

When try to install an app via my installer on the machine that is using Spanish language (SystemLanguageID 3082), in logs I can see that the properties like WixBundleLog and so on has C:\Users... ...
14 votes
4 answers
9k views

Is it possible to pass variable to WIX localization file?

I need to use variable in WIX localization file WIXUI_en-us.wxl. I tried use it like this: <String Id="Message_SomeVersionAlreadyInstalled" Overridable="yes">A another version of product $(var....
0 votes
1 answer
203 views

Trying to run the multiple powershell scripts from wix installer

Here I have tried something but it dose not work at all can anyone guide me how to run the multiple scripts from installer <SetProperty Id="PS1" Before="PS1" ...
0 votes
0 answers
117 views

WIX Toolset Bundle does not detect package that was just installed

I am creating a super simple bootstrapper project that installs just 1 MSI. Install works perfectly, but when I do an uninstall from (ARP), the package just installed is not detected, so it is not ...
13 votes
4 answers
9k views

Wix, where can I find WixUI_InstallDir.wxs and InstallDirDlg.wxs

I've just been assigned a task of working (learning) WIX. To better understand the dialog handling and stuff, I found many references of "just get..." and then WixUI_InstallDir.wxs and InstallDirDlg....
5 votes
1 answer
666 views

How to properly run heat.exe tool to generate Wix code compatible with InstallScope='perUser'?

We use Wix tool heat.exe for harvesting files when building MSI installer. The problem is that the XML generated by this tool is not compatible with per-user installation type. Is there a way to make ...
1 vote
0 answers
125 views

Why MSI installer queries registry for all installed certificates?

I had a problem with my msi installer on a client. Kaspersky has blocked it, because MSI was accessing protected registry paths in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\ ...
1 vote
1 answer
2k views

How to create SDK based WIX custom action in WIX v4 ? Specifically how to get the ..CA.dll to map in the .wxs file?

I have an existing custom action project in .Net framework 4.8 and wix setup project v3. The goal is that I need to convert the framework project to SDK. I found out that WIX v3 doesn't support SDK ...
0 votes
3 answers
2k views

Not able to send Wix SourceDir path with spaces to custom action ExeCommand

i am not to able to pass "[SourceDir]" path when SourceDir path has spaces. ex: SourceDir = "C:\Temp\Setup" i am able to send "C:\Temp\Setup" path to custom action SourceDir = "C:\Temp setup\Setup" ...
31 votes
3 answers
20k views

WiX installer fails with error code 2819

I am trying to create an installer using WiX which doesn't show the license agreement at the start. But I get the error as below. This is the full Product.wxs file I have at the moment. It compiles ...
0 votes
1 answer
76 views

calling a script before the managed bootstrapper application is loaded

I am new to wxs and I want to run a script which sets certain registries,right before my managed bootstrapper application is loaded. I haven't found any article which talks about the same.I thought by ...
5 votes
1 answer
5k views

BrowseDialog and InstallDirDlg wix

I have an InstallDirDLG and i need other browse dialog, the problem is when i select the path in second browse dialog also change the installdir path. This is the control code: <Control Id="...
1 vote
1 answer
412 views

Display the warning dialog when a condition is satisfied in Wix

In my Wix Installer, I am searching for registry key for Adobe acrobat reader and displaying a warning dialog with "YES" and "NO" option. This dialog is supposed to display during ...
-1 votes
1 answer
232 views

Wix MSI - Taskbar shortcut goes orphaned when product is uninstalled

My wix installer creates the shortcuts at Desktop and StartMenu during installation. From the installed Startmenu shortcuts, Some of the users use the feature "Pin to taskbar" to pin the ...
21 votes
8 answers
17k views

Custom Action in C# used via WiX fails with error 1154

I am using WiX 3.5.1930 in Visual Studio 2010, targeting the .NET Framework 3.5. (Later weekly builds of WiX seem to be very broken with respect to their custom action template, at least for now. ...
0 votes
1 answer
153 views

How to change the permissions of the file that is already created using wix installer

My requirement is, When installing the older installer package the file (Config.txt) is getting created with system permissions in the ProgramData folder. And from the code, we are not able to remove ...
0 votes
0 answers
104 views

why always vc_redist DetectCondition getting failed in wix code(.wxs)

!-- OR Detect existing version of VC ++ 2015-2019 x64 libraries --> <util:RegistrySearch Root="HKLM" Id="GetVC14X64Exists" Key="SOFTWARE\WOW6432Node\Microsoft\...
0 votes
1 answer
44 views

Simple WIX Installer just coping file doesn't work, what is going wrong?

Here is my code just to copy a file however I don't see any directory created in program files or any notepad.exe file being copied? Where I am going wrong? <?xml version="1.0"?> <...
1 vote
2 answers
3k views

WiX: how to install created patch in REINSTALL=ALL by default?

I have generated a patch.msp file using wix tools and the when I install it via command line using the following command, all components of my app get updated. Install patch.msp file via command line ...
2 votes
1 answer
684 views

How to add a new row to Property table of msi file using c#/cmd

I need to add a new row in the msi file database i.e. I need to add a new row in Property table. ServerUrl = "www.google.com". I have tried using orca and I was able to do it. But this is a ...
1 vote
1 answer
266 views

How to add application version to the MSI file properties?

I have a application which is using Wix to create installer. Is there a way to add version number (build number) to the properties of MSI as shown below Here google chrome installer added version in ...
0 votes
1 answer
566 views

Wix Toolset can't grant permission to user in install directory

My app writes log using log4net in the appinstalldirectory\log directory but the app is not able to create log directory and create file. It was because on security tab current login user which is ...
0 votes
1 answer
697 views

WiX -- Set Component Directory at Install Time?

The following doesn't compile, but how can I get the equivalent functionality of [MYDIR]? <Component Id="MyComponent" Guid="MY_GUID" KeyPath="yes" Directory="[MYDIR]"> <File Source="...
2 votes
1 answer
2k views

Install multiple exe with wix toolset

I have three products which have their installers in .exe files. Let us say the installers for the three three products are Product_A.exe Product_B.exe Product_C.exe I want to create a msi file ...
1 vote
0 answers
332 views

Wix Radio button group setting default value after SpawnDialog closed and Property not setting to Edit field

I am trying to provide the user an option to provide a token in form of a URL or browse for a locally present iso image via Wix UI Here I face 2 problems: a. When I select option 2, to BrowseFiles, ...
2 votes
2 answers
3k views

Wix: Copy files in Custom Action to Programm Directory ( Windows 7)

I created a managed CustomAction to copy 2 files not included in the *.MSI to the installation directory. While this works in Windows XP, it fails in Windows 7. Although the log say the files are ...
1 vote
1 answer
77 views

How to ship Wix created MSI with default commandline

We have an MSI called product.msi with a set of features. To make it easy for the user (and hide the features for other users) we have a commandline to select the visible features in the MSI Msiexec /...
2 votes
2 answers
2k views

Error ICE18: KeyPath for Component: 'DeviceStartup' is Directory:

I am getting the below error when building my WIX project. ICE18: KeyPath for Component: 'DeviceStartup' is Directory: 'INSTALLDIR'. The Directory/Component pair must be listed in the CreateFolders ...
0 votes
1 answer
153 views

Unable to install filter driver using wix

I am currently trying to install a filter driver using wix. Here is the code that I am using. <Directory Id="DCVFilterDriver" Name="FilterDriver"> <Component Id="...
-1 votes
1 answer
779 views

Run PowerShell script at end of bundle chain execution

I am creating a exe installer using Wix Bootstrapper. In the bundle chain I am installing some exe files. In the end I want to execute a PowerShell script to do some additional tasks. How is it ...
10 votes
1 answer
6k views

How to prevent Wix from removing registry entries on uninstall?

<RegistryKey Id="MyServerRegInstallDir" Root="HKLM" Key="Software\MyApp\Server" Action="create"> <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" /> <...
3 votes
1 answer
2k views

Can't suppress WiX warning LGHT1076

I'm using WiX tool to harvest files and create an installer The heat linker produces some warning LGHT1076, I tried adding -sw1076 to the command line to suppress the warning id 1076 but the warnings ...
0 votes
1 answer
34 views

How to allow the user to choose the name for the Start Menu Group on WiX3.5 installer?

I'm creating an installer using Wix3.5, and I would like to allow the user to choose a name for the Star Menu group where my shortcut will be placed on. I tried using Properties: <directory id=&...
15 votes
1 answer
16k views

Web application install with initial IIS settings; using WiX, need upgrade files, NOT changing IIS settings

I have a WiX install project that includes IIS setings for virtual directory and application settings with an application pool. After initial install, the customer will change the application pool ...
1 vote
0 answers
188 views

How to bypass dll fileversion in wix installer

I have an application where I bundle JRE inside the main installer, I first create the installer for JRE, and then package is inside the main installer. I was using the jdk-8u152 and I am upgrading it ...
0 votes
1 answer
593 views

cpack MSI installation exceeding 2GB - packing into multiple CAB files

I am using cpack and Wix to create an MSI installer containing media files. I am getting catastrophic failure, I read, due to cabinet file exceeding 2GB. If I understand correctly, I can split the ...

1
2 3 4 5
16