How to get msi setup file location using installer class

To get the current msi setup path,

  1. Goto the setup project
  2. Right click and select view->custom actions
  3. Under Install Node, click the “primary output from….”
  4. Press F4 to show its property
  5. Add the /Source=[SourceDir] to the CustomActionData property
  6. Can then be access through the installer class

Context.Parameters(“Source”)

Source Path Custom Action

Source Path Custom Action


, , ,

  1. No comments yet.
(will not be published)
Submit Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe to comments feed
  1. No trackbacks yet.

SetPageWidth