How do I specify an Icon file from args of Mage.exe and how do I create 2 entries in the sta

Hi everybody,

I am attempting toautomatea little bit our usage of the ClickOnce technology.

Using MageUI.exe, I was able to successfully build a ClickOnce application that installs itself on the user's workstation, with the Icon File specified like if I did everything using Visual Studio 2005's publishing wizard (shortcut in the start/programs menus and all).

Here in our project, it is not an option to use Visual Studio'swizards and msbuild to automate deployment of iterative builds.

I am trying to do the same as I did with MageUI.exe but at the command line, usingMage.exe.

In MageUI.exe I could specify an EntryPoint, and an IconFile, in the Files section of the application manifest tab. I see no documentation and no option in the help of mage.exe to do so from the command line.

Is it possible ?

How can I do that ?

Help me, please, anyone

Thanks in advance

Isabelle

PS please, respond to the group so everyone can beneficiate of the answer.

[1116 byte] By [IsabelleAM] at [2007-12-23]
# 1

I still am looking for an alternative way (command line) to produce both the deployment and the application manifests of my application.

I am also looking into creating 2 entries in the start menu of my deployment. Is it possible ?

Thanks in advance!

IsabelleAM

IsabelleAM at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2

I remind you all that we do not use msbuild, this adds to the complexity of our process.

At this moment, in my attempt to automate some of the deployment process, I am generating the deployment with these few steps :

  1. xcopying the files to deploy (from a bin directory to a deployment\1.X.X.X.MyApp\ directory)
  2. do not forget to rename files with .deploy extension
  3. generate application manifest via a batch file (mage.exe)
  4. editing app manifest to add the iconFile entry (to make sure you have your branding on the start menu)
    • right before the <application /> line
    • insert the following line: <description asmv2:iconFile="App.ico" xmlns="urn:schemas-microsoft-com:asm.v1" /> )
    • For this, consult article http://msdn2.microsoft.com/en-us/library/ke5z92ks.aspx (called How to: Specify Build Events (C#, J#) )

  5. sign app manifest
  6. generate deployment manifest
  7. edit html page to present the version available

These aren't the latest/greatest finds but it does the work. I will keep this thread updated as I discover how to make things work.

In my humble opinion, that's a lot of steps just to use ClickOnce.

Best regards

Isabelle AM

IsabelleAM at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3

Isabelle

MANY THANKS!

I have been trying to figure this out for some time! I will probably add this to my upcoming ClickOnce article in CoDe Magazine. Getting ClickOnce to make applications work the way we are used to is pretty elusive.

Julie Lerman

JulieLerman at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 4

Julie

You're welcome. Let me know when it's out.

Regards,

Isabelle Melnick

IsabelleAM at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 5

How can i generate .deploy files using Mage.exe at commandline. I am facing problems with .Config files download at client systems, as IE do not allow to download .Config files for security reasons.

If i do it manually, ie. using DOS ren command, it throws errors.

Thanks.

AnwarHussain at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 6
Thanks Isabelle for that ! You saved hours for me. Although i generate the deployment files with Visual Studio 2005 SP1 and then manually update them (adding more files to deploy) with MAGE UI, it doesn't seem to reference the Icon file properly.

Thanks !

aebe at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 7

I found this information to be extremely helpful, thank you!

Please note that you must have the "App.ico" file with all the other files that need to be referenced.

Thanks,
Michelle Marcus

MichelleMarcus at 2007-8-30 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...