Announcement

Collapse
No announcement yet.

Call Powershell script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Call Powershell script

    Hi,
    I whould like to call ps1 script to perform number of setting
    (like check if ActiveDirectory module installed and if not - install it).

    What is the best way to do it (taking in account the need of getting the error back) ?

    Thanks

  • #2
    Hi Urlich I need your answer :-)

    What is the best way to call PS1 powershell script ?

    Thanks

    Comment


    • #3
      There is no built-in support specific for calling Powershell scripts in MSI Factory (or WiX). Using Google, I have found a developer who is offering a custom WiX extension, which you may be able to use. There are also some samples for calling Powershell scripts from a MSI. You will have to do some further research if you want to use this.

      Ulrich

      Comment


      • #4
        Powershell extension

        But if I will edit the WIX the next build from MSI Factory will overwrite it.
        So how can I leverage the Powershell extension?

        Thanks

        Comment


        • #5
          If you want to use the extension, I believe you would use a WiX fragment (or more), and insert it/them into the WiX source created by MSI Factory during the build process. In other words, this code would be merged with the current WiX source created from the project.

          Ulrich

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