Home > Computers and Internet > How to know from which directory user has invoked msi and pass directory to custom action

How to know from which directory user has invoked msi and pass directory to custom action

 
Hi ,
Recently i came across with one of requirement , to pass sourcedirectory to msi custom actions.Here source directory refers to location from which msi has been invoked.Initially It was very tuff for me to look for Directory in which msi is present.
 
So i used the help of log file , which is generated during msi installation,There i came across with keyword used by MSI.These keywords hold values same during installation of msi. I saw property named as "SourceDir"
I just passed SourceDir has one of the custom paramter to custom action .Here is customactiondata value "/SourceDirectory=[SourceDir]" , u can also any other MSI paramter to custom action fi you need like ProductCode,verison number of product
 
~Mahender
Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: