473,670 Members | 2,499 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ClickOnce: How to change the codebase location in code

Sorry I keep posting around tha subject but I cannot get seem what I need
out of clickonce.

another thing that would hele me would be the ability to change the codebase
tag on the server in code at runtime.

lets say on the server I have the following information in my
WindowsApplicat ion1.applicatio n file
<deploymentProv ider
codebase="http://localhost/task/WindowsApplicat ion1.applicatio n" />

I want to write an application that can change it like so without using
mage.exe or mageUI.exe this is the only line I need to change and I wna tto
change it on the fly and on demand to somethig like so.

<deploymentProv ider
codebase="http://localhost/task/111111/WindowsApplicat ion1.applicatio n" />

I have loaded it into a XmlDocument and changed it but this will not work
because it corrupts the file. It looks as it there is CRC info or something
inbeded in file tho keep people form doing just that for security purposes.

Any help will be GREATY appriciated

Thanks
Jan 30 '07 #1
1 4961
You can modify the codebase however once it changes in anyway from
initial deployment you have to resign the manifests. You have
basically one option here in two flavors. Run Mage.exe or MageUi.exe
and use your key to sign the updated manifests (this basically
acknowledges that the changes you made are valid and not a hack
attempt)
Jan 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5241
by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt, which scares me!) but to be installed on the start menu, it seems I don't have permission to call CheckForUpdate()! I understand that if I'm not a full trust app, I can't read the filesystem etc., but not being able to update myself seems a bit...
7
9091
by: hgirma | last post by:
Hello Gurus, Is it possible to schedule a task to run an application deployed using ClickOnce? The executable changes location with each update.. and if i were to run the executable directly, it's not considered as a network deployed application and it's not able to use any of the update features programatically.. any ideas? workarounds? thank you,
3
3865
by: Ronald S. Cook | last post by:
We have a VS2005 Team setup and are developing a Windows app (smart client). We are in the cattle feeding business and have 10 distinct feedyards across the U.S. When we wish to deploy an update to our app, we must change an app setting in the project (the IP where the data access layer is) and also the URL in the ClickOnce (to correspond to a server at a particular feedyard). Once we publish, we have to change the app setting and the URL...
2
2708
by: Jamey McElveen | last post by:
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our clients do not overwhelm our support staff with loading questions and new feature questions. ClickOnce will elininate the CD cost and the loading questions but that still does not take care of the calls for new feature questions. I would like to...
0
1346
by: Jamey McElveen | last post by:
How can I change the ClickOnce update location on the client side? For instance what if I host a subscription service. Lets say Bob purchased version 2.X. and Sally Upgraded to version 3.X I want to continue to ship patches to Bob while Sally is running on 3.X. Lets say down the road Bob purchases version 3.X. I want Bob to AUTOMATICALLY receive version 3.X without haveing to uninstall and reinstall. If I could change the Update...
6
6841
by: Irfan | last post by:
hi, After installing the application in the client machine using ClickOnce, i would like that the client be able to change the database path in the Application.Config file. However, clickonce does not copy the Application.Config file when it deploys. How can i be able to do it, Am i missing something in ClickOnce. Thanks
3
3794
by: Peter Wyss | last post by:
Hello! I've a few questions about ClickOnce in VisualStudio 2005. The installation of my application works fine, I published the files on a webserver and installed the app on a winxp client, updates works also fine. But here's my first question: - Our app produces xml-files on startup, which stores several informations like gui-settings etc...now when I publish a new version and my app updates, this xml-files rested in the old folder...
3
1517
by: Peter Carlson | last post by:
Our app uses the following chain of urls: 1. yoursite.com/launch.php?room=00000271 - validates the roomid appends an appropriate server variable and encrypts and adds a hash and sends on to #2 2. mysite.com/launch.php decodes the encryption and compares hash for alteration. Re-encodes and redirects to #3 3. clickonceinstaller.application?encoded variables here
3
5233
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3053 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
0
8466
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8384
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6212
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.