msi

How do you catch the VBScript runtime error: "Object required: 'Session' -- Developing vbs script for MSI, want to develop on cmd line where Session isn't defined.

Writing a script for a custom msi installer action. When my script is invoked by an Installer you can get Installer properties via Session.Property("PropName") If you don't invoke via installer you get a runtime exception. I want to make my script so I can develop and debug w/o the Installer so how do I catch this error? I want to do...

MSI reference counting

I have my product MSI, which customers can install individually. There are other product suites in my company which will also be sharing and installing this product MSI. How Do I do ref-counting in MSI ? ...

Launching a service from msi installer that depends on assemblies installed by the msi

I'm using WiX to write a MSI installer to start a service that depends on DLLs installed by the MSI. On Vista, the DLLs become added to the global assembly cache in the MSI's InstallFinalize phase, so I can't use the built-in service starting command in WiX. That one tries to start the service before the DLLs are in the GAC, and fails. T...

How do I change the value of a persisted property in an MSI during a Modify operation?

I have an MSI that I've created. In that MSI, I have a persisted property that the user has filled in during the initial installation of the application, using a custom dialog box. When the install is run again, and the user selects to Modify the installation, the values initially entered appear as they should. However, if the user ch...

WiX Standard Dialogues

Hi! Does anyone know if there are any WiX standard UI dialouges out there that you can use to integrate into your own WiX msi package? For example: Editing Connection Strings to database Editing paths to log files in web.config/app.config Setting up users for a Windows Service Setting up WCF Endpoint addresses and other parameters ...

single installation experience for application and bootstrapper in wix..

hii, i made a bootstrapper for my msi to check and install the prerequisites..and when i click the setup.exe file it smoothly check and install..there is no problem in it.. *)For now i use GenerateBootstrapper and bootstrapperFile to create bootstrapper. But my problem is this that when the prerequisite are installed they use there ow...

HOWTO and best working installation (MSI) chainer +/ bootstrapper

Hi, Our product has several products that customer can install created as separate installation packages (MSI). We have a requirement to have single package for the installation that will: Show one UI with progress Allow user to choose which features/packages to install Have ability to constrain one feature to another (e.g removing o...

Visual Studio setup project - running as system account

I created a new Visual Studio Setup project with VS 2008. I use it to install SQLExpress. The installatino of SQLExpress works fine when I do it manually outside of the installer. But when I install, I get an error in SQL Express with permissions. I found out that it's because the SQLExpress process is running as the System account w...

C# sql express 2008 not showing in the list of pre-requisites in setup project

I'm creating an installer via VS setup project, and I'd like to make sure sql express 2008 is installed if it is not already installed. I right clicked on my installer project and go to Pre-requisites but SQL Server 2008 Express is not there. 2005 is listed, but I need 2008. I installed SQL Server 2008 Express after Visual Studio. W...

C# - Windows Service installer fails in custom action

We install a windows service from a custom action as described here: CodeProject Every so often, when uninstalling our application, it does not properly uninstall the service. Instead it "marks the service for deletion". You can see this message by running installutil.exe /u on our executable, when it is supposedly uninstalled. Has a...

Change default output path for VS2008 setup-project?

How do I change the default output path of a VS2008 setup-project? It installs into Program Files\myOldProjectName right now. ...

Upgrading Client version via msi

Hi All I have a client version of a software called KRONOS and i need to update this via a batch file that will run a MSI. First I need to check to see if the application is installed. If it is, I need to see what version it is to see if I need to uninstall prior to installing the new version. I was thinking of using something to che...

Is it possible to create an installer that includes ms sql express? (wihtout separate exe)

Is it possible to create an installer that includes ms sql express? I currently install ms sql express via setting the setup project's pre-requisites. It outputs 2 files, an msi and a setup.exe. The setup.exe will detect is SQL express is installed and install it. It works great. But now I have to distribute 2 files... I'd like to ...

Can we Change the Value of ComponentsLocation from "Relative" to "HomeSite"???

hii, well i develop a setup.exe(bootstrapper) using GenerateBootstrapper.Bootstrapper to load my msi file after check and installing prerequisites.It perfectly running if i make ComponentsLocation *) either "HomeSite" to download prerequisites from the microsoft and install. *) or "Relative" to take the prerequisites at the same locat...

Is it possible to install Prerequisites using CustomAction in WIX??

Hii, well i want to install Prerequisites using CustomAction in .wxs file. I have already done the same with GenerateBootstrapper Task. But i want to download and install my prerequisites(like .Net Framework 3.5 and SQL Server etc.) from HomeSite using CustomAction. Is it possible to do this in WIX?? ...

MSI script to check sql server 2000 PE for a db name and not rerun db install script

Greetings, I am seeking help on building a script that will allow my msi installer to check for an exsisting db or exsisting user on the local server of sql server 2000 Personal Edition, during the pre install, the script needs to return the sql response and not run/resintall the sql scripts if the db name or db user is on the server al...

How do I add/update a property inside an MSI from the command-line?

I have an MSI installer in which I need to add or modify a short text property from the command-line. This has to be done after the installer is built; I cannot modify the process that produces the installer in the first place. It also has to be executed headless from a script. When I say "property," it could be an MSI property, a val...

HTA installer for MSI failing

I'm using a HTA to try to install a product using WindowsInstaller.Installer as an ActiveXObject. Using the same HTA model that has been used in the past, the attempt to install throws the error: "Msi API Error: InstallProduct,PackagePath,PropertyValues". I have tried this on both Windows Vista and Server 2003 with no success. Both hav...

Problem with Z-index of the controls in WIXUI(Problem of overlapping)

I am trying to design a dialog box for License aggrement and other dialog boxes. Now if I set a image(.jpg/.bmp) in background of my dialog box then the checkbox will get disappear,and it is not visible until I hover the mouse over it. And the same problem appears with a pushbutton. *) I first thought it could be because of the large s...

Using Package Transformations (MST)

What is the difference between using an MST combined with an MSI, and running the MSI and passing the modified properties through the command line (MSIEXEC) ...