Archive: Running batch file in windows 7


Running batch file in windows 7
I create a batch file with the content
echo %processor_architecture% . Then create a nsis script for installing this batch file
EXECWait "$INSTDIR\test.bat" .In windows XP(32 bit) it is displaying correctly the processor as "x86".

When use the same exe and install the batch in windows7 (64 bit) there also the nsis exe's batch file is displaying processor as x86. But when I indiuvally ran the bat file it is displaying the processor as AMD64. What may be the wrong? I downloaded UAC plugin, added to the nsis folder and added "RequestExecutionLevel admin" also in the script but still same behavior. Please help me to resolve this.
how to run this batch file silently?

And in windows 7 while uninstalling the my menu in start menu also not removing .how to handle this?

Thanks,
Jayam


You probably end up running the 32bit version of cmd.exe

Instead of complaining that your batch file does not work, how about asking what you are really after? I'm guessing you will find what you are really after in x64.nsh


(Don't use the UAC plugin without understanding what it is for please)

And as far as the start menu goes; http://nsis.sourceforge.net/Shortcut..._Windows_Vista