Welcome to TechNet Blogs Sign in | Join | Help

From MSI to WiX

Русская версия здесь.

 

This is a series of articles on building installation packages using WiX.

 

Published Sunday, February 10, 2008 12:10 PM by Alex Shevchuk
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Tuesday, May 20, 2008 1:14 PM by Serguei Razykov

# re: From MSI to WiX

Excellent postings, very useful. It's always good to see real examples

Friday, May 23, 2008 9:46 AM by Lyle Hollenbeck

# Force an install package to not register itself with Windows Installer

Can you point me to some information on how to keep the package from registering itself so that every time the install package is started it will function like it was the first time installation?  I realize this is not very normal but that is the way my company wants this particular package to work.  I came across some property settings that might cause this type of functionality but I did not write them down.   And I really would rather not have a CA that launches msizap.exe to remove the install information.  Thanks.  Lyle

Tuesday, June 24, 2008 7:26 PM by New Age Solution

# re: From MSI to WiX

Thank you so much for this blog. It helped me out tramendously in understanding Wix. One of the best one I found on the net that explains everything with real example... I am keeping this blog  as my favorite..

Wednesday, June 25, 2008 11:55 PM by Alex Shevchuk

# re: From MSI to WiX

To Lyle Hollenbeck:

Sorry for being so late.  Sounds, like you need Major Upgrade.  It will require some extra work on your part, but the good news is that there will be no need for msizap.

Monday, July 07, 2008 7:24 AM by qterry56

# re: From MSI to WiX - Missing Chapters?

I really appreciate and enjoy your tutorial - it is one of the few great WIX / MSI resources.  

Is there a reason why i cant access the Chapters 4 & 18? (I cant wait to see how the story ends!) :)

Thanks again,

We here at Harley-Davidson salute you as an honorary "Rider" -

Thursday, April 02, 2009 3:00 PM by Matthew

# re: From MSI to WiX

большое спасибо!

I really appreciate your work here. We are moving from using the built-in Visual Studio deployment projects to using WiX. Your blog has been very helpful!

Thursday, April 16, 2009 3:26 PM by LouWho

# re: From MSI to WiX

Are you going to update this to reflect 3.0?

Wednesday, May 20, 2009 4:10 AM by Ramon Smits

# re: From MSI to WiX

Great stuff! Would be nice if a chapter would be dedicated to x64/64 bit installers.

Sunday, July 05, 2009 3:59 PM by Ran Davidovitz

# re: From MSI to WiX

Alex this is a very good and large post, thanks for spending time on it!

Monday, July 20, 2009 6:16 AM by vinodk

# re: From MSI to WiX

On adding the <Property Id="ALLUSERS">1</Property>, i can install the .msi to all users of the machine, but only thru Administrator account.

But when i tried to install the same .msi with a non-admin user rights, i received an error saying "You do no have sufficient privileges, please logon as adminstrator and retry the installation".

Can anyone help plz me to write a script, when i install the .msi from a non-admin user, i should not receive admin privileges error msg.

Thanks in advance..

Regards,

Vinod K

Thursday, August 06, 2009 9:15 AM by vinodk

# re: From MSI to WiX

Hello everyone,

When tried to run Wix v3 scripts i've received the following errors

1. error LGHT0204 : ICE43: Co

mponent C_Rel has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file.

2. error LGHT0204 : ICE57: Co

mponent 'C_Rel' has both per-user and per-machine data with a per-machine KeyPath.

Can any one please help me in resolving the above things.

Thanks in advance.

Regards,

Vinod K

Thursday, August 06, 2009 4:13 PM by Alex Shevchuk

# re: From MSI to WiX

You need to read Part 10-Shortcuts (http://blogs.technet.com/alexshev/archive/2008/02/20/from-msi-to-wix-part-10-shortcuts.aspx) to understand the difference between advertised and non-advertised shortcuts.

Thursday, August 27, 2009 8:01 PM by Abhishek

# re: From MSI to WiX

Hi Alex,

I created a wix file using the Major upgrade wix file sample described by you. It works great.

The wix file I created is for a Visual studio package application.

I am facing a problem in the upgrade scenario. When I install a new build of the msi, if Visual studio is running, I get a UI from the installer with two options

1. Automatically close applications and attempt to restart them after setup is complete

2. Do not close applicaiotns

The check box is set for the first option.

When I click OK. Visual studio crashes during closing and gives an option to debug or close.

WHen I hit debug, there is a access violation exception in devenv.exe.

Do you know why this is happening.

Any help on this would be great.

Thanks,

Abhishek

Thursday, August 27, 2009 8:08 PM by Alex Shevchuk

# re: From MSI to WiX

Hi Abhishek,

Sorry, I don't know why Visual Studio crashes when Restart Manager is trying to shut it down.  You need to ask Visual Studio people why this is happening.

Friday, August 28, 2009 12:11 PM by Abhishek

# re: From MSI to WiX

Thanks Alex for your response. I would like to know how I get this dialog automatically when I am performing an upgrade.

1. Automatically close applications and attempt to restart them after setup is complete

2. Do not close applicaiotns

What part of wix code brings up that dialog. Is it an out of box feature.

Friday, August 28, 2009 1:15 PM by Alex Shevchuk

# re: From MSI to WiX

Read about FilesInUse (http://msdn.microsoft.com/en-us/library/aa368592(VS.85).aspx) and MsiRMFilesInUse (http://msdn.microsoft.com/en-us/library/aa370379(VS.85).aspx) dialogs.  If you are using any flavor of Wix UI, you have them already. This topic (http://msdn.microsoft.com/en-us/library/aa372466(VS.85).aspx) has fairly good explanation on using RestartManager in Windows Installer.

Wednesday, January 20, 2010 5:30 AM by questsid

# re: From MSI to WiX

Hi,

How can I get the IP address and the port address of my system that should be dynamically generated in a text box using wix.Is there any way to get the address using any property or any env variable? please help

Siddharth

Friday, February 05, 2010 4:38 AM by Georgi Nastev

# re: From MSI to WiX

Hi, could you provide such tutorial for installin COM objects? How to handle the restart PC, so that the setup continues afterward, from where it had stopped?

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker