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

  • SEARCH
  • Home
  • 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 8422357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:25:20+00:00 2026-06-10T03:25:20+00:00

I am trying to use Jenkins to install a versioned msi on a target

  • 0

I am trying to use Jenkins to install a versioned msi on a target machine like this:

wmic /node:"[HOST]" /user:"[USER]" /password:"[PASS]" product call install true ,"", "\\[HOST]\D$\WebsitesDirectory\Product.*.msi"

The file name will contain the version number so I can’t hard-code this into the wmic command. But wmic doesn’t seem to be able to install a file using a wildcard and quietly fails to install when I run this command. It appears that it has to have the exact path and filename of the file to install it. Does anyone know a way of using wildcards within file names or perhaps a better workaround?

Another possibility is this – Is it possible to get the exact name of the file that Jenkins pulled in via the copy artifact plugin?

  • 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-06-10T03:25:21+00:00Added an answer on June 10, 2026 at 3:25 am

    So apparently this is not a wmic issue but a windows cmd one. I found that this solves the problem:

    for %%f in (*.msi) do (
      wmic /node:"[host]" /user:"[user]" /password:"[pass]" product call install true, "", "\\[host]\D$\WebsitesDirectory\%%f"
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to take Jenkins from a CI machine, and I would like to
I am need paint my image. I'm trying use JQuery in here this link:
Trying to use this sql statement. The first 2 parts work fine, I am
I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I'm trying to install Jenkins-1.464 at the first time as the windows service on
i'm trying use webview to load a image from sdcard i use this path
I'm trying to use Jenkins (Global) environment variables in my xcopy script. ${WORKSPACE} doesn't
I've just started with Jenkins and I'm just trying to use it to execute
I am trying to use Jenkins(Hudson) Remote API to consume XML response from a
I an trying to use the jenkins to redistribute my files to production system.

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.