msi

Getting "System.Runtime.InteropServices.COMException was unhandled" message during programmatically modifying the msi

I have project in C# to modify the contents of an msi programmatically. Sometimes(I suspect when the size of the msi exceeds 10 MB) during the updation i am getting Interop Runtime exception which is as following. System.Runtime.InteropServices.COMException was unhandled HelpLink="Msi.chm#9502" Message="SummaryInformation,UpdateCoun...

Read an MST file with vbscript

I'm trying to do a script that gets information out of some MSI and MST files and write it into a text file. I achieved reading the MSI files. However, I get the following message. Msi API Error 80004005: OpenDatabase, DatabasePath, OpenMode 1:2219 2: 3:4: I open the file like this Set installer = Wscript.CreateObject("WindowsIns...

MSI Setup: Deploy files to different locations

I'd like to deploy the files in my msi setup which I created with VS 2008 to different location. Some files (especially one) I'd like to move to one dir and the others to the TARGETDIR. Best would be if the user can define InstallPath AND a second Path for (in this case a mdf for MSSQL) other files. Is this possible? ...

Deploying Visual Studio Tools For Office 3.0 Runtime (EXE) in an MSI Package without using a Bootstrapper

Hi, I have created a Word Addin and created the MSI package to distribute it. Using the information found in http://msdn.microsoft.com/en-us/library/cc563937.aspx ... I have tested the Setup.exe and the Addin installs correctly. The issue is when deploying the Addin over our network our system admin needs the file in an MSI rather th...

Operating System Property Values (2k8 R2 vs Win7)

I'm looking at the Microsoft article for Operating System Property Values and it seems that both Windows Server 2008 R2 and Windows 7 have a VersionNT value of 601. I see in the comments on the article that you should use MsiNTProductType to differentiate the two. So if I wanted to only allow server 2008 R2 installations (and not Window...

Wix Compiler Extension Tutorial?

I need to create a WiX Extension to handle interacting with the HTTP API (httpapi.dll) so that I can set URLACLs and SSL bindings for a WCF service that is being installed. As I understand it, I need to create a WiX Compiler Extension, so that I can define an XML grammar (XSD), and then implement a Compiler to turn the XML into records ...

SmallestDotNet as CustomAction after MSI installation

Is there anything to be said againt installing SmallestDotNet 3.5 (http://www.hanselman.com/blog/SmallestDotNetOnTheSizeOfTheNETFramework.aspx) as a CustomAction after MSI installation to ensure that .NET 3.5 is installed? I've found many more complicated ways which (partly) include .NET framework into the installer. How would you ins...

WIX Installing an EXE after Msi install finishes.

Hi, I have created an MSI package which when finishes runs an exe. <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="Installer Example"...

Register DLL (ActiveX) for Non-Admin user

Hi I try to register dll (ActiveX) for non-admin user using MSI. To create registry settings I have register the dll in admin mode, then exported the relevant registry entries and renamed all HKLM to HKCU. When I install it for non-admin user all works fine. But when I use the same settings with admin user, there is a problem of discov...

I can use WiX to launch my app at the end of install, but I can't get my app to run in the foreground.

Using WiX, my install will optionally launch one of my installed program files when it completes. However, when my application is launched by the installer, it is usually not displayed in the foreground of the user's desktop. It's buried under other windows, so it's not immediately clear to the user that the program is running. I've tri...

How to get WiX major upgrade working?

I am struggling to enable the major upgrade functionality in WiX. I want every new version of the installer to be a major upgrade (full uninstall, then new install) as we don't want different upgrade and clean install versions. I started off trying to do it using the tag stuff, but I kept getting "Another version is installed." error ...

How to sign an installer to prevent Vista's UAC warning.

I have an app that I need to distribute and want to sign it so I can avoid the UAC warnings in vista. Currently I see this... I am using visual studio to create the installer but the app was not written in .net. Do I need to sign both the .msi and the .exe contained in the .msi? What kind of key do I need and where should I get it?...

Why do renamed or moved application shortcuts in the Start Menu get recreated whenever the application is started?

This is happening with my applications that I create using VS2008 and the built in deployment project to create MSI installers. It goes like this: Install the application, which creates a shortcut on the desktop and a start menu folder containing a shortcut to the application. Pretty normal stuff... Rename the start menu folder (usua...

Running an executable on network share with CustomAction with wix?

Hello, i have created a msi-package which compresses some xml-files to a zip-file during installation. I have created a CustomAction for this purposes: <CustomAction Id="CompressMy" BinaryKey="zipEXE" ExeCommand="a -tzip &quot;[TEMPLATE_DIR]my.zip&quot; &quot;[TempSourceFolder]data.xml&quot;" Return="check" HideTarget="no" Impersonate=...

Hang trying to read installed Windows apps & components using MsiEnumComponents

We have a software agent that attempts to get details about the installed applications on Windows machines. We use a few different methods to do it, including reading registry. But part of our method is to read the MSI database using Windows system calls MsiEnumProducts and MsiEnumComponents. We are having a problem -- when the execut...

Can I get an MSI to do what the c++ redistributable exe does?

Hello, Our c# project requires two things on the target computer to run. The first is .net 2 or higher, which is a fair requirement for the users. The second is the c++ Redistributable. We need this because we use skincrafter. This is slightly more rare to find on a target computer. At the moment we deploy using visual studio and this c...

MSBuild Bootstrapper postrequisite

Hello I am using the MSBuild Bootstrapper for my Visual Studio 2005 project. I need to have a specific version of DirectX installed with my program. The problem is I am unable to catch and defer the reboot after DirectX gets installed. I dont know why it wont catch it. So my new idea is to have DirectX be installed after my program is. T...

MSI Install Outlook plug-in challenges

Hi, I have created an Outlook plug-in and I am having some challenges around installing the system. The issue I am having relates to the situation where a user is applying an update to my plug-in and has Outlook running while they apply the update via the MSI. Currently a window will be displaying informing the user that Outlook is runn...

Executing a custom action that requires elevation after install

I have the following wix snippet: <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" /> <CustomAction Id="StartAppOnExit" FileKey="Configurator.exe" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait" /> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Configure initial settings" /> <UI> <Publish...

COM deployment dependencies

I have been running in to an issue where a COM dll that I am distributing with my application fails to register because the atl.dll is not registered on the machine. The quick fix is to have the run regsvr32 on the dll, but I want something a little cleaner then that. I don't have much experience with deployment and I was wondering if...