wix

WiX Package "Comments" and "Keywords"

Hi all. I am having a bit of a hard time understanding the point in having the Comments and Keywords attributes with the Package element. The WiX homepage simply says "Optional comments for browsing" and "Optional keywords for browsing." Not overly helpful there. Are they used in ARP, or just in the details for the MSI when it is mad...

directory element in WIX

I need some clarification on the directory structure in *.wxs files. As far as i know it install the files in the directory that we have specified in the directory element. Does it have any other use? If it does describe the directory structure where the product will be installed, than what will happen if the user has a browse option ...

Should the App.Config be a companion file to the application or go in its own component?

When I create a Windows Installer package (say using WiX) and I install the application App.exe as well as the App.exe.config should the config file have its own component or should it be a companion file to the application executable? <Component Id="C.App.exe"> <File Source="App.exe"/> </Component> <Component Id="C.App.exe.config"> ...

WIX: persist session data between C# CustomActions and subsequently displayed WIX Dialog

I am new to WIX and have been tasked with creating an installer that does the following: *Deploys a build of our application without overwriting the App.Config file for the application *Loads the key/values in the App.Config file and prompts the user with the "defaults" (existing values) and allows them to modify them before finishing ...

wix: unable to detect servicepacks

hi, I am trying to detect .net framework 2.0 service pack 2. But it seems that wix is unable to detect that. below is the script that i am using. NAnt: <exec program="${wix.dir}\light.exe" workingdir=".\wix" commandline="-ext WixUIExtension -ext WixNetFxExtension -cultures:en-us SampleFirst.wixobj -out ${release.dir}\NantTest.msi"/> ...

Setupbld not performing as required

Hi... I am using "setubld.exe" (by wix) to merge .exe and .msi file It executes pre-requisite file .exe file and then it throws error that Setup.msi file not found. Can anyone please guide me on this. ...

Bizarre Install Dialog Showing Up After Running WiX Installation

I have created a WiX installation package for a large program. The install package includes the merge modules for the Visual C++ 9.0 files. I need to include the merge modules for a COM DLL. The installation runs just fine. The first time I run the program, though, something odd happens. The first time the COM DLL is called, the Win...

How to check for pre-requisite before bootstrappers are run within wix

I have defined a SQL server bootstrapper in the .wixproj file: <BootstrapperFileV7 Include="Microsoft.Sql.Server.Express.10.0"> <ProductName>Sql Server Express</ProductName> </BootstrapperFileV7> And the pre-requisite check in the .wxs file: <PropertyRef Id="NETFRAMEWORK35_SP_LEVEL" /> <Condition Message="This setup requires the .N...

The main differences between IIS6 and IIS7

Hi, I am writing a installer using WiX that will create a website and virtual directory, amongst other things, in IIS. I have been having trouble ensuring that the installer will work on both Windows Server 2003 with IIS6, Windows Server 2008 with IIS7 and Windows Server 2008 R2 with IIS7.5. One of the first problems that I came across...

Enable or disable the next button based on a live text control value in Wix?

I created a custom dialog page in wix and it has a text box. I want to disable the next button of the installer if the text box is empty end enable it if the user has typed a value. The following code works partially. It does not disable the next button but it does not navigate to the next page unless you fill the value. The problem I ha...

WiX issue with executing SqlScript at the remote DB

Hi there, Executing SqlScript at the remote DB causes an error: Failed to connect to SQL database. (-2147467259 myDB1) The SqlScript is the following: <sql:SqlString Id='UpdateSomething1' SqlDb='myDB1' ExecuteOnInstall='yes' User='SQLUser' ContinueOnError='no' ExecuteOnReinstall='no' ExecuteOnUninstall='no' Sequence='26' SQL='...

Using JScript or VBScript for CustomActions

In my installer I need to do the following: obtain location of the external application from registry and create folders for my application executive and various files in this “parent” directory. I know how to get this directory from registry, but unfortunately the string I get looks like this: C:/Programm Files/Manufacturer/ExtApplicati...

How do I get my Wix installer to use an existing application pool in IIS6?

I am building a simple installer for a web application using Wix. I wish to use an existing app pool. The following code works as I want when installing the application. <iis:WebAppPool Id='MyAppPool' Name='CRMAppPool' /> This will set up the virtual directory using the existing CRMAppPool. The problem is when, I uninstall the appli...

32bit MSI: Converting shortcut target path of 64bit app to 32 bit Path

Hi I'm working on a deployment project (Wix based) which is used to deploy an application to run with AutoCAD and create shortcuts of AutoCAD's acad.exe while passing its own argument. To achieve this, there is a Custom Action dll (C++) which iterate through Autocad's registry keys and get the "acad.exe" location and create/update the ...

How can I add an image to a custom WiX dialog?

I have tried modifying the set of WixVariables in my Product.wxs like so: <WixVariable Id="MainLogoBmp" Value="Resources/Images/weblabel.jpg" /> <WixVariable Id="WixUIBannerBmp" Value="Resources/Images/installer_banner.jpg" /> (The first part is what I tried, the one below it is an example of the stock variable that works) ...and the...

how to make an installer for WCF Service using wix?

Can anybody tell me how to make an installer for WCF Service using wix? Is there any good tutorial for it? I know i can use and , but there is not much documentation abt these. ...

Wix Copy If Not Exists

I have several folders files included in my Wix based installer. One of the folders may exist on the target machine already outside of any MSI installation. I do not want to replace the folder or files if they already exist for just one of the folders. It might be OK to not replace the files if they are older. Is there anything I need to...

WiX installer remove files on uninstall but not on upgrade.

I have a program that installs with a WiX installer. The program itself creates a number of files in the [CommonAppDataFolder]\[MyAppName]\ directory. These files all have the same extension (lets call it .dat). On upgrading, I want to retain these files. On uninstalling, I want to remove these files. I am currently deleting the fil...

Directory xx is in the user profile but is not listed in the RemoveFile table.

When iam trying to create the installer i am getting the following error: The directory ProgramMenuDir is in the user profile but is not listed in the RemoveFile table. How do i resolve this issue? below is the directory structure i am using. <Directory Id="ProgramMenuFolder" Name="Programs"> <Directory Id="ProgramMenuDir"...

WIX:Getting error while starting the WCF service after installing

I am trying to create a wix installer to install and start a Windows Service. I am getting the following error: "Service"() could not be installed. Verify that you have sufficient privileges to install system services." Below is the script i am using: <File Id="filFBC5F84CB0C200C1A2F8FFB335A07753" KeyPath="yes" Source="..\..\Te...