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 631541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:58:36+00:00 2026-05-13T19:58:36+00:00

In my WiX installer, I’ve got a property for a UserID that gets written

  • 0

In my WiX installer, I’ve got a property for a UserID that gets written to a registry key:

<Property Id='UserID' Value='123' />

<Directory Id='TARGETDIR' Name='SourceDir'>
    <Component Id='UserIDComponent' Guid='*'>
        <RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' 
                       Type='integer' Value='[UserID]' Name='UserID' />
    </Component>

I’d like to set the value of that property to the User ID of the person downloading my installer on the fly. So when they go to download, I’ll just create a copy of the base MSI that everyone gets, set the value of UserID to that of the person downloading the file, and that’s what they download. It’ll be the same installation package that everyone gets, but with the property custom set for them.

I can’t seem to find any resources on how to set a WiX MSI property from an external source, though. How can I do this?

  • 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-13T19:58:37+00:00Added an answer on May 13, 2026 at 7:58 pm

    As far as I remember, you can indeed set properties from the “outside” – the property name has to be in all UPPERCASE to be recognized as a public property (don’t ask me why….) and then you can set it like this:

    msiexec /i C:\Example.msi PROPERTY=VALUE
    

    e.g. in your case

    msiexec /i C:\Example.msi USERID=somevalue
    

    See the MSDN docs on using command line options with MSIEXEC

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

Sidebar

Related Questions

I have written a WiX installer that works perfectly with Windows XP, but when
I've got a WiX installer that is meant to update VS 2010 templates after
I have a .NET program that I've written a Wix installer for. I want
I have a WiX installer that I would like to check for .Net 3.5,
I've got a WiX installer project which uses MSBuild to generate the MSI file.
I created an installer (via WiX) that, as part of the installation, installs a
I want to have our WiX installer that is currently building on a build
Following some example code on the net, I got my first WiX installer to
In my WiX installer I want to gracefully close the application that is about
I am building a Wix installer that is based on a set of auto-generated

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.