wix

Based on CheckBox value show the WIX Dialog.

I have instakllation i have to show the Dialog based on the checkbox value. I have set the checkbox property as true initially. <Property Id="CHECKBOX_1_PROP" Value="TRUE" /> And show the dialog based on the check box values. If it is true i have to show the Newdoalog_1 if it is false i have to show the Setup dialog <Control Id="Next...

Wix patch always fails when adding components and using '-delta' flag

My patching system is severely limited in that whenever I need to patch my software product and add any new file I am prevented from using the '-delta' flag. If I do use this flag, when the msp runs it always fails with an error saying '_ComponentID cannot be installed because the file cannot be found in the cabinet file.", which kind of...

Show the Dialog Wizard based on the Check box value

I have to show the Dialog based on the checkbox value. Intially i have set the checkbox property=True like below <Property Id="CHECKBOX_1_PROP" Value="TRUE" /> And show the dialog based on the check box values. If it is true i have to show the Newdoalog_1 if it is false i have to show the Setup dialog <Control Id="Next" Type="PushBut...

WiX, how to prevent files from uninstalling though we forgot to set Permanent="yes"

We have a product installer created with Wix, containing a program package ("V1") and some configuration files. Now, we are going to make a major upgrade with a new product code, where the old version of the product is uninstalled and "V2" is installed. What we want is to save one of the configuration files from uninstalling, since it is...

How to run a custom action after install which can run in quiet or a UI after Install (WIX)

Hi, I basically want to able to run an command line tool that already exists on the desired machine against the directory the files were run to. I.e The Installer does the following: Specify a location for the files to go into (INSTALLOCATION variable) Then after copying has finished run a tool which will zip the files and attach them...

WIX - Conditions For Actions/Components depending on First Install or Upgrade

Hi, i am relatively new to Wix. I created a Setup where we can define a connection string on the first install. Now i wanted to upgrade, and have the possibility to skip some Dialogs that are only used in the first install (like the one that asks for the server and database), and i didn't want to remove some XML files that were configure...

WiX installer that always installs to "Program Files" directory on both x86 and x64

I have a .NET application that runs on both x86 and x64. I'd like to have a 32 bit WiX installer that will work on both platforms but I'd like it to install to /Program Files/ rather than /Program Files (x86)/ on 64 bit operating systems. How do you go about doing this? Update: My idea was to assign the ProgramFilesFolder or ProgramFi...

WiX 3.0 Merge Module: meaning of Source attribute

What is the purpose of the Source attribute? Have a look at this snippet: <Component Id="MyComponent" Guid="123456789-abcd-defa-1234-DCEA-01234567890A"> <File Id="myFile" Name="myFile.dll" Source="myFile.dll"/> </Component> Since Name and Source have the same value, what does Source add? The code does not compile without it....

WiX COM+ error code

I'm trying to register COM+ with WiX. I get the following error. Where can I find the meaning of error code -2146368486? RegisterComPlusAssemblies: DLL: <file name> ComPlusInstallExecute: ErrorInfo: Name='<file name>', ErrorCode='-2146368486', MajorRef='<name>', MinorRef='<invalid>' ComPlusInstallExecute: ErrorInfo: Name='<name>', Err...

Deploy and Run application at beginning of WIX Install

I'm trying to deploy and run an application (C# console app) at the beginning of the MSI install with WIX but having some difficulty. The application needs to run before any of the webserver actions happen but after the files have been copied from the MSI to the target location. I can get the app to run but only if I have actually copi...

Same file to two location in WIX 3.5

I am trying to add the same file to two diferent locations. I am deploying an SDK and want certain files to reside in .\Binaries* as well as .\Samples\SampleX* and also .\Editor* The Answer is probably going to be to put them in the GAC,but we realy want them on disk so they are disributable. ...

Visual Studio build and deploy ordering

We have a VS 2010 solution that includes a few class library projects, a SQL Server 2008 database project and a Wix setup project. We are trying to get to a point where the following happens in the order specified: Build the class library projects and the database project Deploy the database project to generate the deploy .sql script B...

WiX major upgrade refuses to replace existing file!

EDIT! It's rough how a question on here seems to get seen when first posted, but when a question is asked, and then answered, for me it seems abandoned. I am still having this problem, and not sure what to do. Hello! I have inherited this project with a WiX installer, and am required to make this version usefully upgrade the previous...

I Cannot retrieve ARPINSTALLLOCATION so we know where to install a new version

I am trying to retrieve the ARPINSTALLLOCATION during the installation of a Major Upgrade version of the software. Following this info I managed to set the ARPINSTALLLOCATION to the custom path. However, retrieving it again isn't working. I've tried many things over the past days but it keeps defaulting back to the default installation...

Icon for shortcut

Hi! Could you tell me what is wrong in this code?? Why it doesn't work?? <?xml version="1.0" encoding="utf-8"?> <Icon Id="ikonka" SourceFile="Files\AdministKOB.exe"/> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="DesktopFolder"/> <Directory Id="ProgramMenuFolder"> <!--<...

How can I setup a .NET Custom Action within WiX 3.0?

I need to setup a custom action within WiX 3.0. I have the following setup in my Windows application exe. I have viewed the question at StackOverflow: Removing files when uninstalling Wix however I can't get this working with WiX 3.0. This seems to deal with InstallUtilLib.dll, however I can't work out how I call the custom action wi...

MSI patch - file creation date

I want to patch an msi install. If the time stamp of an otherwise identical file is different in the baseline msi vs the current msi, will that be detected as a changed file and consequently be included in the resulting msp file? If yes, is there a way to avoid this? The specific scenario is the following: Suppose baseline msi has dlls...

How to do a silent install and uninstall with Wix and MSI?

How can a silent installer that does not display any UI Dialogs to the user and installs, upgrades and uninstalls with default settings be created in Wix? ...

Create Folders from text file and place dummy file in them using a CustomAction

I want my msi installer to generate a set of folders in a particular location and put a dummy file in each directory. Currently I have the following CustomActions: <CustomAction Id="SMC_SetPathToCmd" Property="Cmd" Value="[SystemFolder]cmd.exe"/> <CustomAction Id="SMC_GenerateMovieFolders" Property="Cmd" ExeCommand="for /f &quot;tokens...

DTF Custom Action reference in WiX not a valid WiX reference

I can build a managed custom action just fine using the DTF tools (I.E MakeSfxCA.exe) My post build event command line looks like this: "%WIX%SDK\MakeSfxCA.exe" "$(TargetDir)$(TargetName).CA.dll" "%WIX%SDK\x86\SfxCA.dll" "$(TargetDir)$(TargetName).dll" "$(TargetDir)Microsoft.Deployment.WindowsInstaller.dll" But wheneve...