Write temp installation.log to .install4j directory - install4j

During setup a temporary log file is written to directory %TEMP%. This file is moved as installation.log to ${installer:sys.installationDir}/.install4j after setup finished.
Is there a way to let install4j write this temp. log file always directly to directory .install4j? Having it there it would be much easier to find it in case the setup crashes.
We're still using install4j 5.0.11.
Thanks in advance!
Frank

The problem is that the installation may not exit at startup and the installation directory may be changed in the installer.
However, you can pass the VM parameter
-Dinstall4j.alternativeLogfile=[path to log file]
to the installer to specify an alternative log file.

Related

Possible to autostart .bat files in ReactOS?

I want to make batch file start automatically once the system is done booting. This can
be done on windows by putting the batch script on the startup folder. However it doesn't seem
to be the case on reactOS. :?:
Any help would be nice! :D
I tried going to the startup folder and putting my batch file in their and it did not start sadly.
By the way it automatically logs in.

How to call an executable with Dll from a directory without this dll

I have a working directory a and
I have a directory b with an exutable and a dll which is used by the executable.
I want to launch the executable in the working directory.
With powershell I do that:
$env::path += ";C:\path\to\the\directory b"
Now I try to launch the executable from directory a
executableName
the programm is launched but it fails to work because it can't find the dll.
How can I fix the problem?
I have contacted the company that has done this executable file.
The problem comes from the file.
It's not a path related problem.

Change Directory to Folder Containing PowerShell Script - Regardless of Where That Folder Is Located

I have a script that I've created to prep our customer's servers for a software install. Part of this requires the script to be run as administrator, so just instructing people to click "Run With Powershell" doesn't get the job done. The script is in a folder with a number of .ini files that the script needs to copy to different server locations. If I just right-click the Powershell script and select "Run With Powershell," it is able to find the files and copy them without issue. Unfortunately, if I open the script in ISE, it opens with a default directory of C:\users\user, and I can't seem to copy those .ini files without first running a change directory command to get us to the folder that the script and the .ini files are in. But I'd like our installation techs to be able to run this without worrying about the exact location they initially drop these folders. I'd also like them to not have to worry about changing the directory manually in PowerShell. Some of our customers have multiple drives, and it might make sense to put this stuff on something other than the C drive, so it's hard to tell where this folder might end up. But I'm not sure of a command that will get me to the directory of the *.ps1 file, without knowing where that file is beforehand... Anyone have a suggestion?
You can use $PSScriptRoot that will have the location of the directory where the script is located.
This is referenced in the following post:
How can I get the file system location of a PowerShell script?

cp: copyFileSync: could not write to dest file (code=EBUSY)

I have an issue using the copy task in https://www.visualstudio.com/docs/build/steps/utility/copy-files
My task failed with an error cp: copyFileSync: could not write to dest file (code=EBUSY): ...
Looking up, I found out that somehow the file couldn't be overridden. When I delete that file and queue the build again, it succeeded.
Is there any permanent solution for this issue? I don't want to use the option "Clean target folder" in the copy task because in that folder there will be additional files that are not copied by the build task.
According to the error message, the file is being used when the copy files task is running. You need to check which application is using it and make sure the application is closed when the task running. If the file is locked by any application, you may get "rm: could not remove the file (code EBUSY):..." error message even if you use the "Clean target folder" option.
You run a web server reset command as workaround to pass through this problem if your application is running on web server for the open files to be released.

How to set workspace in eclipse to a directory that has space in it?

In my code, i get the workspace directory and then create a temporary file in it. However, my workspace directory has space in it:
C:\Documents and Settings\F1QB\Workspace
When my code reads this, it throws an error saying that it cannot find the directory. Now, i read that i should use a directory with no spaces in it. But, since i am working on my company's machine, I don't have admin access. So, this is the only directory i can use.
I tried switch workspace option and gave %20 instead of the space. But, eclipse throws an error on restart. It says:
The folder C:\Documents%20and%20Settings\F1QB\.metadata is read only.
Is there any workaround for this problem? Thanks for the help in advance
Try c:\Docume~1\F1QB\Workspace that usually works for long file and directory names.