I want to write a script that will check the office bit version and if 64 bit version, run this exe, else run this other exe. I can;t seem to find a script that would do that. I see OS version checking, but we have 64 bit OS with 32 bit office, so I need to check the bit version of office. Prefer to make this a .bat file if possible. Thanks!
Related
I have an M1 Mac running Parallels 18. It is running the ARM version of Windows 11, and everything is running great.
I have an application that I am trying to install that checks to make sure what processor it's running on. During the installshield process it pops up and say "This application needs a Pentium III or better". Yes this program has been around for a while, it is has been updated in the last couple months, but they have clearly never updated the installer. I believe the installer is also 32bit not 64.
So I am confident the application will actually run once it's installed. But I can't get past the installer.
Can I trick the installer into thinking it's running on a x86/x64?
I have changed the values by running 'set' for each of the values
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=9e0d
I have also updated the values in
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment
But no matter what I do when I run
ECHO %PROCESSOR_ARCHITECTURE%
it returns: ARM64
If I run the the same command in the 32bit cmd prompt it does return
x86
Not sure what else I'm missing.
I am attempting to connect to a DB in a VBScript application I am writing and this is the error I get upon trying to connect.
The 'OraOLEDB.Oracle' provider is not registered on the local machine.
I am running Windows 7 64-bit.
I attempted to register OraOLEDB11.dll by doing the following in cmd ran as admin:
C:\Windows\System32\regsvr32.exe \path\to\dll\OraOLEDB11.dll
A dialog popped us indicating it successfully registered, but the error remained, so I did more research and found that for 32-bit dll files, you must do:
C:\Windows\SysWOW64\regsvr32.exe \path\to\dll\OraOLEDB11.dll
Same result, got a dialog saying success, but the error persists.
Not sure what to try at this point. I've seen some people say to install both 32 and 64 bit versions but I want to see if there's anything else I can try before doing that.
If You are using Visual Studio, Just check the Build platform (Active Solution Platform) is Any CPU then change it to "x86" it will work.
If still not working then check for your Oracle is 32 bit or not, If not then install 32 bit
The architecture has to match all cases, i.e. all following must be the same either 32 bit or 64 bit, you cannot mix any.
The VBScript interpreter (%windir%\System32\cscript.exe vs. %windir%\SysWOW64\cscript.exe)
%windir%\System32\regsvr32.exe vs. %windir%\SysWOW64\regsvr32.exe
The DLL OraOLEDB11.dll you want to register
The installed Oracle Client
Just a note, it does not matter whether your Oracle Database is 32 or 64 bit.
You have to install both 32 and 64 bit versions of Oracle client only if you require to use either of them.
When you run your VBScript by simple double-click on it, then it will run in 64-bit mode.
I am learning C and I want to install MinGW on my laptop. The MinGW installer is a web-installer, it requires the computer to have access to the internet when installing. But the problem is that my computer's not connected to the internet. So it can't be installed.
So I am thinking of downloading the complete offline installer on my smart-phone and transfering it to my PC through blue-tooth.
I have already tried TDM-GCC, but even that requires me to download somthing.
So is there an offline installer to MinGW? If yes where can I get it?
I did not find an offline installer for MinGW,but instead I found a better Windows port; which is MinGW-W64
From http://mingw-w64.yaxm.org/doku.php:
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. It has forked it in 2007 in order to provide support for 64 bits and new APIs. It has since then gained widespread use and distribution.
Now to answer this question: it has to be mannually installed by downloading the zip file. It won't require additional download.
You can download it from link : https://github.com/jonasstrandstedt/MinGW
You need to extract the MinGW folder in C:\ eg: c:\MinGW . Then what you need to follow the steps given in the link above. In CodeBlock IDE go to settings>compiler>Tochain Executables. There you need to click on auto detect or specify the folder manually.
The most direct answer to the question "Is there an offline MinGW installer?" is "maybe, but it would be a snapshot from the past, and it's almost certainly not up-to-date with the latest available released versions." The individual packages are made available (almost) as soon as they're released, so capturing everything in a self-contained installer is a moving target.
But, you can use the standard installer offline with a bit of prep work if you use MSYS2's pacman, which manages dependencies and grabs all the right versions for you.
The details are given in an answer to another question (https://stackoverflow.com/a/46791235/).
I've been trying to write to a file in the system dir on my computers' but I can't get it to work;what would I do to get the necessary permissions?I need to update the SS without having to manually change the permissions on each and every computer...
var
z: THandle;
...
begin
....
z:=OpenFile('myfile.scr',a,OF_WRITE);
FileWrite(z,buf[16],3124);
FileClose(z);
end;
Most likely this is down the the file system redirector. Assuming you really are running elevated then you will have sufficient rights. But a 32 bit process sees the 32 bit system folder SysWOW64. That's probably where your file is landing.
If you really do need to write to the 64 bit system directory either run a 64 bit process, or write to the sysnative alias.
I'm not quite sure why you are using the legacy OpenFile. It would be normal to use CreateFile. Or even TFileStream.
You could add a manifest to your application as described here:
How to add manifest <requestedPrivileges> info into delphi project
This way, on application startup, Windows UAC will prompt for administrator privileges. The post is about Delphi XE but I've tested the manifest successfully on Delphi 2005.
During development, be sure to start the Delphi IDE with administrator privileges too. Otherwise, it might crash when you try to run/debug the program out of the IDE.
I got an application from a client. The application has 2 setup files one for 32 bit OS and other for 64 bit windows OS.
I want to combine them and i want to make 1 exe that runs on all the windows OS and on 32 and 64 bit.
What i need to do ?
Regards,
Behroz
Since: "I got an application from a client."
I would recommend using DotNetInstaller which is a bootstrap for installers.
Then just package both setup files and configure DNI to run the correct setup depending upon the target machine. (It can also be used to install the correct .NET version.)
.. or, ask the client to produce a unified installer :)