Search code examples
wixwindows-installerwix3.8

Wix Custom Action Not working in another machine


i have created a custom action for getting sites from IIS server.when i run it in my local machine it's working perfectly.but when i run it in another machine it's not working.

locator for custom action <"Binary Id ="IisManager" SourceFile="$(var.SourceDir)\bin\CustomActions.CA.dll"/> ("used for foarmat this)

<UI Id="MyWixUI_Mondo">
  <UIRef Id="WixUI_Mondo"/>
  <UIRef Id="WixUI_ErrorProgressText" />

  <DialogRef Id="IisSettings" />      

  <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="IisSettings" Order="3">LicenseAccepted = "1"</Publish>
  <Publish Dialog="SetupTypeDlg" Control="Back" Event="NewDialog" Value="IisSettings">1</Publish>


  <InstallUISequence>
    <Custom Action="GetIISWebSites" After="CostFinalize" Overridable="yes">NOT Installed</Custom>
    <Custom Action="GetIISAppPools" After="CostFinalize" Overridable="yes">NOT Installed</Custom>
  </InstallUISequence>

</UI>

have i done something wrong? working only in my machine...


Solution

  • Running Setup file with Administrative privileges resolved the issue.

    CMD ->>Run As administrator -> Go To setup file and Run it.