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.
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 :
- xcopying the files to deploy (from a bin directory to a deployment\1.X.X.X.MyApp\ directory)
- do not forget to rename files with .deploy extension
- generate application manifest via a batch file (mage.exe)
- 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#) )
- sign app manifest
- generate deployment manifest
- 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
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.