msi

TerminalServer Property in MSI Installers

Hi Folks, we are trying to create an MSI Installer for an app which under Windows Server 2003. The app needs users to be able to log on via Remote Desktop. Using the "TerminalServer" property looked like the correct test to ensure that's the case, but this returns "false" on machines which do have the right OS with Terminal Service runn...

Example of how to use msilib to create a .msi file from a python module

Can anyone give me an example of how to use python's msilib standard library module to create a msi file from a custom python module? For example, let's say I have a custom module called cool.py with the following code class Cool(object): def print_cool(self): print "cool" and I want to create an msi file using msilib tha...

Validate user must install at least one of sub features

Here is the structure of my Application's Installer in FeatureTree/SelectionTree Application Core     |_ _ Feature 1     |_ _ Feature 2     |_ _ Feature 3 I want make sure that when user selects Application Core, he must select atleast one of Feature 1, Feature 2 or Feature 3. I know Condition element under feature can be helpful, ...

How to create a silent installer package using Visual Studio 2008

I am using Visual Studio2008 for my development and i want to create a silent set up package i.e. i don't want any UI to come up during installation. Is it possible to create a silent installer MSI using Visual Studio and if not then are there any other tools to do the same? ...

Using WiX, how to install single file to (potentially) multiple sub-directories, based on what is available at install time?

I'm using WiX, and would like to know the .wxs necessary to take a file and install it to every available sub-directory of a particular location. This could mean 0 or more final installation locations, determined at install time based on the currently existing directory structure. For example, if I started the install with: \target \su...

Removing text in the banner in a Windows Installer project

Hi, I'm using the standard Visual Studio deployment project and want to remove the text in the banner (the text that says "Welcome to the Your Project Setup Wizard". I want to remove it because I want a custom banner and don't want the text written over the banner. I can't see any properties in VS to allow this. Can it be done witho...

MSI Install-on-demand best practices?

I'm working on a new feature for our product, a component of which has some fairly major security implications: it runs as a WCF service, and performs some highly-privileged actions. As such, I'd like that component to only be installed when the user requires it (and removed when it's no longer required), and for the installation to be ...

How to install program shortcuts for all users?

I'm creating an installer msi file using the Windows Installer XML toolkit. When installing the created msi file, a shortcut placed under the ProgramMenuFolder folder results in a shortcut for the Administrator user only. How do I let the installer create a shortcut under the All Users profile, so that everyone on the machine has the sho...

How to fix a botched MSI installer that won't uninstall

As a followup to this question and after reading Rob Mensching's blog post that was referred to from this answer, it seems the way I'm trying to do it with msizap is a bad idea and I'm seeing some problems with it in testing. In his post under what he'd do differently, he said: With the data build a solution. I expect that a new M...

Nant build MSI file

how do i use NAnt to build the msi file thanks ...

How do I create an MSI in VS 2008 to install a certificate into Trusted Publisher store on client machine?

What are the steps needed to create a VS 2008 MSI setup and deployment file to install a custom created certificate/key onto a client's machine? ...

WiX - trying to figure out install sequences

I'm installing a large app, and part of it is a custom written tool called "DbUpdateManager" to mass execute SQL scripts against our target database. Right now, the WiX 2.x install works - but it has one flaw: during install, I also install a couple of Windows services, which can be optionally started right away. Those however will fail...

MSI is unsafe?

I have created an msi to install my Windows form application and when i try to run the msi I get the following error: "This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic" I understand this is a permissions pro...

Javascript MSI automation - closing the database

Hello, I'm maintaining some build scripts that munge MSI databases from Javascript files (.js). The code is basically: { var oTargetDB = g_oInstaller.openDatabase("mymsi.msi", msiOpenDatabaseModeReadOnly); var oView = oTargetDB.openView(...); oView.execute(); oView.close(); } // Later... { var oTargetDB = g_oInstall...

Running an installer on Vista without turning UAC off

My msi installer cannot be installed on a Vista machine without turning UAC off. As my application is going to be distributed to my clients, around 20 machines, and they do not want to turn UAC off, is there a way that I can set some property which would allow my installer to run silent without any user interaction when UAC, which is ena...

Retrieving version of an MSI file (built with WiX)

I've created an MSI file with WiX. The source WiX file contains the version information like this: <Product Id="..." Name="..." Language="1033" Version="1.0.0.1" Manufacturer="..." UpgradeCode="..."> The MSI file seem to work OK: it installs, it uninstalls, it upgrades when I increase the version number, etc. How...

Creating a self-extracting zip archive on a linux box

Due to a number of constraints that I won't get into, I have to create a self-extracting ZIP archive on a linux box. The resulting archive should be executable on Windows only. Is this at all possible? If so, what tools would do the job? Background: when the user downloads a setup package from my linux box, I need that setup package to...

Remove repair option screen from MSI installer

I have created an standard MSI installer for P&D of my application which is using following components: A WCF Service hosted as Windows service. A GUI application that communicates with that service. A Shell extension Dll. Installer is working very good and without any issue. The issue occurs when user try to install application again ...

Who should install a shared .NET library to the GAC? The framework that provides the library? Each application that uses it? Both?

This is more of a philosophical question, perhaps. Let's say I have a framework of some sort and I decide to provide a .NET library that makes the use of certain aspects of the framework easier. I don't want each application that uses the framework to carry a copy of the library locally, so I want it in the GAC (even with all the mainte...

How to upgrade an MSI install using Inno Setup installer?

We recently moved from a Visual Studio setup msi-based installer to Inno Setup but we're having issues with upgrading existing installs using this new installer. I know that the upgrade code remains static even as the product code changes every update, so I initially tried to set that as the AppId in the Inno Setup project, but that doe...