How to build an MSIX from comandline [closed] - msix

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
We had understood, MSIX is an interesting, modern alternative to ClickOnce.
Using with GUI runs smoothly. And we want also to use it with Powershell/CMD scripts. (We only want the msix package, no store upload.)
Here is our problem. I have seen the doc from MS (https://learn.microsoft.com/en-us/windows/msix/package/manual-packaging-root) but it is very partial. I have no special with to do, I only want to make the standard export by script instead of GUI.
Please, can anybody give me a better instruction/tutorial to easy create an msix-Package by command line?
Here the steps, I found - and partial questions:
Create Manifest.xml - Good documentation of the content, but where to save it? I use the folder with the *.sln
Generate a Package Resource Index - I find the MakePRI.exe, but hot to use?
Create the package with MakeAppx - who and where to use? Even in standard case I need a mapping.txt. Which files must it contain? All from Manifest? Where I must place the files - Server online or local at PC? Only pictures for icons? Where I must run it? Must it the place with the *.sln or can it be a subfolder? Where have the binaries of my program to be?
Create an app bundle - What must stand in the mapping file here, when I will an app for x86 and x64?
Sign msix - sounds easy - give msix-file and signature as parameter and run
You see, I am very confused. With GUI - MSIX creation is easy. But how to automate it? Can someone help me?

It seems to me that you are on the wrong track here, basically, you are trying to reinvent the wheel and create your own tool that builds MSIX packages.
This doesn't sound very effective to me. We (at Advanced Installer) and other vendors, Microsoft including, have been working for years to build reliable MSIX packaging tools, this is not a 1-month project task that you can start from scratch, without any prior domain knowledge.
What I suspect you need is actually a way to build from the command line a project that you created with Visual Studio, Advanced Installer, InstallShield, or any other tool that can build MSIX packages.
So basically, you need to use the GUI to initially build the project that will generate your MSIX and you can then go on to use the options below to build an MSIX from that project using the command line.
If I am wrong, and you actually need a way to build an MSIX package from scratch from the command line, please update the question with more details so the community can better understand what you are trying to accomplish in order to provide you with useful guidance.
TLDR solution:
So, the first step is for you to build your MSIX project using your tool of preference. From your question, it seems you are only using VS, so you need to use the Windows Application Packaging Project.
Now that you got the .SLN which contains your source code for the application along with your MSIX project, all you need to do is to trigger a build from the command line, using msbuild.
Note. If you are using a third-party tool to build your MSIX, then search for it's documentation, all professional tools have a command-line interface. Here is for example how you can build a project from using Advanced Installer's CLI.

Related

Artifactory Bitbucket mainframe Integration [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We are planning to use artifactory for mainframe COBOL.
We are also planning to use bitbucket as SCM tool for mainframe COBOL.
Can you please guide us on how to go about?
Thanks,
Shnkr
If you want to use bit bucket (or any GIT based system), you will need to be able to compile and move compiled objects to target datasets. IBM has a new product called Dependency Based Build, which is designed to integrate with GIT and other open SCM systems. It is Groovy based, and can call the COBOL, PL/I and Assembler compilers. It integrates with IBM Developer for System z (which is IBM's eclipse based IDE for mainframe development). This tool also allows you to debug, unit test, and analyze code coverage of your source.
Here's a demo of DBB: https://www.youtube.com/watch?v=CsZDlKIDRXI
Also, using these for your toolchain, you will be able to store your compiled objects (load modules, listings, DBRM, etc) into Artifactory, but deployment can be a bear if you are just using open source tools. I would personally recommend Ubancode Deploy for z/OS deployment as it can handle complex deployment scenarios.
For B.B. it totally depends on your IDE. Look at IBM’s eclipse bases stuff.
I have no idea how or if your can reasonably store mainframe COBOL artifacts in Artifactory - have you looked at their docs?
JFrog Artifactory does not come with an out of the box support for COBOL binary packages.
You can take a look at Generic repositories, which allows storing any type of binary, as a possible solution. Using generic repositories will allow you to benefit from setting permissions, defining layouts and other Artifactory capabilities.

Linking to an external www-folder - Tools for Apache Cordova (VS 2015)

For a project I'd like to use an existing website as a base for a cordova app. My project setup looks as follows:
One Solution with two projects
A ASP.NET webservice project (with website aka html/js/css)
An tools for apache cordova project
I don't want to copy the html/js/css files from the website on every build. Instead, I thought I could get away with some kind of a link to the www-folder in the ASP.NET project. I tried several approaches:
Creating a filesystem link (tried 'mklink' with parameters /D and /J - /H is not working for directories
Editing the .jsproj file and add a tag to link to the other project's www-folder
The second approach didn't work at all. Just got some weird errors when trying to load the project again (saying something about file duplicates).
The first approach worked a little bit: It is working, when targeting the windows platform. It is NOT working, when targeting iOS.
When targeting iOS, everything is copied just fine to the platforms\ios folder (read, all the content of the linked www folder is copied to the platforms\ios\www folder). But it is not copied correctly to the remote build tool on Mac OS X! It really just copies the directory link as a file. Remotebuild then failes with a 'missing www directory in top level' message.
Any suggestions how to add a link so the content is copied (instead of the actual link)?
Is there a way to take detailed influence on the build process for specific platforms?
Is there a way to create a hardlink to a directory in windows? What are the drawbacks?
I'd really like to avoid copying the files on build (which would be simple enough with a prebuild script), because there's a high risk of loosing changes made while debugging.
I'm aware that setting a link is also not the best solution, since it has to be done per machine and can't be checked in to a version control system. So, if somebody knows of a better aproach to handle my scenario, let me know.
I work on the Tools for Apache Cordova in Visual Studio at Microsoft.
I'm sorry but VS-TAC does not support add as link. To prevent confusion we removed the option in update 3.
The best solution I can give you is to copy files from one project to another. Another user asked this question a week ago and came up with a hacky solution. Please see this for more information:
VS2015 typescript cordova add as a link
Sorry for the trouble and thank you for the feedback!

Monitoring executable file

I have a program I purchased several years ago, the last years when I install a new windows I was call my software programmer to install it again on my PC.
Now I can't find this guy and want to open the program, so I want to know which files is needed to open my exe file and if any keys to the register should I add, I think it's monitoring to check what I should add.
anything like this I can use to know.
P.S: I have the exe file and tried to open it, it asking for some files and already added to the system32, now it not asking for anything but close the program without opening even the 1st screen.
You could also use Dependency Walker to get the static AND dynamic dependencies. The Dynamic dependencies are shown when you use this tool in the so called "profiling mode".

Workflow automation: Makefile vs. Ant [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Whenever I notice that something in my workflow is a repeating task, I try to automate it.
For example the steps necessary to deploy something on a server. It's often a build, followed by a scp and finally some remote setup scripts:
mvn package
scp target/foobar.jar server:
ssh server install-foobar
ssh server './bin/foobar restart'
I tend to write a small Makefile in such cases, which could look like
deploy:
mvn package
scp target/foobar.jar server:
ssh server install-foobar
ssh server './bin/foobar restart'
How do you automate your workflows?
Is Ant the tool of choice? What are the Pros/Cons?
For Java development, I'd say Ant is the default choice.
Pro:
good documentation,
good IDE integration
Lots of third-party extensions and tools
Con:
Somewhat verbose (well, it's yet anothr XML format)
Some things that should be simple aren't (e.g. any kind of looping)
I don't really have any experience using makefiles, so I can't say how they compare. Maybe you should simply use what your developers are more experienced with.
SCons is another good one. And Capistrano seems to be well regarded although I haven't tried it.
I use shell and perl scripts
consider GAnt (http://gant.codehaus.org/). using Groovy's builder, it is much less verbose than an Ant build script
For python I tend to use fabric for the deployment steps and setuptools for any building that is needed (not that usual for me :-)
Fabric understands how to copy files to servers, runing commands on the remote server (both as the standard user and as root).
one of the reasons most build systems are so complex is that folks try and do to much in them. sometimes complementing a build system with a driver-script that takes care of non compilation/linking tasks is a good way to go. There is no single way. Its hard to answer the question without see the project source code structure and all the tasks that need to be done. But you might want to take a look at Rake as it would complement Make, Ant, and Maven
Rake is my choice.
I find Ant and its XML configuration syntax a bit unwieldy and there are some things that should be trivial but are very hard to get in Ant. I prefer for that kind of automation SCons.
There is another tool precisely made to deploy stuff that I used for a bit and was pretty cool, but I forgot its name, maybe somebody else remembers it :).
I use scripts (shell, perl, python) or makefiles. I do not like Ant and SCons

Is it possible to create a custom distribution of OpenOffice, or a way to package it into my java application?

I've got simple java-based ppt->swf sub-project that basically works. The open source software out there, OpenOffice.org and JODConverter do the job great.
The thing is, to do this I need to install OO.o and run it in server mode. And to do that I have to install OO.o, which is allot of software (~160MB) just to convert the source PPT files to an intermediate format. Also, the public OO.o distributions are platform specific and I'd really like a single, cross platform set of files. And, I'd like to not interfer with a system's current settings, like file extension associations.
As things are now, my project is not particularly 'software distribution friendly'.
So, the questions are:
Is it possible to create a custom distribution of OpenOffice? How would one about this?
How lightweight and unobtrusive can I make the installation?
Would it be possible to have a truly cross platform distribution since there would be no OO.o UI?
Are there any licensing issues I need to be aware of? (On my list of things to check out, but if you them already then TIA!)
I have no idea to accomplish such task, but Microsoft has its PPT viewer that is for free and very small, maybe in .NET (C#) you can use some kinda function to save into a intermediate file that you need...
and by the way, how are you handling slide transictions?
I found a software that does that but you need MS PPT installed.
this was just an idea, now regarding your actually question:
you can create your own installation of OO, just jump to the Installation project and follow the lines.
I did not read 'til the end, but from the 1st paragraph it seams what you are searching for.
No, not unless you are neck deep coding in the OpenOffice project.

Resources