msi

Creating One MSI for multiple project

I have 2 projects. I want to create ONE single MSI setup package that will install both of those projects. In My Application Folder I have created 2 subfolders (Project A and Project B folder). So after the install, the project ouputs will be in Program Files\MyProduct\Project A Program Files\MyProduct\Project B The problem I am havi...

Issues with .MSI install package created for IIS WCF Web Service - default dir and app pools?

I followed these instructions, and it worked well. http://blogs.cardwells.org/gis/2008/10/08/creating-installer-for-a-web-service-in-visual-studio-2008/ However, the default virtual IIS Diretory name is the same as my projet name. For example, my web service is called MyCompany.RCT.WCFWebServices, and my setup project is called MyCo...

Windows Installer msi package

I have a windows installer msi package with the setup.exe bootstrap. Works fine everywhere. However the client has supposedly uninstalled the application and then tried to run the setup.exe again and gets the following error in the log file: Launching Application. Error: Unable to locate application file 'xyz.msi'. Now the setup.exe a...

Upgrade installation results in duplicate entry for installed software (FindRelatedProducts not executed)

I try to perform a major upgrade with my MSI installer with a quiet installation. The installer already works well when using a normal installation with a full user interface. In this case the old product is uninstalled because FindRelatedProducts action (from the UI sequence in FolderForm) detects my previously installed version. When...

How to override the IIS virtual directory in an MSI install

I created an MSI to install a WCF web service. It's running fine, but when I run the MSI, it defaults to install as MyCompany.RCT.WCFWebServicesSetup instead of MyCompany.RCT.WCFWebServices. 1) I would prefer to force the name of the virtual directory, and not even let the user change it, or 2) I would at least like to provide the...

How to debug failure of a custom action in an MSI/Setup project

For a custom action, I'm setting to Name to XmlPreprocess.exe (a CodePlex utility) and arguments to: /x:"[SETTINGSFILE]" /i:"[TARGETDIR]web.config" /e:[ENVIRONMENTBUTTON] [CUSTOMSETTINGS] >[TARGETDIR]XmlPreProcess.log SETTINGSFILE is supposed to be coming from a custom form page I added, and ENVIRONMENTBUTTON is the value of one of my...

Msi Doesnt run from within c#

Hi all, I am trying to run an msi from c# using the Proces.Start method. the Msi is fine because i can run that normally. but when i try and run the msi within some c# code i receive the following error. "This installation package could not be opened. Verify that the package exists, and that you can access it, or contact the a...

What is the default installlevel for windows installer?

If you do not provide any installlevel argument to msiexec, what is the default value that the Windows Installer Framework assumes? My tests seem to indicate 1, but I can't find any documentation that corroborates this. ...

Making sense out on .MSI verbose trace - running a CustomAction

Making sense out of an .MSI verbose trace. I created the .MSI using VisualStudio 2008. Here's the background on what I'm trying to do: http://xmlpreprocess.codeplex.com/Thread/View.aspx?ThreadId=79454 The goal is to run a program called XmlPreprocess.exe similar to this: xmlpreprocess.exe /x:"SettingsFileGenerator.xml" /i:"web.config"...

Run x86 msi setup on x64 os / platform

Is it possible (and recommented) to ship a x86 app only in a x86 msi setup which is executed as x86 app on 64 bit os / cpu? ...

Uninstall an MSI with msiexec fails with new version of MSI

We are installing several web sites using msi's as part of continuos integration tests. For each build we want to uninstall the old msi and install a new one. Problem is we do not have the old msi after the build server has done a get latest and rebuilt the system. Is there a way in which we can uninstall the msi without having access...

Execute a .exe file automatically after installation.

I have a .exe file, which should be executed as soon as the installation of the main application is finished. I understand this can be achieved using Custom action. I need a little assistance in creating a Custom action. I'm using VS2008, .NET 3.5, As I'm new to c#, if the suggetions are in detail, would help me understand better. ...

How to upgrade via msi

I want to upgrade my product via msi setup. The Upgrade Code of both msi remains the same because it's the same product family. Even if I change Version/Product Code of the msi for updating it just tells me the product is already installed or asks me to repair it. it doesn't ever provide an update option that replaces the current instal...

Installshield - Update the registry according to a file given at runtime

I'm writing a basic MSI installer using installshield 2010. A different company would supply a .reg file that the installer would read in runtime and would update the registry accordingly. I can't figure out how to accomplish this. I manged to write a script using the Installscript that accomplish this, but when this script is running ...

Launch program after msi installation

I've created a msi installer with visual studio 2008. I'd like to launch the installed program right after the installer has finished. 1) How to add a User Interace like many installers have that asks if to launch the app now? 2) Can I create a custom action that runs the app with user privileges? ...

Using cmd.exe in a VS Setup Custom Action

I set my Custom Action to cmd.exe and adding these arguments: /K XmlPreProcess.exe /x:"[SETTINGSFILE]" /i:"[TARGETDIR]web.config" [CUSTOMSETTINGS] /e:[ENVIRONMENTBUTTON] >log.txt I'm trying to either: a) stop the command screen so I can read it b) write the results to a file so I can read it. [ENVIRONMENTUTTON] should be equal...

WIX CustomAction - how to get more info in install/log

Someone told me there was a way for the CustomAction in WIX to display the output in the console log. I'm including an .exe called XmlPreprocess.exe to manipulate my web.config, based on parms in a file called SettingsFileGenerator.xml, I'm running like this: msiexec /i bin\Debug\TFBIC.RCT.WCFWebServicesWIXSetup.msi /L*V "C:\logs\Wix...

Adding first custom Dialog Box to WIX in VisualStudio environment

I'm using Visual Studio to build my wix file. So far I have one file Product.wxs and it's working for a simple install. Now I want to add some custom dialogs. I think from the two articles below, I understand how to do it - after I get my environment set up: http://blog.torresdal.net/2008/10/24/WiXAndDTFUsingACustomActionToListAva...

Wise: How to install files into a path specified in the registry

Hi, I'm writing a .msi using Wise Installer Editor and I want to copy all my files into a directory specified in a registry key. How can I specify this in Wise? Thanks in advance, Ernesto ...

Is it ok to schedule RemoveExistingProducts custom action before InstallValidate?

Problem I have an MSI that creates and starts a Windows service during installation and stops and removes the service during uninstallation. This works fine when installing and uninstalling by itself, but when upgrading, the Files in Use dialog is displayed (only on Vista and later due to the new Restart Manager), indicating that the se...