Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
EDIT:
NO LONGER RELEVANT. Due to difficulties with Installshield including not only this issue but also issues with getting it to build with the project in Visual Studio and its inability to replace one of the old files that needs to be replaced I am now coding an installer in C#. I should have done this earlier because I'd be done by now. Thank you Christopher Painter and Michael Urman for trying to guide me though this issue. Unfortunately I did not get anywhere further with it.
ORIGINAL POST BELOW
Honestly, this has been like pulling teeth. I hope that I'm missing something blatantly obvious. I have been trying to get Installshield to let me set the INSTALLDIR to an environmental variable. This is necessary because of the way the company does things. I know I can set it outside of the installer via a batch file which calls the MSI and passes the folder via an argument, but that solution ended up with an unfriendly MSI. If anyone has any internal solutions please let me know.
Windows Installer has the Environment table that is exposed by InstallShield in the environment view and component | advanced settings | environment view.
Setting Environment Variables
Windows Installer allows you to refer to environment variables using a variant of property notation. I would suggest an approach similar to RobertDickau's, where you use a set-property custom action early to set INSTALLDIR from [%SOMEVAR]. Only run the custom action if INSTALLDIR isn't already defined, so that people can override INSTALLDIR at the command line. Note that this must be run before costing, or you will have to find a different condition and use a set-directory action (like Robert mentions) instead.
Related
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.
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.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In an earlier version of delphi (2007/2009) I found a way to debug the application without recompiling.
But I can't find it in XE5:(
I often find my self in need of restart debugging to debug a condition that only appears on application load.
So avoiding an unnecessary compile would be a great time saver.
Best regards
Ove B-)
I am not sure if this is what you need, but you can debug an application without having delphi trying to recompile it by following these steps:
launch the application outside of the debugger (with "run without debugging" or by executing it from windows)
attach the debugger to the already running instance you just created by using the delphi menu item "Run->Attach to process..."
Edit: a little error i made: you actually have to launch your program from windows: using the "Run without debugging" option from the IDE will make delphi try to recompile the project.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am trying to load the Open XML SDK library in my webpage on Godaddy.
I am not able to load the dll properly.
I asked the technical support, but all they said is create a folder in their IIS setting and something about "ASP.NET application DLLs" which I don't get.
I think this library should be ok since it just manipulates XML files.
The error I'm getting is:
CS0246: The type or namespace name 'DocumentFormat' could not be found (are you missing a using directive or an assembly reference?)
When you download the Open XML SDK 2.0 from here, it will give you a dll that you will need to include in order to use the DocumentFormat namespace. The specific dll is called DocumentFormat.OpenXml.dll and you should copy that dll into the folders the support person told you to create. You will also need to reference that dll in your project in order to use it. Once you do that the specific error message you are seeing will go away.
I was able to solve the error by using the tick box "Create Application Root".
Note that the application created using the IIS manager on GoDaddy should be the same name as the application created on GoDaddy using the FTP.
This was answered using GoDaddy support.
The only time I have seen that error is when you are trying to install .MSI files on shared hosting. To have access to that ability, you will need a virtual dedicated (http://x.co/b7Si) or dedicated server (http://x.co/b7Sk).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm currently using a basic text editor to write my grails code. Does anyone know of a program that will automatically format code with indentation similar to indent does for C? I'd rather use a commandline program to do this but can use an IDE to format my code if that's the only option.
Try NetBeans v.6.7 (not the current production release 6.5) with the NetBeans Groovy/Grails plugin enabled. This is a nice clean IDE interface (easier to use than Eclipse IMHO), and you can set it up to integrate with your Grails installation. You can call all your Grails tasks from the IDE, edit your code, test and run your project. Then, if you want to format your code, you just right-click in the code editor and select "Format". Easy!
I am using VIM / GVIM for typing code in Groovy/Grails. it has code formatting, I just need to tell my VIM that groovy and java are similar....
and then press gg = G [enter] (format from top to bottom)
There is a tool recommended in this thread for this purpose. I have not tried it but maybe worth a look.
Here's some instructions on how to get Grails working with NetBeans (couldn't submit the second URL in my last post).
the groovy eclipse plugin does a decent job of formatting groovy code. sts might be smarter about some of the grails code.
You can use npm-groovy-lint for command line, and VsCode Groovy Lint in Visual Studio Code IDE :)
https://www.npmjs.com/package/npm-groovy-lint
https://marketplace.visualstudio.com/items?itemName=NicolasVuillamy.vscode-groovy-lint