Running PowerPoint Viewer from commandline on Windows - node.js

I'm running PowerPoint Presentations from my desktop app, which is written in the electron (node.js). I use child_process to run powerpnt.exe with params, and it works fine. I'm looking for similar solution for workstations, where only PowerPoint Viewer is installed. On some machines, pptview.exe was working fine, but this not always works, I need a reliable solution. I tried to find out the full PowerPoint Viewer path in Windows registry, but I'm not sure where should I look for. Maybe someone knows the reliable way to run pptx file from nodejs in PowerPoint Viewer?

The default location for PowerPoint viewer is:
32 bit Windows 7: C:\Program Files\Microsoft Office\Office12\pptview.exe
64 bit Windows 7: C:\Program Files(x86)\Microsoft Office\Office12\pptview.exe
I would start by checking if those files exists. If not you could check the registry. HKEY_CLASSES_ROOT in the registry holds information on which application should open which file. You should find something like HKEY_CLASSES_ROOT\.pptx\.
If all else fails you could try to do a silent installation of PowerPoint viewer in the background. Download the installation file in the background and run it with PowerPointViewer.exe /quiet /passive /norestart. More info here.

Related

.exe and .msi installers does not runs on Windows 10 OS

I was trying to install Node.js node-v14.15.1-x64 on PC with Windows 10 Pro 64-bit OS, but then I found that the problem appears with any .exe and .msi
If I'm trying to run installer with/without administrator, I got only endless blue loading circle icon on my screen without any error report or process in Task manager:
Hanged icon with cursor arrow does not disappears, even if I will wait for a hour, to stop it, I've to restart computer
I've followed Stein Åsmul answer, which I'm forced keep unmarked, because it seems like nothing helps yet:
I've re-download installation media but now I see that this happens happens to all installers.
I've tried turn off Windows Defender Firewall and Security Antivirus.
with C:\WINDOWS\system32>sfc /scannow Windows Resource Protection did not find any integrity violations.
HKEY_CLASSES_ROOT/.exe value is exefile, and exefile folder value is Application, I have tried to change it with "%1"%*
in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion in ProgrmFilesDir value is C:\Program Files and in ProgramFiles Dir (x86) is C:\Program Files (x86)
With attempt to C:\WINDOWS\system32>assoc .exe=exefile something also went wrong here, because OS freeze, and I was forced to reboot
C:\WINDOWS\system32>msiexec.exe /i :\Users\User\Desktop\New folder (1)\pycharm-community-2020.2.3.exe /L*v C:\Your.log opens Windows Installers, which describes Display, Install, Restart and Logging Options, but I'm not sure, how to use it, to find out with this issue
Solution:
After removing AVScanner.ini form C:\ directory problem disappeared and installation works fine
Also I have to note, that I will mark answer by Stein Åsmul because I found it useful in similar possible situation, even if it was not solution in this particular case
Any advice, guide or example would be helpful
Overall: Do you have a screenshot? That almost sounds like a Windows Smartscreen issue?
Here are some generic setup.exe debugging suggestions:
Shortened setup.exe problem list
Long setup.exe problem list.
Specific Suggestions: 1) Re-download the installation media first of all. 2) Then reboot and disable anti-virus scanners and try to install. 3) You should also enable logging and look at the log for clues. 4) Try to install as a different admin users. 5) Finally test on a virtual or another machine to verify the integrity of the setup file.
Quick Logging:
msiexec.exe /i C:\Path\Your.msi /L*v C:\Your.log
General WiX and setup links (section: "Generic Tricks? - Consumer issues")
Smartscreen issues
Node.js - Cannot Install it is showing an error because of .msi

Changing Asp.net core Docker target from Windows to Linux

I have created a new ASP.net application by Visual Studio 2019. When I was creating the project, I ticked the Docker Support checkbox and selected Windows for my docker. After a while, I decided to change my docker from Windows to Linux as I have some other software on Linux container and every time I need to switch. I did some research and I found out if I change the server URL inside the DockerFile, I can change it to Linux. By doing it I encounter this error: Your Docker server host is configured for 'Linux', however the project targets 'Windows'
Then I opened the Cs proj file and change the windows to Linux and now I see: Unable to copy file obj\debug\netcoreapp2.1\xxxx.dll to bin\debug\netcoreapp2.1\xxxx.dll. Access to the path bin\debug\netcoreapp2.1\xxxx.dll is denied.
I reverted the change but I still see the same error.
Edit your .csproj file in a text editor like notepad++
You should see DockerDefaultTargetOS tag, and it should read Windows
Change that to Linux
update your dockerfile, replace the base instruction by this line
"FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base"
do the same with build instruction: FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
update your csproj tag DockerDefaultTargetOS to point to linux

InstallSheild not writing to registry or ProgramData in Windows 8.1

I built an installation ine installshield express, and it works fine on windows 7 and windows 10. But for some reason it is not installing all of the files on windows 8.1. There is also a registry entry, which is not being written. I have checked the permissions and no issues there. Any point in the right direction would be appreciated.
Since there is no error in installation, let's assume installation is successful. If it is 64 bit, Check in Wow64 subsystem in registry. for files, search in C:\Program files(X86).
Check event viewer (eventvwr) for error messages if any.
Check for UAC status and Windows Event Viewer(eventvwr) for error logs

Vs2013 Nodejs project.. 2nd box..."specified executable is not a valid applications for this OS platfrom

I have a nodejs project in Vs2013
I built it on a w7, 64 bit machine, and it's working, on my main box, check it into TFS and it builds and runs test in Team city. Also runs from a batch file that calls protractor.cmd directly.
I pulled it down on a second box, windows 7, 64 bit
installed Java jdk, VS Node tools, node.js, protractor, VS2013 update 4.
If I run it from the batch file it runs fine. If a debug the project in vs2013 it crashes with the error above
The specified executable is not a valid application for this OS platform.
There are some SO questions that says node.exe is the problem but I searched my drive (with agent ransack) and can't find node.exe anywhere.
I uninstalled the 64 JDK and installed the 32 bit JDK and no joy..
I'm assuming I've installed the wrong version of something.. but I don't know what
Any Ideas? Any Help Is appreciated.
Make sure you added Node.exe to the path.
You said you installed nodejs, so look for Node.exe in something like C:\Program Files\nodejs\
If you can't find Node.exe, then uninstall nodejs and reinstall it and pay attention to where it installs.
Now that you have Node.exe, add it to the path by
right click on My Computer
select Properties
activate the Advanced tab
click the Environment Variables button
edit the Path system variable

NodeJS Installer wont open on Vista

From the NodeJs website I have downloaded node-v0.12.3-x86.msi to a Windows Vista PC.
It just doesnt install. No error appears. I tried restarting. I even Googled it a million times.
Anyone know how to install NodeJS?
Peace and love to you all.
The file might be blocked because it was downloaded from the Internet. On Windows Vista if you attempt to install a blocked MSI file, the file is not installed and no error is reported. Unblock the file by:
Right click on the file and click Properties.
In the properties dialog click Unblock.
Close the dialog.
Install the file.
If that doesn't work try installing with diagnostic logging from the command line using msiexec:
msiexec /l*v Desktop\Install.log /I Desktop\node-v0.12.3-x86.msi
Note: This assumes you are running the command from your user directory: C:\Users\<your name>.

Resources