[wix-users] Find if upgrade / Install inside Custom Action

Ven H venh.123 at gmail.com
Tue Mar 13 03:17:31 PDT 2018


Thank you. I am sorry for being naive but I am not able to understand how
to achieve what I am looking for. All I want is, during running of MSI, how
can I find out if it is a fresh install or an upgrade from within a custom
action.

Regards,
Venkatesh

On Mon, Mar 12, 2018 at 10:29 PM, Philip Doragh via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> The WCAUtil library is your greatest friend in this regard... for this
> particular question the following library routine:
>
> WcaGetComponentToDo
>
> Obtains the information of install/uninstall/reinstall for a particular
> component. But there are several other functions that I use all over my
> custom actions...
>
> WcaLog -> log to the MSI install log file
> WcaDoDeferredAction -> Update the deferred script to add/modify an action
> WcaTableExists/WcaOpenExecuteView/WcaFetchRecord -> open and read MSI
> table contents and possible use information to update deferred script
> actions
>
> Phil Doragh
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Ven H via wix-users
> Sent: Monday, March 12, 2018 11:33 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Ven H <venh.123 at gmail.com>
> Subject: [wix-users] Find if upgrade / Install inside Custom Action
>
> Inside a Custom Action, how can we find, if it is invoked on Upgrade /
> Install? Is there any builtin property which we can invoke using Session
> inside the Custom Action? Please advise.
>
>
> Regards,
> Venkatesh
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list