ClickOnce: How do I pass a querystring value to my app *through the installer*?
        Posted  
        
            by Timothy Khouri
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Timothy Khouri
        
        
        
        Published on 2009-09-07T16:00:27Z
        Indexed on 
            2010/05/11
            0:04 UTC
        
        
        Read the original article
        Hit count: 428
        
My company currently builds separate MSI's for all of our clients, even though the app is 100% the same across the board (with a single exception, an ID in the app.config).
I would like to show them that we can publish in once place with ClickOnce, and simply add a query string parameter for each client's installer.
Example: http://mysite.com/setup.exe?ID=1234-56-7890
The issue that I'm having is that the above ("ID=1234...") is not being passed along to the "myapplication.application". What is happening instead is, the app is being installed successfully, and it is running the first time with an activation context, but the "ActivationUri" does not contain any query string values.
Is there a way to pass query string values FROM THE INSTALLER URL to the application's launch URL? If so, how?
© Stack Overflow or respective owner