1.

Solve : Hello! Very puzzling batch file execution, and need help!?

Answer»

Hi all,

Here is a little background to my issue. I am trying to FIGURE out a way to create one autorun CD for my company's software that will install the proper software depending on if the machine is 32 bit or 64 bit. So, I created an autorun exe using RJL AutoRun Wizard software that will run a batch file named OS type which contains the following code:

::Batch File looks at Processer_architecture to determine
::64 Bit or 32 Bit, then installs appropriate KW
@echo off
IF "%PROCESSOR_ARCHITECTURE%" == "x86" (START AutoRunKegWizard32bit4.0/autorun.exe )
IF NOT "%PROCESSOR_ARCHITECTURE%" == "x86" (START AutoRunKegWizard64bit4.0/autorun.exe )
END

It simply ANALYZES the processor architecture to determine if it 32 or 64 bit, then IS SUPPOSED!! to route to the other autorun.exe file that is in the subfolder that takes care of the actual software installation which consists of my company's kegwizard software and the driver for our machine. The only problem is that when OS type.bat is manually run (by clicking on it), it routes to the proper folder, BUT, if it is run via the autorun, it does not route to the proper folder. Instead, it attempts to install the 32 bit version of software. This only seems to happen on a VISTA 64 bit machine, as all other 32 bit machines I tried it on, it WORKED in both ways, using the autorun and manually. I do not understand this!! Is this a 64 bit Vista issue, or am I doing something WRONG?

THANKS!!!!





I figured it out. There must be a problem with the RJL generated autorun.exe. I just changed it so that the autorun.inf called the batch file directly instead of calling the autorun.exe which then called the batch file. WEIRD!!!



Discussion

No Comment Found