Welcome to TechNet Blogs Sign in | Join | Help

May 2009 - Posts

From MSI to WiX, Part 25 - Installable Items - Updating XML files using XmlFile

To use XmlFile element we need to: Add reference to WixUtilExtension extension. Add util namespace to <Wix> element: <? xml version = " 1.0 " encoding = " UTF-8 " ?> < Wix xmlns = " http://schemas.microsoft.com/wix/2006/wi " xmlns:util
Posted by Alex Shevchuk | 1 Comments
Filed under: , ,

Attachment(s): XmlFileUpdate.zip

From MSI to WiX, Part 24 - DLL Custom Actions - Get property value and obtaining/changing session information

In previous post we looked at how to set propery's value. Getting property value is more involved because we need to make sure that provided memory buffer for property value is big enough to hold the value. Function MsiGetProperty is used to get a property
Posted by Alex Shevchuk | 0 Comments
Filed under: , ,

Documentation on WiX API

I just want to let everybody know that I am working on documenting WiX API, namely - wcautil and dutil libraries. I don't mind if this will become part of official WiX documentation. In fact, I hope - it will, because I personally, would like to see something
Posted by Alex Shevchuk | 2 Comments
Filed under:

Attachment(s): WixAPI.chm

From MSI to WiX, Part 23 - DLL Custom Actions - Logging and setting properties

Let's start with setting property value using MSI API MsiSetProperty . This function takes three parameters: An installation handle, originally passed to custom action's function by Windows Installer. Name of the property to set or remove. New value for
Posted by Alex Shevchuk | 0 Comments
Filed under: , ,

From MSI to WiX, Part 22 - DLL Custom Actions - Introduction

Today I am starting a mini series on writing C++ custom actions. Let's start with wizard-generated custom action project. Start Visual Studio and select "C++ Custom Action Project". Set "CAIntro" as the name of the project. Before we will start discussing
Posted by Alex Shevchuk | 0 Comments
Filed under: , ,

Attachment(s): CAIntro.zip

Можно ли использовать данные, полученные при использовании RegistrySearch в RegistryValue

English version is here . Вопрос: Можно ли использовать данные, полученные при использовании RegistrySearch в RegistryValue? Нечто вроде этого: <Property Id="PROP1"> <RegistrySearch Id="search1" Root="HKLM" Key="somekey" Name="somename" Type="raw"
Posted by Alex Shevchuk | 0 Comments
Filed under: , ,

Attachment(s): SetRegistry1.zip

Как сохранить значения свойств использовавшихся при начальной установке

English version is here . Один из наиболее часто задаваемых вопросов - как сохранить значение свойства, которое было присвоено свойству во время инсталлирования программы (присвоенное либо через параметер в командной строке или через пользовательский
Posted by Alex Shevchuk | 0 Comments
Filed under: , ,

Attachment(s): PreserveProperty.zip

Preserving properties used during install

Русская версия здесь . One of the most common questions is how to preserve the value of property used during install (either passed through command line or properties like INSTALLLOCATION which can be changed in the UI) so that it can be used during maintenance
Posted by Alex Shevchuk | 2 Comments
Filed under: , ,

Attachment(s): PreserveProperty.zip

Is it possible to use RegistrySearch result in RegistryValue?

Русская версия здесь . This post is an answer to this question sent to wix-users mailing list: Is it possible to use RegistrySearch result in RegistryValue? Something like this: <Property Id="PROP1"> <RegistrySearch Id="search1" Root="HKLM" Key="somekey"
Posted by Alex Shevchuk | 2 Comments
Filed under: , ,

Attachment(s): SetRegistry1.zip
 
Page view tracker