473,386 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ClickOnce and myapp.application file

I have a click once winform application which includes myapp.application
file. The myapp.application contains the server url. The myapp.application
file gets signed before deployment. Everything work great if my only target
is my QA server.

Here's the first problem: the guys that run the servers won't take a
different MSI for QA and Production. If there's a single byte different on
the MSI, they just won't accept it. They want me to have QA_myapp.application
and PROD_myapp.applications files, and they will suck the right one out of
the MSI using their scripts and environment variables.

The big problem is that when they substitute PROD_myapp.application, the
user gets an error stating that the computed hash value doesn't match the
myapp.exe.manifest. Funny, the security model detects a change and stops the
user from installing, which is exactly what it's suppose to do.

Here's my question: Has anybody figured out how to link the
myapp.application file to files like myprodserver.xml and myqaserver.xml
based on environment variables, and if so, how? Also, even if I got this
working, am I still going to get bags by different computed hash values?

If you've been down this road, you probably feel my pain...

Thanks,
Randy


May 31 '07 #1
1 1756
We built our own configuration file with XML and we read/write to it
ourselves, rather than using the App.Config or Settings capabilities built
in to Visual Studio. There are just too many problems with those. We store
variables for both release and debug incarnations, and check and use the
one we're interested in when the application is running.

Robin S.
----------------------------
"randy1200" <ra*******@discussions.microsoft.comwrote in message
news:1D**********************************@microsof t.com...
>I have a click once winform application which includes myapp.application
file. The myapp.application contains the server url. The
myapp.application
file gets signed before deployment. Everything work great if my only
target
is my QA server.

Here's the first problem: the guys that run the servers won't take a
different MSI for QA and Production. If there's a single byte different
on
the MSI, they just won't accept it. They want me to have
QA_myapp.application
and PROD_myapp.applications files, and they will suck the right one out
of
the MSI using their scripts and environment variables.

The big problem is that when they substitute PROD_myapp.application, the
user gets an error stating that the computed hash value doesn't match the
myapp.exe.manifest. Funny, the security model detects a change and stops
the
user from installing, which is exactly what it's suppose to do.

Here's my question: Has anybody figured out how to link the
myapp.application file to files like myprodserver.xml and myqaserver.xml
based on environment variables, and if so, how? Also, even if I got this
working, am I still going to get bags by different computed hash values?

If you've been down this road, you probably feel my pain...

Thanks,
Randy


Jun 2 '07 #2

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

Similar topics

11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
1
by: dfererer | last post by:
Dear all, I want to install and run ClickOnce Deploying application under a Windows Service,I have make the service starting the application successfully(user API...
2
by: Alex Bögli | last post by:
Hi I have a rather advanced deployment scenario and wanted to know, if anyone has an idea how to accomplish that with ClickOnce: We are deploying a 3-tier application with a client connecting...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
1
by: Alexander Malapheev | last post by:
Hi, I have an asp.net application which has a button to launch ClickOnce application. This button open a new page which make redirect to ClickOnce app, something like this: Protected Sub...
0
by: ocdocdocd | last post by:
Hello, First time using ClickOnce with Mobile 5.0. This is probably a stupid question, but I am just drawing a total blank here. Using my mobile device, when I navigate to the url (i.e.,...
3
by: Lutz Kretzschmar | last post by:
I have used ClickOnce to deploy my app to a file share on a server in my intranet. That folder is under a webserver root so I want my users to go to http://someserver.dom.com/App/Publish.htm and to...
0
by: =?Utf-8?B?VCFN?= | last post by:
Hi All, I've been successfully deploying clickOnce successfully through the 2.0 and 3.X frameworks, but now have a problem with ClickOnce updates in 3.5 SP1. The scenario is this: I want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.