msi

Need a help on setting Reinstallmode and Reinstall

Hi, Im having MSI ,for minor update ,i will be updating only build number with no product code change. i try to paramters to msiexex . msiexec /i sample.msi Reinstall=ALL ReinstallMode=amus in command prompt.Inspite of setting in command prompt,I tried to update msi property through orca. I added 2 properties to Reinstallmode and reinsta...

wix: running external msi before installation begins

my application requires the microsoft visual c++ redisributable package (vcredist_x86.exe). i have a custom action to run the vcredist_x86.exe i want it to run only if it's not already installed. i created a registry search to check it. the question: how do i run this action with the check? when using the InstallExecuteSequence eleme...

How to use WiX to delete a font.

I am creating an installer that also needs to delete the Arial font (I am told Arial will be recreated from a cache if it gets deleted, and that's exactly what I want). Is there a way that I can do this in WiX or will I need to write a custom action? Update: Users of my installer will 90% of the time have a hacked version of Arial whic...

Windows Installer and Adobe AIR: Possible to ignore ALLUSERS flag in an MSI?

I am trying to deploy AIR apps internally and am running into permission issues relating to AIR's insistence on installing to all users, which is set as normal in a temp msi file under "SecureCustomProperties". It is always the first entry in this field. I have discovered the following: -An AIR package is a zip file, but does not cont...

how to create custom UI for MSI in Wix?

I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard ...

Windows seems to lose track of .NET application

We have a .NET application that we distribute to our users via an MSI installer package. We have C++ applications that run each morning to see if the user's copy of the application is out of date, and if so, we pull down the new MSI and install it. If the application is running, we need to take it down so we can perform the update. Ou...

Improving performance of Wix msi install/uninstall

In Windows 7(i.e. MSI 5.0), there is a property called MSIFASTINSTALL which will improve the performance of your installer. Or else, you can turn off the rollback option by setting property DISABLEROLLBACK. This property is available in earlier version of MSI 5.0 too. Please share your knowledge to improve the install experience. Also, ...

Can I configure an MSI to install silently to a non-default directory?

I have a vendor supplied MSI file, and we want to automate the install to a couple thousand pcs/servers. Unfortunately, we would like to install it to our default apps directory, which is not c:\program files. Is there a way to do this easily? I'm experimenting with Orca, but I'd rather get a solid method on how to do this quickly and e...

Is there a way to handle catch exception in MSI install wizard?

I am facing some odd situation that when I select/deselect the features in the feature customization wizard, it sometimes crashes the window. It does not give any clue at all. It also not happens consistently. Do you have any idea or faced such kind of issue? I am able to even trace the root cause using install log. ...

File from msi location

I would like to copy file that placed near the msi to the program file folder. I have the next code in my project: <DirectoryRef Id="Global.txt"> <Component Id="Global.txt" Guid="263B6F39-BE6B-4b51-8AE4-4D152436F0AE" DiskId="2" NeverOverwrite="yes" Permanent="yes"> <File Name="Global.txt" Source="./Global.txt" Compressed="no" Dis...

MSI MessageBox Custom Action

Hi, I want to create a Custom Action for my installer that checks to see if Outlook is running and if it is, it prompts the user to close Outlook before continuing. Everything works great except that when the MessageBox appears informing the user they must close Outlook, it appears behind the current MSI installation window. I'd like t...

How can I launch an application as Administrator after a WiX MSI has completed?

Hi there I want to launch an application with admin rights after I have completed an installation using a WiX based MSI. I can launch the application just fine, on XP but with Windows 7, it's an issue. The application has a manifest embedded in it that says it should run as administrator and I've changed the impersonate attribute in t...

Run chm after msi installation?

I would like to launch a Windows Compiled HTML Help file with .chm extension after my MSI installation. There is a script at Run exe after msi installation that inserts a checkbox (had to use the two bugs fixes further down) into the last page of the installation. The script completes but I'm not sure if the LAUNCHAPP=1 can only launch...

WiX: How can I set a property externally?

In my WiX installer, I've got a property for a UserID that gets written to a registry key: <Property Id='UserID' Value='123' /> <Directory Id='TARGETDIR' Name='SourceDir'> <Component Id='UserIDComponent' Guid='C7A5A70E-261C-11DF-9FB7-49AC56D89593'> <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Type=...

How to remove HKCU registry keys when uninstalling software?

When my software is installed, via an MSI, it creates some registry keys within HKLM. When people are using the software their individual preferences are saved to HKCU. When the software is uninstalled the HKLM and HKCU registry keys are deleted, but I'm thinking that it's only the HKCU keys for the user who is running the uninstall that...

detect msi parameters for unattended install

Hello, I have a msi package that have option to install two different languages , is there a way to detect the parameter responsible for selecting the language so I can use the command prompt to install the package silently (unattended installation) ? Thanks ...

Wirunsql in .Net

I need to modify an MSI file, and I'd like to do it in code. I can do it via command line using cscript.exe and wirunsql.vbs, but I can't figure out how to do it in .Net. I know it can be done, as I've found snippets of other people doing something, but they don't say what to include or where to get it. I have the Windows Platform SDK, b...

WiX - CustomAction ExeCommand - Hide Console

We've gotten a custom action that runs command-line to work as such: <CustomAction Id="OurAction" FileKey="OurInstalledExe.exe" ExeCommand="our command line args" Execute="deferred" Return="check" /> The problem is, the user sees a console popup when the command runs. The command line requires UAC elevation, but should not require an...

How can I modify an MSI in memory?

I'd like to read an MSI file into a MemoryStream (or something similar), and modify it. What's the easiest way to do this, without corrupting the MSI? All I need to be able to do is modify the value of one of the properties in the MSI. I'd prefer something in .Net, but I'm open to other platforms. Update: Here's my working code, using...

Include all localized resources in MSI - VS2008

I am building an MSI for a windows service application that has a set of satellite assemblies with localized resource data in them. I can manually include the Localized content from the projects but since my application contains several projects with localized data, do i need to manually include them in the VS2008 msi file system view o...