Distributi​on kit calling 32Bit or 64Bit executable

Hello,
my CVI app distribution calls an executable that installs a hardware driver. Unfortunately, that executable (DPInst.exe) has separate versions for 32bit and 64bit OSs.
Question:
can the distribution kit (CVI 2009) be configured to call e.g.
 "DPInst32.exe" when my app gets installed on a32bBit system, and 
 "DPInst64.exe" on a 64bit system?  
or
What would be an other solution for that kind of problem?
Thanks,
Greg

Hello Eren,
thanks for you feedback. I don't want to distribute and maintain different versions for 32bit and 64 bit OS of my CVI application, just because a small USB driver of an accessory has two versions. In the meantime, I came up with a different idea.
The distribution calls an executable that
a) checks wether it runs on a 32bit or 64bit OS
b) then calls the correct DPInst.exe version
This is quite easy:
I'm using this  example code to check the OS version.
with that I call this code at the end of the installation:
void main()
 char path[512];
 int status;
 status = GetDir (path);
    if(IsWow64()) strcat(path,"\\64bit\\");
     else  strcat(path,"\\32bit\\");
 status = SetDir(path);
 LaunchExecutable ("DPInst.exe");
void main()
char path[512]; 
int status;  
status = GetDir (path);    
if(IsWow64()) strcat(path,"\\64bit\\");    
   else strcat(path,"\\32bit\\"); 
status = SetDir(path); 
LaunchExecutable ("DPInst.exe");
This should do the trick.
Best Regards,
Greg

