Hello Tim,
Thanks for posting, if you are working with VS.Net Setup project and
managed .Net custom actions, the App.config file should already been
installed when the custom action is run.
Please note that we the installer class is executed, the current working
directory is "C:\windows\system32". So you may need to path the target
installation path as the "CustomActionData" into the installer class.
Please refer to the following links:
CustomActionData Property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/ht
ml/vxgrfcustomactiondataproperty.asp?frame=true
Walkthrough: Passing Data to a Custom Action
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/ht
ml/vxwlkwalkthroughpassingdatatocustomaction.asp?frame=true
We can use the following as the "CustomActionData" for the custom action:
/name="[TARGETDIR]\".
I hope this helps.
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.