msi

C# MSI Installer file/folder permissions

Hi, I'm trying to install a set of files within the programdata folder using basic MSI installer. As the content of the files are dynamic and generated during the installation process, I'm creating the files in C# code during installation. The files are created in the appropriate folders, and everything is good, except the files permi...

Installer automatic repair feature

Applications I install with a VS 2k8 Installer Project MSI file check to make sure that no installed files have been deleted before the app launches and run the installer to fix this if they do. How can I turn this off so? eg so that I can include sample files with my app. EDIT: to clarify the behavior happens when starting the app v...

Enable ASP.NET in IIS6 Programatically

Is there a way to enable the ASP.NET Web Service Extension in IIS6 via C#? I'm trying to simplify a website setup program for people who haven't used IIS before. ...

Can Windows installer msi make the user full trust

Hello, our applicaton is installing with windows installer. The things working fine but the application itself is full trusted and not allowing to run on the employee's computer with less level (not full trusted). My question is that, is there any way to make the user full trusted for this application during the installation? Can we make...

VS2008 Installer Project: How to force "installed for everyone"

Is there any easy way to force the option for installed only for this user or installed for everyone? I want the end-user to be able to double click on the MSI file and not have to pass it command-line. Is there an easy way to do this or will I have to inherit an installer class to customize? ...

Building Inno Setup installer for MSI files

Hi, I'm building a deployment for a work environment, and doing it with Inno Setup. I wrap the other installers in one Inno-exe-File. It's working fine with other exe installers, but fails when it comes to MSI installers. I don't know if there is any general problem, but it completely ignores my file association with the MSI exe (it w...

How to find out defaults when executing MSI with /qn (silent mode)?

When I run an MSI (without parameters) I usually have to click my way through dialog boxes and choose if I want to install to current user/all users, the target directory, etc etc. What happens when I run the MSI with /qn (silent mode). How do I find what answers where automatically chosen for all those dialog boxes? ...

Visual studio 2010 Setup and Deployment Projects?

For those of you who are testing VS 2010 (or stay up-to-date with the blogs).. are there new features for building MSI's in VS 2010? ...

Is it OK to run an MSI from the Temp directory?

I ready in the book "The Definitive Guide to Windows Installer" (Phil Wilson - Chapter 14 - "Bootstrappers and Temp Folders") that a bootstrapper should not run an MSI from the temp directory, because the "Temp folder can be removed all too easily.. and then the file could be gone when you do repair or modification of the product. Is th...

What can cause Error 2902 when installing an MSI?

One of our MSI's has started failing with Error 2902. It'll get most of the way through the installation, pop an error box, and then back out the install. We haven't made any major changes to the installer since the last working version. Running msiexec with logging turned on gives a more informative message: Action 17:21:22: Registe...

How to embedded msi into a setup.exe and execute it silently?

Here's the requirement: 1. One single installation file. (aka. setup.exe) All the other files include the required dlls and msi itself must embedded in this setup.exe. 2. Frameless UI, which the pure msi doesn't support. Firstly, we are using pure msi to provide the installation GUI, but then we found it's not support the frameless GUI....

WIX, Dot Net managed custom Action, dynamically fill combo box with SQL Server instances, MSI

In WIX am in-need of a dot net managed custom code to dynamically populate a combo box with the values of sql server instances in that network. I tried to google but got nothing worked Any help is greatly appreciated. ...

How to interactive a silently installing msi? (Progress data and cancel it)

For some reason, we are delivering a product with our own install GUI, that means, we will run the msi installation silently background. By using the MSI API "MsiInstallProduct", I can install the product silently, but I have no idea how can I get the progress data of this installation and how can I cancel it. Anyone has some ideas? ...

Run exe after msi installation?

Using Visual Studio 2008 to create an msi to deploy my program with a setup project. I need to know how to make the msi run the exe it just installed. A custom action? If so please explain where/how. Thanks. ...

Best tool to create MSI

Hi, I am new to setup project creation. Now I am using Visual studio 2008 to create setup file (msi) for my project. I am quit uncomfortable in creating my own custom forms in the installation wizard as well as upgrading an existing version of my project to a new version. Is there any other alternatives to create MSI/MSP package for Dot...

MSI Error. 1001. Usage: InstallUtil .. error on production server

Hi We have creaded a MSI installer using the tools on Visual Studio 2008. This has some custome action implementet in a Installer class. It works fine on all the test servers but for some reason it fail in one of the production servers. The error message is: Error. 1001. Usage: InstallUtil[/u|/uninstall][option[..]] assembly[[option[....

How to find out if a windows restart is needed?

I've built a setup.exe in c# that runs several chained MSI's (with the /QUIET /NORESTART ). At the end I'd like to check if a reboot is needed in the machine (that is, if one of the MSI's requested a reboot). How can I detect so? ...

WIX: Howto set the name of the msi output file dynamically

I want to include some dynamic part in the filename of the msi file my wix projects produce. This dynamic part should be controlled by variables which are part of my wix project and are declared like this: <?define ProductVersion="7.1.0.1" ?> Does anybody know about a way of sending that value of that wix variable to the linker to use...

WPF deployment project: trigger another msi installation during commit stage of the original installer

Hi everyone, I am having a WPF project and created a deployment project. I was able to get the installer running and it works fine. Now during the commit stage of the application, I want to trigger another installation. I tried creating a custom action and added below command in the customactiondata field. msiexec.exe /i "[SOURCEDIR]\A...

Is it a good idea to run unit tests of a library as part of the MSI that installs it?

I have a system that has many components interacting with each other. It occured to me to run tests as part of the installation process to make sure it works correctly in the client machine. Does this sound like a reasonable idea? Have you seen it done? What framework would you use to run the tests? ...