msi

Uninstalling demo/trial of Visual Studio 2008 Team System

I wish to uninstall the trail copy of VS 2008 Team System, as the trial is coming to its end. I had VS 2008 Professional Edition installed on the machine to start with and it still shows up in Add/Remove Problems. I am hoping that when I uninstall VS 2008 Team System I will be left with a working VS 2008 Professional Edition. When I t...

Script to change Action Sequence records in an MSI

To solve a problem listed here I've got to change the InstallExecuteSequence .RemoveExistingProducts record in an MSI. I want to do this as part of the build process rather than mucking around with Orca ...

What is a sequence of actions in a default MSI installation (not custom)?

Hello. An MSI installer calls a lot of pre-defined actions during install - FindRelatedProducts, CheckVersion, etc. Different actions are called during different install types and sequences: admin, unattended, user, execute, deffered... and custom actions are queued 'before' or 'after' these predefined MSI actions. Is there a complete ...

VS2005 Setup and Deployment - MSI Installer on reboot

Hi I built a VS 2005 Setup and Deployment project and i'm able to install the setup without any problems. But, if I reboot my computer, the setup utility is being run again, asking me to install the software again (It already exists). I have not run into this problem before, any help would be greatly apperciated. Thanks! ...

Setup and Deployment Project - VS2005

Hi I built a VS 2005 Setup and Deployment project and i'm able to install the setup without any problems. But, if I reboot my computer, the setup utility is being run again, asking me to install the software again (It already exists). I have not run into this problem before, any help would be greatly apperciated. Thanks! This is what I...

Windows shortcuts without a path

Hi all 'Regular' windows application shortcuts have a target which is a path to an executable file. This path is visible (and editable) in the shortcut's properties dialog. But many shortcuts have no such path, only a (read only) application name is displayed. All the MS Office programs, for example, have such shortcuts. How do these ...

Why does using Shell to run a .MSI file sometimes fail in VB6?

I am attempting to launch the .NET CF installer from a VB6 app using the following code (for the sake of brevity I have replaced the full path to the installer with "(full path)"): Shell "C:\WINDOWS\system32\msiexec.exe /fa ""(full path)\NETCFSetupv35.msi""" I've run this on four machines so far. On two it works fine, on the other tw...

Wix Local Settings\App Data Shortcut

How can I create a shortcut using Wix with a target of "%UserProfile%\Local Settings\Application Data\Foo\Logs"? <Shortcut Id="LogsStartMenuShortcut" Name="Logs" Target="%UserProfile%\Local Settings\Application Data\FalconMobileServer\" Icon="icon.ico"/> It doesn't like the % signs in the target. ...

Add a summary information to WiX generated MSI

How to add (or change a default values) a summary page information to a WiX-generated MSI file? Summary page is the tab page which is visible if you right click on the MSI file in the Windows Explorer and includes following text fields: Title, Subject, Author, Category, Keywords, Comments ...

Integrating Wix with MSBuild

Hi, we are looking to automate an MSI generation for a product we are developing. Currently we have MSBuild building out the source to a network location, this is fine for testing but when it comes to releasing the software we will need to wrap it in an MSI. The software is all .Net bar 1 COM component that will need registered on eac...

WiX changes required to streamline .NET 3.5 installation for Vista (and above) machines.

We have decided to take the plunge and require that our users have .NET 3.5 installed before they can use our media center plug-in. I want to make sure the install experience is as smooth as possible and that our installer stays small. What changes do I need to make to my WiX file to support the following scenarios? Code examples woul...

create setup project that includes .Net Framework 3.5 SP1

Hello, I am creating a setup project. The client would like to have the setup.exe file that includes already the .Net framework 3.5 SP1. However, when I right click setup project | properties On the "properties page" there is a button called "Prerequistes.." There you have 3 choices: Vendors's website same location as my application ...

.NET App Shortcut for MSI When Run By Regular User

I have a C# application that uses the built-in MSI builder in Visual Studio 2005. After deploying the application using the MSI (via CD) onto the target computer, I launch the Desktop shortcut (as privileged user) and the program runs as expected. But, if I log out and then back in as an unprivileged user and try to run the application...

Should I be changing the ProductCode in my .vdproj file on each build?

At the moment our build automatically updates the version number in the deployment project file (VS2008) and changes the ProductCode and the PackageCode. We don't use much MSI functionality at all, it's more of a packaging method and a way to run custom actions which do some activity depending upon a definition file which is shipped a...

Get product name from msi file in C#

Hi, I have an msi file that installs an application. I need to know the product name of that application before the installation starts. I tried the following: { ... Type type = Type.GetType("Windows.Installer"); WindowsInstaller.Installer installer = (WindowsInstaller.Installer) Activator.CreateInstance(type); installer.OpenDatab...

How can I create a new application pool in a Web Setup Project?

I need to deploy my web service. It needs to run in a separate application pool in IIS with its own credentials. Is it possible to do this by using a Web Setup Project in VS 2008? By default, I seem to only be able to choose an existing application pool. ...

MSI does not install all files when RemovePreviousVersion is run

I have a MSI build using WiX version 3. All previous installers for the product we are deploying worked fine with the configuration specified (that is: if previous version exists, remove, then install the new version) - however, the new MSIs we build don't install all files when it runs through the 'remove first' path. If we manually r...

Why is my Uninstall method not called from the msi?

Hi, I am writing an installer for my web app and I struggle with the uninstaller part. Despite the fact that I created a custom action on Uninstall in my Application Setup Project, the InstallerClass is set to true, the method: public override void Uninstall(IDictionary savedState) { //MessageBox.Show("Attach debugger!", "V...

How to extract data (file count) from MSI "File" Table

In our build process there is currently the potential for non-code based files (such as image files) to be added to our web project, but not included in the MSI installer built by WiX. To help prevent this, I want to perform the following in the AfterBuild target for our WiX project: Get a count of all files built (output from web de...

Calling MsiEnumRelatedProducts from C# is crashing

I'm having no end of trouble calling MsiEnumRelatedProducts from C#. I've tried a couple of variations on the p/invoke definition but no luck (out and ref). I think the problem is the last parameter, which is an LPTSTR that is supposed to point to a string 39 characters long. Here's the pinvoke and call: public static string EnumRelat...