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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:20:39+00:00 2026-05-23T02:20:39+00:00

I need a post action on ClickOnce installer which should be performed after the

  • 0

I need a post action on ClickOnce installer which should be performed after the application files are stored on the client side but before the application’s first run. Specifically, I would like to encrypt sections of a configuration file.

From what I’ve found, it’s possible to add a class containing InPlaceHostingManager methods and use it for explicit installation/updates later on, but how can one override the default ClickOnce installer so that custom code is called?

I would like to emulate the behavior of the ancient Setup Project which invokes the Install method of whatever inheritor of System.Configuration.Install.Installer you plug into your project.

Thanks.

  • 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-23T02:20:40+00:00Added an answer on May 23, 2026 at 2:20 am

    I don’t believe this is possible with ClickOnce.

    As I see it some of your options include:

    1. Going back to an MSI installer
    2. Encoding the config files as a pre/post-compile step on the development/publishing machine then deploy the fully encoded version
    3. Encoding the config files on first run of the app (if you find a way to ensure they aren’t being locked)

    Also, you mentioned InPlaceHostingManager. It looks to me that it’s a way of hosting the ClickOnce installation framework (rather than doing it via IE for example). So this might let you make a custom installation application to host the installation and run the post-installation steps, but the problem is that you’ll still need to install your custom installation application somehow (and run it as a user with installation rights)…

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

Sidebar

Related Questions

I have an action which I need to post forward onto another action if
I need to read the result of a form which uses POST action type
I'm calling a view after an AJAX POST action. But I'm loading the view
I need to post a form which includes personal details and I need to
I need to post a form on a new website which is UTF-8 encoded.
I am doing an ajax Post action and i need to work out the
i need to post url to be /controller/action/someID not sure how to get someID
I've got a simple http POST action in Spring MVC and I don't need
In ASP.NET MVC I'm using the HTML helper Html.BeginForm(ActionName, Controller, FormMethod.Post); But I need
I am using the post-redirect-get pattern for all my forms, but now need to

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.