Similar Messages

  • How to identify the installed Weblogic Server and JDK are 32bit or 64bit?

    Hi everyone,
    I have a question ~
    Both Weblogic Server and JAVA JDK are installed on the server already, but I only know the Weblogic Server is 10.3.4.0 and JAVA JDK version is 1.6.0_25.
    I know the 64bit Weblogic Server installation file is a wlsXXXX_generic.jar package and 64bit JAVA JDK needed also.
    But, since the Weblogic installed already, there are no such installation files on the Linux Server now.
    I have tried the "java -version" for java version and check the Weblogic version from Weblogic console.
    How to identify the installed Weblogic Server and JDK are 32bit or 64bit with Linux command? Or is there any way to check it?

    What you can try to do is use WLST (or an MBean browser, such as JConsole or JRockit Mission Control) and connect to the adminserver.
    For example when using WLST:
    # set the environment by using setWLSEnv.sh (located in the ${WL_HOME}/server/bin directory).
    # start WLST by using: java weblogic.WLST
    # connect to the adminserver
    connect('adminusername','adminpassword');
    # change to the serverruntime environment
    serverRuntime();
    # show the attributes
    ls();
    # Here an attribute is shown called WebLogicVersion that shows the version of WebLogic
    -r--   WeblogicVersion                              WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638
    # Note that this does not show if is 32 bits or 64 bits to retrieve this information you have obtain the JVM version
    # change the directory
    cd('JVMRuntime/AdminServer');
    # show the attributes
    ls();
    -r--   Version                                      R28.0.1-21-133393-1.6.0_20-20100512-2126-linux-x86_64
    # when you have something like x86 at the you are running a 32 bit version, if you have something like x86_64 you are running a 64 bits versionAs mentioned above you can also retrieve this information by using a MBean browser.

  • Satellite A660 - How to change from 32bit too 64bit system

    Howdy!
    I bought a New Toshiba Satellite A660 i7-2630QM with windows 7 home premium.
    My problem is Toshiba includes instructions for the first start up and it says i can choose between 32 bit operating system and 64 bit operation system, but when i turned it on the first time it did not give me any option/choice.
    Now ive got 6GB memory and can only use 4GB because its set too 32 bit system is there any easy way to change it as I dont have a windows disc, all the software is preloaded?

    Hi
    I think this info is mentioned in user manual.
    First of all you can create a Recover Disk with the Toshiba image.
    You should create such disk using the preinstalled software called Toshiba Recover Disk creator (or Toshiba Recovery Creator).
    Furthermore there should be a possibility to recover the notebook using the HDD recover.
    During the HDD recovery, the setup should provide an option which would allow you to choose between the 32bit and 64bit.
    But just one question: what A660-xxx do you have exactly?

  • BW 3.5 Homogeneous System Copy 32bit to 64bit

    Hi Experts,
    I am trying to migrate an existing BW 3.5 system on 32bit to 64bit machine via the ABAP content DB export. OS from Win2000 32bit to Win2003 64bit. Ora DB from 9.2.0.8 to 10.2.0.2
    I got the following error in the R3ldctlExport.log file
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    DbSl Trace: OCI-call 'OCISessionBegin' failed: rc = 1017
    DbSl Trace: CONNECT failed with sql error '1017'
    ERROR: DbSlConnect rc= 99
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    DbSl Trace: OCI-call 'OCISessionBegin' failed: rc = 1017
    DbSl Trace: CONNECT failed with sql error '1017'
    When i checked the source DB the table SAPUSER is in a tablespace called PSAPUSER1D & the owner of the table is user OPS$CB.
    Is there any way to proceed or to trick the SAPinst program to read the table SAPUSER above?
    I believe this problem is due to the source DB has a non SAP standard tablespace naming convention. it should be PSAP<SID>USR.
    Regards,
    Amal

    OPS$CB is not a valid OPS$ user on sap/windows:
    CB is not a valid SID (has to have 3 characters).
    depending wether you are using Domain or Computer local users your valid OPS$  username would be: OPS$<domainname|computername><SID>.
    see note 50088 for more information.
    regards
    Peter

  • Regarding 32bit and 64bit libraries

    Hi,
    Can any one please clarify my quries below.
    1) What is the difference between 32bit and 64bit library.
    2) How to identify the 32bit and 64bit library? Is there any naming convention fallowed?
    3) From which version onwards of Sun Studio, 64 bit libraries are supported?
    Regards,
    Vignesh

    The platforms suppported by Sun compilers have both 32-bit and 64-bit modes of operation. The two modes cannot be mixed in a single program. A 64-bit platform can run 32-bit code, but not the other way around.
    On the supported platforms, 32-bit mode is known a ILP32, meaning that types int, long, and pointer are all 32 bits. 64-bit mode is known as LP64, meaning that type int is still 32 bits, but types long and pointer are 64 bits. (Other systems, not supported by Sun compilers, can have different definitions.)
    The 64-bit mode of the processors supports different instruction sets. The amd64 processor also has different register sets. The layout of objects is different in the two modes, and the way functions are called is different. (There are other differences as well.)
    A program compiled in 32-bit mode must link to 32-bit libraries, not 64-bit libraries, for reasons which I hope are now obvious. A program compiled in 64-bit mode must link to 64-bit libraries.
    The Sun compilers automatically link to the right library version of system libraries, as long as you use consistent options when compiling and linking. For example, you could build a 64-bit sparc program this way:   CC -xarch=v9 -c f1.cc
      CC -xarch=v9 -c f2.cc
      CC -xarch=v9 f1.o f2.o -o myprog The 64-bit version of the various system runtime libraries will be linked automatically, given the -xarch=v9 option on each command line.
    If you create both 32-bit and 64-bit versions of a library of your own, you must arrange to name them differently or put them in different subdirectories. If you give them the same name and put them in differrent subdirectories (which is the convention for system libraries on Solaris), you can use different -L options at link time to point to the right directory.
    You can use the Solaris "file" command to find out whether a program or library is 32-bit or 64-bit.`
    Example, this time on a Solaris Opteron system:
    % file /usr/lib/libCrun.so.1
    /usr/lib/libCrun.so.1: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available
    78% file /usr/lib/amd64/libCrun.so.1
    /usr/lib/amd64/libCrun.so.1: ELF 64-bit LSB dynamic lib AMD64 Version 1 [CMOV], dynamically linked, not stripped, no debugging information available

  • Adding 32bit vs 64bit  driver

    Hi,
    I've taken the sample psli driver and compiled it both as 32bit and 64bit binaries. The initial phase of the 64bit install goes okay, and the init/probe/attach functions are called (i added cmn_err calls). The binary and conf file are in the /usr/kernel/drv/sparcv9 directory.
    I would also like to be able to build a 32bit binary and load that, but when I put this in the /usr/kernel/drv directory along with its conf file (identical source, identical conf file, identical add_drv parameters), I get the following:
    add_drv -v -m '* 0666 root sys' psli
    exit status = 0
    devfsadm: driver failed to attach: psli
    exit status = 11
    Warning: Driver (xx) successfully added to system but failed ot attach.
    Driver (xx) installed.
    But I also don't get any output from my cmn_err calls that I put in init/probe/ attach, so none of these appear to be called.
    It is not trying to talk to any hardware, and the body of the attach is commented out to return success to test the install.
    Any suggestions on why the 64 bit one can load and not the 32?
    Thanks
    S.

    Hi,
    I am sure you would have taken care of this basic things, still
    1. Is the system booted in 32 bit mode, when you are trying to load 32 bit driver ?
    ( check isainfo -v, isainfo -kv, should not show anything like 64bit or sparcv9 ).
    2. run the "file" command on 32 bit driver and see it really 32 bit.
    # file /usr/kernel/drv/psli
    There may be many more reasons apart from this.
    -Kalpesh

  • 32bit and 64bit oracle 9.2

    Dear Guru's,
                       I have SAP 4.7 ext 200 with oracle 9.2 and windows 2003 standard edition all these are 32bit .Now my client wants to buy new hardware which is 64bit to implement the same version mentioned above.for SAP4.7 64bit kernel is available in SMP but I didnt find oracle 9.2 64bit .Please advice whether SAP 4.7 ext 200 can be installed with 64bit kernel and oracle 9.2 64bit available(OS win2003 64bit) on 64bit hardware  or all the OS and SAP with oracle 32bit on 64bit hardware should we choose.
    Best Regards,
    Sanju

    Well... those are the rumours - which are just that.
    Itanium is a 64bit processor - yes - but it´s a totally different architecture. Those programs will NOT run on an Intel Xeon processor. The difference between those two is, that one is IA64 (Itanium-2) and the other is X86_64 (also called x64).
    You will need an installation CD set for that x86_64 (or x64) - NOT for Itanium if you have an Intel Xeon processor.
    Read the following notes:
    960769 - Windows: Migration from 32-bit to 64-bit (x86_64)
    931024 - FAQ: 64-bit platforms for Windows
    Especially the second will explain the differences.
    It makes no sense to install 32bit (SAP-) application software on a 64bit operating system since there are native 64bit binaries to use, without them, you won´t benefit of the 64bit hardware. You need to check, however, that 3rd party software (backup etc.) has also 64bit clients for your combination.
    Markus

  • Does iTunes come with 32bit and 64bit install?

    I have Windows 7 and it's a 32bit and 64bit Gaming Laptop G73SW.
    I've done all the troubleshoot tips, which has just made my computer worse.eg all icons changed, things now missing, so probably have to do a System Retore to get it all back.
    Every time i speak to Apple,  they're suggestions just make my computer stuffed, iTunes takes over all my programs etc.
    Simply put: Does iTunes come with a 32bit and 64bit Install??? If not i won't be using that program.
    Which makes it hard for my line of work atm as an Alpha and Beta Games Tester for many Private Platforms i play on.

    open minds entertainment wrote:
    It's 1 Computer especially made for games
    Well genius, it's either a 32bit or 64bit system, it cannot be both.
    Please learn to clearly describe the situation or it is unlikely that appropriate and relevant assistance will be provided.
    Keep in mind, these are user to user support forums.  The attitude that you spewed above is unlikely to get you any further assistance.

  • Install jre 32bit on 64bit system with error

    Hello,
    i try to install "jre-7u51-windows-i586.exe" (32bit) via CA IT Client Manager (Version 12.5) on serveral machines (64bit), OS MS Vista.
    Error: .... cannot start or run due to incompatibity  with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.
    manually installation works without errors.
    i need jre 32bit on 64bit!
    thx in advance for your friendly suggestions!

    Hello gimbal2,
    i agreed with my CA-Support to ask for help here, after many trys to fix the issue.
    we thought it would be a nice idea to ask oracle community - perhabs somebody know how to fix this prob.
    The error was reportet by "Wow64 Emulation Layer"
    this behavior we face since jre-7u45.
    if that diskussion rings a bell, i would be happy to get rid of my installation prob.
    thx for your sympathie

  • Invoking a call to a window executable fails when request output to file

    Hi,
    When invoking a call to a window executable it fails(returns 1 instead of 0) when requesting output to file by using "> filename.txt". This nornally works when run directly within a
    windows command prompt, and it also works if I don't add the "> filename.txt" at the end. Also instead of outputting to a file I would like the same called executable to output to a memory variable that I can extract data without going to a external text file.
    Below is the .java file
    package com.insequence.gv;
    public class Jinvoker {
              public static int invoke(String program) throws java.io.IOException, java.lang.InterruptedException
                   System.out.println("invoking program: " + program);
                   Process p = Runtime.getRuntime().exec(program);
                   int exitValue = p.waitFor();
                   return exitValue;
              public static void main(String[] argv)
                   try
                   System.out.println("invoker start");
    //               int retval = invoke("c:\\tvalesky\\java\\invoker\\targetexe arg1 arg2 arg3");
    //               int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalinfo.exe C:\\data\\EarthData2005\\Ortho\\no_collaged.tif");
                   String arg1 = "C:\\data\\EarthData2005\\Ortho\\no_collaged.tif > c:\\testing.txt";
    //               String arg1 = "C:\\data\\EarthData2005\\Ortho\\no_collaged.tif";
                   int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalinfo.exe " + arg1);
    //               int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalinfo.exe");
    //               String arg1 = "-s_srs epsg:26915 -t_srs epsg:4326 C:\\data\\EarthData2005\\Ortho\\no_collaged.tif C:\\data\\EarthData2005\\Ortho\\no_collaged2.tif";
    //               int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalwarp.exe " + arg1);
    //               int retval = invoke("C:\\testing.bat C:\\data\\EarthData2005\\Ortho\\no_collaged2.tif");
                   System.out.println("invoker end: returned " + retval);
                   catch(java.io.IOException e)
                        System.out.println("IOException caught: " + e);
                   catch(java.lang.InterruptedException e)
                        System.out.println("InterruptedException caught: " + e);
    Thanks,
    John Mitchell

    Well, if you ultimately want the output from the process, you don't need to redirect it to a file first. Just read from the standard output of the process. See [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html#getInputStream()]Process.getInputStream and Process.getErrorStream. You'll need to read from both simultaneously so you'll need to create two threads. You could also use [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html]ProcessBuilder if you're using Java 1.5

  • Windows Vista 32bit or 64bit?

    Which is better for my new mac book pro, Windows Vista 32bit or 64bit Ultimate? All I care about is all of my programs and games working properly. And what does 86x mean? Will one version of the bits work faster than the other?

    Hi Konnexion,
    There is another more important limit with 32-bit versions of Windows, and that is the limit of 2 GBS of RAM per process. Unless some tricks and tweaks are used (which can result in reduced stability), no matter how much physical RAM is installed, a single application can't use more than 2 GBs. This is important for applications that can use large amounts of RAM like video and picture rendering apps, and even some games these days (particularly in Vista).
    On the other hand, the 64-bit version of Vista has a number of additional security enhancements over the 32-bit version, such as address-space layout randomization, mandatory driver signing. If you have the RAM (at least 4GBs) and games are not a priority, I would actually recommend using the 64-bit version. Of course, why would you be using Boot Camp, if it weren't for games LOL?
    Rich

  • Oracle 10g XE migrate from 32bit to 64bit becomes slower

    Oracle 10g XE migrate from 32bit to 64bit becomes slower
    Currently we have a database using Oracle 10g XE R2
    (Oracle Database 10g Express Edition Release 10.2.0.1.0)
    on a linux 32bit server.
    And recently we did migrate it to another 64bit linux server.
    But found after migration is it running slower at 64bit server (~ 25% slower)
    1. We would wonder any tuning is required on 64bit server?
    Besides, as I know Oracle XE only using single core CPU for processing.
    On 32bit linux the CPU is Intel(R) Xeon(R) CPU E31235 @ 3.20GHz
    On 64bit linux the CPU is Intel(R) Xeon(R) CPU E5-2470 v2 @ 2.40GHz
    2. Would the CPU clock speed on a single core also made the 64bit Oracle slower?
    Thanks a lot.

    32 or 64 bit normally won't cause much performance difference as long as you can't use > 4GB RAM
    Please note that XE can use only 1 core and 1GB memory.
    According to benchmarks, Single Thread Rating of the 2 CPU really differ by around 25%. Quite consistent with your observation.
    Of course, IO (i.e., disk) speed is also an important factor.
    https://www.cpubenchmark.net/cpu.php?id=2003
    https://www.cpubenchmark.net/cpu.php?id=1200

  • Oracle 9i 32bit to 64bit

    Dear all,
    I have a question about oracle 9i change from 32bit to 64bit:
    We want to change our SAP server from 32bit to 64bit (LINUX). In this case, we also want change the SAP from 32bit to 64bit (but no SAP release changed), and oracle 9i from 32bit to 64bit. Is this possible? How to do it? How much time need based on your estimate?
    Because the system can not shut down more than 12 hours, we intend to use a old oracle export for new system installation and use the redolog rollforward to the lastest status. The new system is running on 64bit (oracle and SAP), but the redolog is 32bit, is it OK?
    Thanks
    Michael

    steps are
    Verify there are no invalid objects.
    Verify all components in the DB are Valid
    Install Oracle 64bit
    Copy the Database files from the 32bit machine, to the 64bit machine.
    (Datafiles, Logfiles, Controlfiles, init.ora, tnsnames.ora, listener.ora, etc..)
    Run all the post scripts
    When this was all done, there should be zero invalid objects.
    export/import. advantage being that the old database will remain usable in case the migration fails
    Good Luck
    Vinod

  • Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.

    Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.When i start it the browser is not open and appears a message
    Mozilla Crash Reporter
    == Crash ID(s) ==
    20100611143157
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)

    the 20100611143157 is an update which won't instal automatically on my notebook

  • Vista 32Bit or 64Bit?

    Hi,
    Has anyone got any suggestions and some advice on which version of Vista is better, 32Bit or 64Bit and why?
    My T500 has 4GB memory, but this is the maximum, at the moment, not sure if this will change when the 4GB SDIMM's will be realeased.
    I've currently got Vista Business edition 64Bit installed on it but I'm having issues, not sure if it's me or the software, but would like to get some input from those who have 32Bit and 64Bit version of Vista on their T500.
    Thanks in advance,

    I've tried XP Pro, Vista Ultimate, and Vista Business 64 on my T400.  I ended up sticking with the 64 bit OS since with the switchable graphics option and the limits of a non-PAE 32 bit OS, I only had 2.5G of RAM available with 3G or 4G installed.  With VB 64, I get almost 4G usable which I need for the virtual machines I run.
    I have been able to get (almost) all of my apps to run, and once I got the wifi sorted (by downgrading to the 5100 card) it has been quick and stable.  So far...
    YMMV
    What "issues" are you having?
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

Maybe you are looking for