wix

WIX: Heat duplicate id issue with multiple features/folders

Hi, I am newbie to Wix and creating a multi feature Wix project. Our product is having 4 modules and each module has to be included as a feature in the Windows installer. But all features are sharing the same folder structure. I am using commandline to build my Wix project. After harvesting every module into different wxs fragments, t...

Wix: Add shortcut not in a subfolder!

Hello, I want to add a shortcut in my program menu. i tried: <Component Id='myId' Guid='E4DED108-0129-4a5b-83FE-C9D1E3025B00'> <File Id='MyFileID' Name='Prog.exe' DiskId='1' Source='.\Prog.exe' KeyPath='yes'> <Shortcut Id='myShortcut' Name='Prog' Icon='MyIcon.exe' IconIndex='0' Directory='ProgramMenuDir' Adver...

<FeatureRef> cannot be sorted!

i have few files let say setup.wxs, client.wxs and report.wxs. pratically, client.wxs and report.wxs each has its own <.FeatureRef Id="MainApplication"> to the main <.Feature Id="MainApplication" ...>. but the funniest thing is, i cannot sort the tree order. let say i want: MainApp |- Client |- Report Unfortunately, it will come out...

How can I exclude files from harvesting a folder with heat (WiX 3.5)?

I would like to harvest a folder with a lot of files by using heat.exe. But instead of harvesting all files, I would like to exclude specific file extensions like "*.txt" or something like that. How can I do this? ...

Bootstrappers that download packages over the web from Microsoft

What are the best practices for creating internet download bootstrappers that reference Microsoft packages? For example InstallShield has a Setup Prerequisite that can download vstor40_x86.exe from Microsoft.com through a go.microsoft.com/fwlink link ID that resolves to the download url for that EXE. InstallShield didn't create a PRQ...

WiX: MSI Deinstallation via system panel looks for installation source.

I wrote an installer using WiX. When I try to deinstall from the windows system panel the installer framework occasionally wants to access the original installer source (msi-file). However, in this case the product was installed from a network drive that is no longer available (see screenshot - sorry in German). I always thought windo...

How to add multiString registry value using WiX?

Now I use something like this: <Component Id="RegistryEntries" Guid="<guid>" KeyPath="yes"> <RegistryKey Root="HKCU" Key="<path>" Action="createAndRemoveOnUninstall"> <RegistryValue Name="myStrings" Action="append" Type="multiString">1</RegistryValue> <RegistryValue Name="myStrings" Action="append" Type="multiString">2</...

Want to opdate or create bootstrapper packages myself

Hi Everyone, I am quite new to Windows Installers, i faced some problems, but finally accomplished what i wanted. One important question remains for me. I can't figure out where i can download or how to create or update bootstrapper packages. My application needed SQL server compact 3.5 and the bootstrapper package was installed on my ...

WIX create folder using property

In the WIX I have a dialog where the user could select a folder [CUSTOM_FOLDER] from local machine, after the setup is finish I must give share to that folder and copy some files to it. How could I archive this using WIX 3.5? ...

When should I use -sreg in WiX' HEAT.EXE?

I'm using HEAT to autogenerate WiX fragments for a directory of files. The project I'm deploying is an ASP.NET project. When I tried to harvest a directory, HEAT generates RegistryValue entries that writes InProcServer32 entries for .NET DLLs. Using -sreg removes said entries. Questions: Should I even be using HEAT to autogenerate f...

How to change the window service startup type in Wix installer

Hello all, We need to modify the Startup type of our windows service from "Automatic" to "Automatic Delayed Start". Anyone has the idea that how to do this? My code is like this: <ServiceInstall Id="WinServiceInstall" Name="ServiceManager" DisplayName="ServiceManager" Type="ownProcess...

File is being removed even if condition is not met

Hi! I develop a merge module which then will be send to customers to be incorporated in their installers. I also make my own installer. In my merge module I have a component to remove log files not copied by installer. I want to remove the log files only when uninstalling the product, not when is being upgraded. That's why I've placed...

how to copy a file and then conditionally remove it

Hi! (I'm newbe in Installer world so I'm still not sure what is right what is wrong. Anyway.) I make a installer for service which uses desktop database. The database file should somehow be copied during first installation, be intact during upgrades and finally removed during uninstall. As far I know, I can't add the database file as ...

Why does my installer always prompt for reboot

I only want to reboot when uninstalling. This is a fragment from my WiX file: <InstallExecuteSequence> ... <Custom Action="CleanRegistry" Sequence="7100">REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE</Custom> <ScheduleReboot Sequence="7200">REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE</ScheduleReboot> </InstallExecuteSequence> Runnin...

Install ClientAccessPolicy.xml to Default Web Site using Wix

I'm using Wix to install my web application, and it includes a Silverlight app. Because of cross-domain restrictions, I need to install a ClientAccessPolicy file to ensure that the Silverlight app can talk to the included web services. Unfortunately, ClientAccessPolicy.xml has to be available from the root of the site, so I can't just p...

How do I mark a directory to be deleted after reboot?

I've got an uninstaller that performs some actions and then prompts the user to reboot. I'd like a directory to be deleted after the reboot takes place. I know there's a way to do this, I'm just not sure how. I'm using a WiX installer, and I'd imagine I could use that to do so, somehow, but I'm open to alternatives (whatever's simplest ...

Files not installed when executing custom action in WIX

I am writing a WXS file for a package I want to install. For the sake of simplicity, let's say I want to install 1 file and then I want to execute a command against it (in my case, it is a public GPG key and I want to import it after the installation is done). Here are the relevant parts of my WXS file: <CustomAction Id="ImportKey" Dire...

How can I prevent a pop-up asking to shut down services before uninstalling

I have a WiX installer that runs a program that downloads the latest version of my code and installs three windows services. I have a custom action runs another program that shuts down and uninstalls the services during uninstallation, after InstallInitialize. The uninstaller also deletes all files and directories that get downloaded. Ho...

Help with ensuring a bootstrapper is used but having upgrades work

We have an MSI we have authored in WiX 3.5.2030.0 and targeting Windows Installer 4.0 (for MSIUSEREALADMINDETECTION support). We have a property that we have defined in the MSI to enforce use of a bootstrapper (I say "enforce" but it's really "very strongly encourage" of course): <Property Id="SETUPEXE" Secure="yes" /> <Condi...

Install solution for repackaging thrid party software

We have a suite of software solutions developed by a third party which are branded under our company. Using their tools we create our own XML scripts, which are used by their software, to do various things which make up the application the end user interacts with. The software consists of several directories and several hundred files (e...