msi

Wix Custom Actions with WixUI_Minimal

So, I'm trying to, after an application finishes installing (though in truth, it really doesn't matter when the secondary application is run, since it doesn't interact with the installed files during installation), run another program which is bundled with the application. Pertinent code (with various stuff replaced with "...": <direct...

Mark MSI so it has to be run as elevated Administrator account

I have a CustomAction as part of an MSI. It MUST run as a domain account that is also a member of the local Administrators account. It can't use the NoImpersonate flag to run the custom action as NT Authority\System as it will not then get access to network resources. On Vista/2008 with UAC enabled if NoImpersonate is off then it will...

what is the diff between dependencies and manually add a dll/ocx in vs installer 6?

i'm using vs installer to build a setup package for my vb6 app. and the problem is i can see that under the project explorer there's a list of dependencies attached to my exe file. and under the file system on target machine treeview, i can actually store the dll/ocx on a folder or in the windows system folder itself[the left window]....

VDPROJ auto upgrading vs. uninstall/reinstall

I've seen a confusing behavior regarding the MSI files generated by a VDPROJ file. If I build my MSI in Visual Studio and then right-click and pick "Install" from within Visual Studio, it will automagically uninstall any version that is already installed and then install the new MSI. However, if take the generated MSI and run it direct...

Good resources for learning how to create MSI installers from WiX

I've given up trying to apply lipstick to the pigs of installers that come out of VS and have decided to look at WiX. What resources would you recommend to learn and reference? (Note - this is not a which installer tech do you use question - its specific to WiX) ...

Script to add MSIUSEREALADMINDETECTION to MSI

Anyone have a script (JScript, VBScript or similar) in the spirit of this handy script but adding the MSIUSEREALADMINDETECTION property I know I could use Orca manually or with its transform feature, but would rather not go there. ...

Autorun an MSI file on CD

Does anyone have an example AUTORUN.INF which can launch an MSI installer automatically when the user inserts the CD. I'm sure this can be done but I've been Googling around for ages and have not found any working solution. UPDATE: I have an AUTORUN.INF similar to this but it won't launch the installer: [autorun] open=MyInstaller-1.0....

Simplest solution to replace a tiny file inside an MSI?

Many of our customers have access to InstallShield, WISE or AdminStudio. These aren't a problem. I'm hoping there is some way I can provide our smaller customers without access to commercial repackaging tools a freely available set of tools and steps to do the file replacement themselves. Only need to replace a single configuration file...

How to add a WIX custom action that happens only on uninstall (via MSI)?

Hello, I would like to modify an MSI installer (created through WIX) to delete an entire directory on uninstall. I understand the there RemoveFile and RemoveFolder options in WIX, but these are not robust enough to recursively delete an entire folder that has content created after the installation. I noticed the similar entry here (h...

Privilege elevation on MSI uninstall with Installshield and user dialog

I need to achieve the following: The uninstallation of an MSI should present a user dialog based on which Windows Installer knows how exactly to remove the software (in this case: The user must choose whether or not to remove databases as well). While running, the uninstall process will also trigger custom actions. All of these actions ...

Installer::OpenDatabase() produces a type error with msiOpenDatabaseModeTransact.

The following code produces an error hr=0x80020005 (wrong type). #import <msi.dll> using namespace WindowsInstaller; main() { ::CoInitialize(NULL); InstallerPtr pInstaller("WindowsInstaller.Installer"); DatabasePtr pDB = pInstaller->OpenDatabase( "c:\\foo\\bar.msi", msiOpenDatabaseModeTransact); } I think...

Upgrade a Windows Service without Uninstalling

Currently I have to uninstall the old version of my service before I install the new version. I am pretty sure this has something to do with it not being smart enough to update or remove the old service entries before adding the new ones. Is there a way to have the installer skip registering the service if it already exists? (I can assu...

How can I abort an InstallShield Setup depending on a vbscript custom action result?

I created a vbscript custom action which checks for some registry keys and alters them if neccessary. In case a key could not be written or something like that, the setup should be aborted. In order to achieve this, I set a property which I tried to use as a condition for the next step within the execute sequence but this does not work....

Uninstall Without MSI File

I often get a problem with Windows Installer trying to uninstall a package, but it complains that The feature you are trying to use is on a network resource that is unavailable. Is there a known means of uninstalling such packages when the original MSI is simply not available? ...

"Unrecoverable build error" on any MSI Setup project

Some time ago I got this error when building ANY Visual Studio Deployment project. "Unrecoverable build error" I thought my VS installation was corrupted or I deleted some important files, but ... ...

Reboot as last step in vdproj, how can I add it?

How can I add the reboot action to a vdproj? I need an MSI which restart the pc at the end of the installation. Thank you. ...

How to use enterprise library logging in a .NET custom action

I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get configuration information to the Enterprise Library in the context of my custom action running insi...

VS2008 Setup Project - Overwrite Newer Version

VS2008 setup projects provide the option to halt installation if a newer version is detected by setting "DetectNewerInstalledVersion". Is there a way to remove a newer version if it exists ie similar to "RemovePreviousVersions" options? ...

VS2008 Setup Project - No Repair Option

Is there anyway to disable the repair option so that if a user runs the msi again it automatically uninstalls without prompting for Repair/Remove options? Edit: This is for a controlled corporate environment and has been passed down as a requirement. ...

How to install a windows service programmatically in C#?

Hi, I have 3 projects in my VS solution. 1 is a web app, the other is a windows service and the last one a setup project for my web app. What i want is by the end of the installation of the web app in my setup project, within my custom action to try and install my windows service given that i have the location of the assembly by then....