Symbolic links for windows installation? - install4j

In install4j version up to 7.0.1 an action exists to create symbolic links on unix systems. For windows we wrote a customized action executing the command mklink /D <link> <target>. Maybe it could be an improvement to integrate this to the symbolic link action for windows, too?

Related

Running Julia using a modern terminal such as Windows Terminal

I am a beginniner user of Julia. According to the webpage of the Julia Programming Language, "We highly recommend running Julia using a modern terminal, such as installing the Windows Terminal from the Microsoft Store" (Julia 1.6 for Windows). In fact, PowerShell handles the Julia fonts in a better way.
However, the installation of Julia generates a start menu item that runs under cmd as default. How can I create run Julia so that it uses PowerShell as default?
I don't know if it is possible
You can add your julia installation folder to the PATH so that julia opens julia in Powershell
Or, if you want to be able to have multiple versions and chose which one to launch, you can use PowerShell aliases in $profile:
New-Alias julia1.6.0 C:\\Users\\user\\AppData\\Local\\Programs\\Julia-1.6.0\\bin\\julia.exe
New-Alias julia1.5.3 C:\\Users\\user\\AppData\\Local\\Programs\\Julia-1.5.3\\bin\\julia.exe
New-Alias julia julia1.6.0
to see where it is and edit it:
echo $profile
notepad $profile
I strongly recommend the Open Source ConEmu.
Set your Windows Julia shortcut to (this assumes that the folder with julia.exe is in your system PATH environment variable):
"C:\Program Files\ConEmu\ConEmu64.exe" -run julia
you can not get better Windows user experience than that :-)

How to go to definition of a function in VScode using ctags (from windows to linux)?

There is a big project with many parent/children directories on a Linux machine. The Exuberant CTags are installed and the tags are created using ctags. Now, I am using Visual Studio Code on Windows to load that entire directory. I have installed the relevant ctags extenions, but I cannot go to definition of some of the functions in VScode (on the Linux machine the ctags work fine in vim).
My specific questions:
What is the best (easiest, most efficient) way to do this (navigate through some codes that are based in Linux from Windows)?
How can I use the ctags, that are generated on the Linux machine, on windows?
P.S.: I think I should add some directories to my windows path or include path ...

Find argument list for an installation exe

I am a complete Noob on Windows and, for the first time of my life, I have to make a Powershell script to install various services on a server. From what I understood, silent installations are made this way:
Start-Process "C:\Path\To\some_installer.exe" -ArgumentList "/some /argument" -Wait -PassThru
But I cant figure a way to identify what the arguments should be for this given .exe. On Linux, I would launch the installer and answer to the prompts one by one to know what the arguments are supposed to be. Then:
(echo arg1; echo arg2) | my command
But since Start-Process does not display a similar behavior (or I am not using it properly), I am lost. I tried the -RedirectStandardOutput but getting nothing in the output file. How do you identify the argument list to provide?
Just like Linux, Windows has many package installation tools. The difference is that the Windows installers are mostly designed for GUI. So there is no standard for CLI. For each installation, you need to check for the installer.
If it's an MSI file, you can use the Microsoft docs. If it's an executable, you need to check for the installer. Many software use common installation wizards, but many of them use custom ones.
If you want to use it like Linux, you can use scoop or chocolatey. You can have a local repository in your network then share. Or just use internet. Then you can have silent installation by default.

Using the boto3 library with IBM COS in Windows

You provide python example code here: https://ibm-public-cos.github.io/crs-docs/python
As part of this, a Linux user needs to either use the environment variables show on the page, or set up the file in ~/.aws to hold the aws keys.
What is the analog for Windows (assuming this works under Windows)?
You could try:
> dir "%UserProfile%\.aws"
Source: https://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html
Alternatively, if you follow the links from the link you provided younare taken to the boto3 s3 library which describes environment variables for setting your credentials: http://boto3.readthedocs.io/en/latest/guide/configuration.html
If you are on Windows, I would recommend one of two approaches:
1) Installing Cygwin which is the most popular way to get a bash shell on a Windows environment
2) Installing Ubuntu natively on your Windows machine. Starting with Windows 10, it is now possible to run a Linux kernel natively, inside
a Windows system [1][2]. This is also referred to as "Bash on Ubuntu on Windows". There is a very cool talk with a demo about this.
Alternatively, you could continue to live in a pure Windows environment and instead set up environment variables in Windows for your Python application.
[1] https://www.microsoft.com/en-us/store/p/ubuntu/9nblggh4msv6
[2] https://learn.microsoft.com/en-us/windows/wsl/about

I have made an installer for MyProgram but the uninstall shortcut that it creates leaves behind empty folders

I have created an installer for MyProgram using the Visual Studio Installer (Visual Studio Setup Project). It is called "MyProgram Setup.msi". It installs the program fine and if it is uninstalled using the Add/Remove Programs control panel then everything gets removed as it should.
The problem is that I want to add a shortcut to the "User's Programs Menu" under the program shortcut called "Uninstall MyProgram". I have tried doing this in 3 different ways and in all 3 ways if MyProgram is uninstalled using that shortcut, the uninstall will leave behind 2 empty folders ("...Program Files\MyCompany\" and "...Program Files\MyCompany\MyProgram\").
Here are the 3 ways that I have tried to make an uninstaller shortcut:
1) A shortcut to a batch or script file
Uninstall MyProgram.bat:
#ECHO OFF
msiexec /uninstall {MyGUID}
Uninstall MyProgram.vbs:
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("START /B msiexec /uninstall {MyGUID}")
Set objShell = Nothing
2) Editing the MSI file using Orca.exe
I found out how to do this using this guide: http://www.codeproject.com/KB/install/MSIShortcuts.aspx
I added the Shortcut Entry to the Shortcut table. Uninstalling worked but it still left behind the 2 empty folders when using this shortcut.
3) From code within MyProgram.exe
I modified MyProgram.exe to take a "/uninstall" command line parameter to run "msiexec.exe /uninstall {MyGUID}" and exit itself. Similar to this solution: http://www.codeproject.com/KB/install/DeployUninstall.aspx
None of these attempts created a shortcut which can uninstall the program as well as the program's base folders. I don't want to switch to some other installer product such as Inno Setup, NSIS, or WiX.
If for whatever reason manually running msiexec /x {MyGUID} doesn't remove all folders, then it's an issue with your setup or something you're doing in your application.
For more information about creating an uninstall shortcut with WiX, check out this blog post which goes into quite a bit of detail. Based on the information shown in the blog post you should be able to work out how to stick with your existing technology and use some variation on the (2) method you mention.
It seems that this is a bug in the Visual Studio Installer. I have decided to use WiX instead. It is able to create the uninstall shortcut with correct functionality.