Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 453921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:13:10+00:00 2026-05-12T22:13:10+00:00

I have the below function as a part of my psake build. When the

  • 0

I have the below function as a part of my psake build. When the build is executing Candle.exe throws this error:

candle.exe : warning CNDL1098: ‘ext .\Build\Packages\WixWeb\bin\WixIIsExtension.dll’ is not a valid command line argument.

I think this is a problem with the way I am passing command line args but I cannot for the life of me figure it out.

Any powershell monkeys have suggestions?

function buildMsi($build_dir, $template, $directory) { 
    "Building Msi" 
    "Build Folder: $build_dir"
    "Wix Template: $template"
    "Website: $directory"

    $wixXml = [xml](Get-Content $template)
    $namespaceManager = New-Object Xml.XmlNamespaceManager($wixXml.PSBase.NameTable)
    $namespaceManager.AddNamespace("wi", "http://schemas.microsoft.com/wix/2006/wi")
    $components = $wixXml.Wix.Fragment.ComponentGroup

    WalkDirectory $wixXml.PSBase.SelectSingleNode("/wi:Wix/wi:Fragment/wi:DirectoryRef", $namespaceManager) $directory
    $wixXml.Save("$build_dir\WebContent.wxs")

    .\Build\WixWeb\bin\Candle.exe """-dProductName=Foo""`
         ""-dVersion=1.0.0.0""`
         ""-dProductID=0cd64670-5769-4e34-8b21-c6242e7ca5a2""`
         ""-dUpgradeCode=307601e9-4eea-4b5c-938a-354115d5c419""`
         ""-dAppPool=FooAppPool""`
         ""-dInstallDirectory=Foo""`
         ""-dWebAppDirectoryComponentId=CF57E626-1E95-4a89-A0E9-C1AD03C51B12""`
         ""-dIIsAppPoolComponentId=D9138380-19B3-4123-9E22-AB2994B1024B""`
         ""-dIIsWithAppPoolSettingsComponentId=02ca3f08-a1e8-48a3-b4d7-6f5f67c61b96""`
         ""-dIIsWithoutAppPoolSettingsComponentId=d97791b0-f597-46c6-b159-541817527453""`
         ""-ext "".\Build\WixWeb\bin\WixIIsExtension.dll""""`
         ""-ext "".\Build\WixWeb\bin\WixUIExtension.dll""""`
         "".\Build\WixWeb\Shell.wxs""`
         "".\Build\stage\WebContent.wxs"" "

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:13:10+00:00Added an answer on May 12, 2026 at 10:13 pm

    Try replacing your inner double quotes with single quotes, like so:

    .\Build\WixWeb\bin\Candle.exe " ""-dProductName=Foo"" `
         ""-dVersion=1.0.0.0"" `
         ""-dProductID=0cd64670-5769-4e34-8b21-c6242e7ca5a2"" `
         ""-dUpgradeCode=307601e9-4eea-4b5c-938a-354115d5c419"" `
         ""-dAppPool=FooAppPool"" `
         ""-dInstallDirectory=Foo"" `
         ""-dWebAppDirectoryComponentId=CF57E626-1E95-4a89-A0E9-C1AD03C51B12"" `
         ""-dIIsAppPoolComponentId=D9138380-19B3-4123-9E22-AB2994B1024B"" `
         ""-dIIsWithAppPoolSettingsComponentId=02ca3f08-a1e8-48a3-b4d7-6f5f67c61b96"" `
         ""-dIIsWithoutAppPoolSettingsComponentId=d97791b0-f597-46c6-b159-541817527453"" `
         ""-ext '.\Build\WixWeb\bin\WixIIsExtension.dll'"" `
         ""-ext '.\Build\WixWeb\bin\WixUIExtension.dll'"" `
         "".\Build\WixWeb\Shell.wxs"" `
         "".\Build\stage\WebContent.wxs"" "
    

    Futhermore, you might find it easier if you escape your double quotes correctly using `” (backtick followed by doublequote); the script might be more robust, too. The code sample would then become:

    .\Build\WixWeb\bin\Candle.exe " `"-dProductName=Foo`" `
     `"-dVersion=1.0.0.0`" `
     `"-dProductID=0cd64670-5769-4e34-8b21-c6242e7ca5a2`" `
     `"-dUpgradeCode=307601e9-4eea-4b5c-938a-354115d5c419`" `
     `"-dAppPool=FooAppPool`" `
     `"-dInstallDirectory=Foo`" `
     `"-dWebAppDirectoryComponentId=CF57E626-1E95-4a89-A0E9-C1AD03C51B12`" `
     `"-dIIsAppPoolComponentId=D9138380-19B3-4123-9E22-AB2994B1024B`" `
     `"-dIIsWithAppPoolSettingsComponentId=02ca3f08-a1e8-48a3-b4d7-6f5f67c61b96`" `
     `"-dIIsWithoutAppPoolSettingsComponentId=d97791b0-f597-46c6-b159-541817527453`" `
     `"-ext '.\Build\WixWeb\bin\WixIIsExtension.dll'`" `
     `"-ext '.\Build\WixWeb\bin\WixUIExtension.dll'`" `
     `".\Build\WixWeb\Shell.wxs`" `
     `".\Build\stage\WebContent.wxs`" "
    

    YMMV, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 257k
  • Answers 257k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer use a template filter like so: {{username|get_user}} in your user_template_tags.py:… May 13, 2026 at 10:48 am
  • Editorial Team
    Editorial Team added an answer This is exactly why (for example) DVDs use VOB files… May 13, 2026 at 10:48 am
  • Editorial Team
    Editorial Team added an answer Make sure the HTML element you are replacing has a… May 13, 2026 at 10:48 am

Related Questions

I have used the following article as a guide to creating a custom EditorPart
Background: This question relates to versions of Delphi below 2009 (ie without Unicode support
In response to another question I asked about regular expressions, I was told to
I have some HTML that looks like this: <div> <div class=value> <a href=# class=clicker>Some

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.