App built with Install4j does not launch post installation on Windows 10 machine - install4j

When I install an java/swing application built with Install4j on Windows 10, it gets installed under default folder C:\Program Files(x86)\MyApp folder but when I try to launch by doing double click on Launcher then it gives an error dialogue with permission issue message :"Windows can not access the specified device, path or file. You may not have appropriate permission to access them". When I launch the same by doing a right click on launcher and then choosing the option "Run as administrator" then it launches fine. I checked the permission on the launcher file for the user I logged in and it was there. Kindly suggest me how to go about this. Is this an user configuration issue on the Windows 10 machine or something else. This problem has been seen recently.

Related

Unable to open or uninstall Visual Studio Code

I downloaded visual studio code a while ago but was never able to open it. When I open the app, I get the error "unable to write program user data". When I run as administrator, a window opens briefly before closing again. When I try to uninstall the program, I get error 5, "unable to create a temporary file. Setup aborted."
I have tried to create new TEMP and TMP directories but it made no difference.
This is on windows 11, the x64 bit version of vscode.
I have installed and used the same version of Visual Studio Code on a previous device (with windows 10 however) and never had any issues.
If you are not allowed to write data.
It means you do not have the necessary permissions for the directories. I see you tried already to run as ADM.
Try to check if your user account got the necessary permissions to write in the directories that you want. In the error message, maybe it shows the directory in question, if not, try first the VSC directories or the PROJECT directory. See below:
To do this, navigate to the directories specified (Or project directory) in the error message and right-click on them. Select "Properties" and then go to the "Security" tab. Make sure that your user account is listed and has the "Full control" permission.
You can also try to reset the settings for VSCode, by running the command Code --reset-settings in the command prompt.

Why Visual Studio code and most of the applications are not installing in fresh windows 10?

I am trying to install Visual Studio Code in my fresh windows 10 but it is throwing an error Setup was unable to create a directory
Error 5: Access is denied
Since your UAC(User Account Control) is turned off, and you are running the install as Admin (because you already are admin), it seems like a permission issue and not a UAC issue. Try this:
Create a folder name "Temp" under C:\ // This step is important, the
folder has to exist.
Right click the Computer in Start menu and select Properties. Click
Advanced System Setting. In System Properties windows, click
Advanced tab.
Click Environment Variables button. Under User
variables list, double click TMP.
Change Variable value: from
"%USERPROFILE%\AppData\Local\Temp" to "C:\Temp".
Try to install.

Can't find Visual Studio Code on windows 8.1 not in start screen

Just installed Visual Studio Code, and noticed I can't find it by searching in the start screen.
The default installation location is in %APPDATA%, which by default isn't indexed by Windows.
What's the solution to this?
I've read that adding %APPDATA% to the indexing can slow it down considerably because of the sheer number of files there.
I experienced the same thing on Windows 10, and this is what I learned:
I found that it's in: C:\Users\ USERNAME \Appdata\Local\Code\ APPVERSION \code.exe
where USERNAME is the username on the computer, and APPVERSION is the version of code installed (example, my folder is app-0.5.0 so it would be in C:\users\user1\appdata\local\code\app-0.5.0\code.exe
I right-clicked on Code.exe and chose "Pin to Start" and now I can launch VS Code from start menu.
What's even stranger (to me), is Code installed into the user directory of the user account that I'm not logged into at the moment. I have user1 and user2. I'm logged in as User1. Code installed in User2's Appdata directory!
I had a similar problem, so I right clicked on a html file and selected open with vs code. Once the application was open, I pinned it to the taskbar. And now I can access it anytime.

wrapper | OpenSCManager failed - Access is denied. (0x5)

I am trying to install Archiva on windows 8.1 pro (64 bit) and I am continuously getting the same error as below
wrapper | OpenSCManager failed - Access is denied. (0x5).
I logged in as administrator only. But still I am getting the same error. Most of the answers for the same problem I am seeing it for VISTA and 7 etc.. But not for Windows8.1 Pro (64 bit)
You need to run that command as an administrator.
Right-click on the command prompt entry in the start menu / task bar
Select "Run as Administrator"
Navigate to the Archiva installation directory
Then run:
bin\archiva install
net start archiva
Click on Start
Click All Programs
Click on Accessories
Right click on Command Prompt icon
Click Properties
Click on the Shortcut tab on the top
Click the Advanced button at the bottom
Click on the check box that says:
Run as Administrator
Click OK
Go to the folder having the batch file
Enter the command which was giving
Access denied
error
It will execute successfully.
I'm not sure this is supported by the wrapper.
Maybe the way to go for you is to use the war within a servlet container.
Have a look here: http://archiva.apache.org/docs/2.1.0/adminguide/webapp.html
HTH
pleas open Command Prompt run as administrator mode and then go to
{tinydms-home}/bin
then
tinydms install
to installing
Type cmd as shown below:
Run as administrator as shown below:
Sometimes, reopening the console or restarting the computer solves this problem for me. I hope it works

Can install4j ignore previously installations on reinstall/upgrade for default directory?

How can I get my install4j installer to always suggest the default installation and not try to use the previous installation directory.
I added my directory to the media and checked Suggest Application directory on the Installation Location screen but I'm still getting undesirable behavior.
Wanted behavior:
user installed C:\Program Files\My App 1.0.0\
use runs installer for 2.0 and it prompts with C:\Program Files\My App 2.0.0\
Current behavior:
user installed C:\Program Files\My App 1.0.0\
use runs installer for 2.0 and it prompts with C:\Program Files\My App 1.0.0\
Thanks for the help
Peter
On Installer->Update Options, deselect the check box "Detect previous installation directory".