How can I get the installer for my application check the operating system type and then install the correct driver type?
I have a request that I wrote and have been use and distribute for awhile. The installer I created for this application is an additional installer to install a driver for the USB connection. The USB connection is actually a virtual COM Port. The problem is that the people who drafted modified driver setup the installation program itself. They used to have an installer that would check for 32-bit or 64-bit OS and then install the appropriate driver.
Now, they have two distinct installation programs: one for the other for 32-bit and 64-bit. They let the user know their OS and install the appropriate driver. I'd rather not have to rely on my users to do. From what I've seen the creater Installer provides that an executable to be run after the application installs.
Is it possible to have the installer of the application, check the type of OS and then run the correct executable file after installing my application? I think that I could write an Installer 'wrapper' that checks the type of operating system then executes the correct Installer. But I expect a better solution.
Thank you
Joe
So, I make it work!
The trick is to find a way to determine what type of OS you are using. The method I used was, indeed, read the environment variable. A buddy of mine sent me this link:
http://StackOverflow.com/questions/2401756/how-to-find-if-the-machine-is-32bit-or-64bit One of the phrases he bibliography the Processor_Architecture environment variable.
It seemed like a reasonable idea. So I started to research how read LV it environment variables turns out, you do it by reading a registry key. There is an example of LV on how to read a registry key. But I did not know where they are in the registry. So, I searched the Processor_Architecture registry. I found it in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment.
According to the article in the link, this value will already be x 86 for a 32 bit OS, or something with 64 inside. I just check the response for x 86 string. If it is, I just run the x 86 version of the driver Installer. Otherwise, I run the x 64 version.
It turned out to be as simple as that.
I hope this helps someone.
Joe
Tags: NI Software
Similar Questions
-
How can I get the correct product key for my sleekbook want PC4
How can I get the correct product key for my sleekbook desire 4 PC
Hello
As mentioned in your other post you can get it from Microsoft with your money:
Kind regards.
-
Try installing Adobe Acrobat Pro DC and it will not accept the serial number. Receive the message invalid serial number.
How can I get the correct number to enter?
Hi chrise68847178,
You can check your serial number of this link:find the serial number of your product Adobe quickly
Also, you can check this link:error of incorrect serial number
Let us know if that helps.
Concerning
Sarojini
-
How can I get the correct product key for my laptop?
Hello I bought my Pavillion dv6707 us in TI 2008 has Windows Vista Home 32-bit (OPS).
I just got a notice saying that my (OPS) are not authentic I have 2 key 1 products in the software 89578-OEM-7332157-00061 the other is on the bottem of my laptop that I can almost distinguish as V6KPX-BFMJF-DM7QP-T3X7B-QCQDD how can I get the right pair?
Hello
Those at the bottom of the laptop is for the operating system on your machine.
Kind regards.
-
I need to know how I can get the correct download for my Mac computer?
Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...
Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache. If it fails to connect, try to use another browser.
Get help from cat with orders, refunds and exchanges (non - CC)
http://helpx.Adobe.com/x-productkb/global/service-b.html ( http://adobe.ly/1d3k3a5 )
-
How can I get the device driver for Dell all-in-one 944
I got a new PC and don't have the information to use my printer. How to get the driver from Dell for this printer info
... How to get the driver from Dell for this printer info
I have moved your post in the comments to the Windows, hardware and drivers section section, but have no idea which version of Windows that you are operating on. If your printer is compatible with the version of Windows you are using, you can download the drivers and support the Dell 944 all-in-one printer from Dell heresite software.
You mentioned that you have a new PC, so it is likely that you use one of the Windows 7 64-bit editions. If you want to check the hardware compatibility with Windows 7, you should try the Windows 7 Compatibility Center.Edit: If you try to work around a problem of incompatibility of Windows 7, there's a solution posted in the following thread,
-
How can I get an installer for Windows Vista drive?
Need windows on a drive!
I have an acer aspire 5315 with OEM windows vista Basic. I want to perform a new installation of this version of windows on my laptop that there have been some problems (multiple annoying windows error codes) and want to start over. I have not provided with an installation for windows cd when I bought this laptop a few years again. I have a license for this laptop windows key but not drive! I am able to get one sent me free I paid initially for windows? Thanks, Mike
Hello
Contact Acer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it
they do it for a nominal cost of $
https://secure.TX.Acer.com/rcdb/main.aspx?brand=Acer
also ask them if you have a recovery partition on your hard drive to get back to the way you bought
you would normally press F8, F9, F10 or F11 or ACER Alt + F10 at startup to start the recovery process according to the manufacturer
Ask them of the exact key sequence
or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc
Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer
they contain all versions of vista
This is the product key that determines which version of vista is installed
http://www.theeldergeek.com/Vista/vista_clean_installation.html
How to replace Microsoft software or hardware, order service packs and replace product manuals
-
How can I get the correct AppID is displayed?
On my iPad, I'm registered on an Apple ID. Then, I signed up with my other.
Then, I go to an app, that I bought, on the iPad. When I try to restore the version full that I paid for, the former Apple ID appears, even if I signed on that one and with a new.
How can I fix it?
Thank you.
By removing and redownloading the application. The old Apple ID is stored inside.
(143218)
-
How can I get the correct codec?
I copied a music file & tried to paste in my movie in movie maker, but it says that I don't have the right codec on my computer & need to download a. I have Vista. Could you tell me where to find the correct codec?
Thank you
Gloria
Find what audio and video codecs you need using GSpot
http://www.Afterdawn.com/guides/archive/find_what_video_and_audio_codecs_to_use.cfm -
How can I get the correct email address for the Australia?
How do fix this email Add. in Austraila * address email is removed from the privacy *.
I tried to email this lady but they say they cannot find the e-mail address & I just got it this morningHello
The deleted forum software e-mail address in order to preserve the privacy of the recipient.
Check the address for common errors such as:
1. a space in the address
2. a period after the com, net, etc.
3. If you have copied/pasted the address, make sure that there is no space after the net ETC, com.
4. a misspelling or typo.
5. sometimes when an address is highlighted, you don't see a required underscore character.Hope this helps,
Don -
How can I get the correct dates on photos for a Windows photo album
The dates on the pictures imported from the disk on which I downloaded them aren't dates that I took them. Tried FixIt program twice, but it has not solved the problem. CA
Hello
I suggest you refer to the link provided below to change the date and time a photo was taken.
Change the date and time a photo was taken
http://Windows.Microsoft.com/en-us/Windows-Vista/change-the-date-and-time-a-picture-was-taken
See also:
Create a professional photo album today
http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-professional-photo-album-today
-
The intelligent keyboard on my iPad Pro works fine all the time except when I go to the search feature of iOS. As soon as I go ahead and start typing I'm extended character set characters rather than the face value of the keys I hit. Is there a setting that changes the character set used by the search feature with the Smart keyboard? On-screen keyboard works fine, but it's a nuisance by disconnecting the Smart keyboard everytime I want to search for.
Thank you
Steve Lewin
What you get in the search box when you type asdfg? Is - this ass∂ƒ?
What language your OS and keyboard are set on?
-
How can I get the correct sliders in the basic Panel
I have named 'Recovery', 'Fill light' and 'Black' I want the standard sliders that are named "Highlights", "Shadows", 'White' and 'Black' sliders
These settings are only available in the LR4 LR5 &. You are using an earlier version which has process of 2010?
If you LR4 LR5 simply go to the camera Calibration tab in develop Module and click on process of 2012.
-
How can I get the speaker back icon in my taskbar volume
I had the volume icon in my taskbar, but now it disappeared. How can I get that back?
I had the volume icon in my taskbar, but now it disappeared. How can I get that back?
Always specify what operating system you are using.
Solution may be different even if the problem is the same.
If you use Windows Vista, use this tutorial:
http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html
Go directly to the three method
2. for the Volume icon.
(B) to activate the Volume - icon Enable_Volume.reg< click="" to="">
and follow the instructions #5-#9
Restart the computer to complete the process.
If you use windows 7, use this tutorial
http://www.SevenForums.com/tutorials/19085-system-icons-enable-disable.htmlGo to the second Option
9. to activate the Volume iconClick on the download.
Follow the instructions from #11 to #15.
Restart the computer to complete the process.
-
When you try to print to Adobe PDF, it is not available in the select Printer drop-down menu on any of my apps. I particularly need in Autocad for Mac that I then choose sizes large page A1 and A0. How can I get the print driver to show up in the dropdown to printer?
This printer is available on Windows computers.
-
How can I get the Firefox logo on the desktop, as it changed to a generic
My Firefox correctly updated to Version 36.0.1, but the name on the desktop icon is not. I ran a renaming on it and the version is now correct but Firefox icon disappeared and I replaced by a generic in the usual palette of the icons of Windows 7.
How can I get Firefox back please?Hi, try to remove it, and then go to the Start Menu > all programs, right-click on Firefox > Send to > desktop.
Hope that works.
Maybe you are looking for
-
Access to an Internet connection that is shared in M60 via Bluetooth PAN
I created a Bluetooth PAN, I came to my office.I managed to make it possible for the Office to use a cable internet, cable connected to this laptop (M60).Desktop uses "Free wireless Internet": P via bluetooh... It is possible to do the opposite... in
-
Blank Screen + cursor At Startup / Pavilion g4-2149se Notebook
Hello! As stated, I have a HP Pavilion laptop g4-2149se running Windows 7. For the last 2 weeks almost whenever I start my computer, before getting the Windows Welcome screen, I get a blank screen, persistent with a slider. Then, he'll finally get to
-
Soda + keyboard = end of life
My 19-year-old root beer infiltrates his keyboard. Pavilion laptop. The only number or whatever he could find is "Pavillion G4." He's on the phone, 250 miles away. The odds of getting a keyboard?
-
Resolution on the laptop Toshiba NB505 required standards Windows 8, what can I do?
I installed windows 8 on my Toshiba laptop, NB505, but all blocked applications to run due to the screen resolution minimum is, which is fixed at 1024 * 768 to run applications. And please help me make a change or a screen resolution of 1024 * 600 to
-
A customer is curious to see if I export HTML from Adobe Muse code, he will be able to edit HTML in another program?