Passing the installation folder path to custom act
Posted 18 April 2003 - 05:30
I am trying to create a package that installs the application in a user specified location. Then I create virtual directories, which have the path of the installation folder. I dont know how to pass the location of the installation to the VBScript that is creating the virtual directories. I was able to create the virtual directories as Custom Action from the VBScript with a hardcoded directory location. And In that case my Custom Action Type was 6.
If someone can help me by telling me how to do this. I would really appreciate it.
Thank you in advance
Posted 22 April 2003 - 04:03
In your next custom action, you can then use an msi function, MsiGetProperty to get this property.
alternatively, you can use MsiGetTargetPath to get a folder path
Posted 22 April 2003 - 20:03
In your VBScript you will need something like:
PropertyArray = Split(Session.Property("CustomActionData"), ";")
Posted 06 November 2003 - 23:23
Posted 09 November 2003 - 22:31
You then use either c/c++ string functions to grab the part of the directory string that you require.
You can then also use MsiSetProperty, or MsiSetTargetPath to setup extra paths.