Re: Here is what I did, may be non traditional.



It sounds similar, but I was confused about the line:
my TFS custom build script changes the WCF endpoint url based on which Client location I am building it out to.

Are you entering the configuration file parameters at the point of installing
the MSI on the Desktop, or at the point of creating the CAB?

It sounds like you're specifying the customer specific parameters at the
point of creating the cab in Visual Studio, as opposed to this being a
parameter entered by the user when installing the MSI.

To clarify how yours works, do you have to create different MSI files for
different customers, or can you use one compiled MSI installer for all
customers? (I'm looking for one MSI installer for everyone).

As I said though, the method above works, so it's really now an academic
question to see what the best way is.

Thanks,

Ian.




Yogesh Ramakrishnan wrote:
I developed an app that utilizes a WCF service, I needed a config file to point to the WCF service. My mobile device is connecting to the WCF via coporate Wifi network.

-I created a config file within my mobile app and marked the file property "Copy to output directory" as 'Copy Always'

my TFS custom build script changes the WCF endpoint url based on which Client location I am building it out to.

-Within my Cab generator project I point to the mobileapp.config file from the build output location so that it will be included in the CAB.

When the CAB is installed on the device, the appropriate mobileapp.cofig is copied to the app folder on the device

- I also use a similar desktop setup project that you use and some custom actions to install the cab to the device.

Is this what you are trying to do?

r_z_are wrote:

I think I understand your description now.
10-Nov-09

I think I understand your description now.

You could write a RAPI application that installs the CAB and the
configuration file, and you can get that application to run whenever a
user connects. So someone can install that RAPI program, the CAB file,
and the configuration file on a customer's "desktop", and then when
someone connects a device to that "desktop", the RAPI program will run
and install the program and config file to the device. For info about
triggering a RAPI program this way, see my 25 February 2003
contribution to a thread called "ActiveSync Module" in this newsgroup.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
.NET - Writing a self-updating application in C#
http://www.eggheadcafe.com/tutorials/aspnet/b77d98c4-3137-4bb7-9df7-85ec9bf2e619/net--writing-a-selfupd.aspx

--
Message posted via http://www.pocketpcjunkies.com

.



Relevant Pages