Neiro
-
Total Posts
:
36
- Scores: 0
-
Reward points
:
11070
- Joined: 1/20/2011
- Location: Denmark
-
Status: offline
|
32bit cmd able to run 64bit commands?
Tuesday, March 13, 2012 11:02 AM
( permalink)
Hello. Is it possible to force the 32bit cmd to run a 64bit application without windows trying to 'fix' the pathing? I have the problem that a program running from a batch is run as 32bit because ccmexec is 32bit - that means a regedit /s something.reg will result in it getting saved under the wow6432 folder - which means it won't actually work. Tried running the 64bit cmd (from the 32bit cmd) that then runs the 64 bit regedit from in there, but that'll still be converted to antique mode. any smart solutions?
|
|
|
|
CAP
-
Total Posts
:
143
- Scores: 0
-
Reward points
:
34520
- Joined: 12/9/2011
-
Status: offline
|
Re:32bit cmd able to run 64bit commands?
Tuesday, March 13, 2012 12:01 PM
( permalink)
There some VB scripts that put the registry keys in teh proper place. Also if you have Wise or some other packaging software can also do this.
|
|
|
|
skissinger
-
Total Posts
:
4805
- Scores: 458
-
Reward points
:
104800
- Joined: 9/13/2001
- Location: Sherry Kissinger
-
Status: offline
|
Re:32bit cmd able to run 64bit commands?
Tuesday, March 13, 2012 1:08 PM
( permalink)
Here's a workaround: Make it a Task Sequence-based Advertisement. Within the TS, if you add a task of "General, Command line", check the box about "Disable 64-bit file system redirection". In that task is where you'd put your regkey import.
|
|
|
|
Josh Taylor
-
Total Posts
:
7
- Scores: 6
-
Reward points
:
2840
- Joined: 3/14/2012
- Location: Oregon, USA
-
Status: offline
|
Re:32bit cmd able to run 64bit commands?
Wednesday, March 14, 2012 1:25 AM
( permalink)
It sure is. The WOW64 file redirector has a special alias for that. Accessing the %WinDir%\SysNative alias (or any access to the SysNative subfolder e.g. C:\Windows\SysNative if you don't want to you the environment var) will do exactly what you're looking for. In my quick and dirty testing Win7 didn't want to run the 64 bit version of regedt32.exe directly (Yes even the 64 bit app is named regedt 32.exe. It's an app compat thing). I was however able to pipe it through the 64 bit cmd.exe and that made it happy. From your 32 bit environment: %WinDir%\sysnative\cmd.exe /c regedt32.exe /s <your file>.reg
|
|
|
|
Neiro
-
Total Posts
:
36
- Scores: 0
-
Reward points
:
11070
- Joined: 1/20/2011
- Location: Denmark
-
Status: offline
|
Re:32bit cmd able to run 64bit commands?
Wednesday, March 14, 2012 4:09 AM
( permalink)
Thanks mate. I'll try that first before the task sequence option as it's by far the easiest to implement. and ye the naming in microsoft's world is wierd .... syswow 64 is the 32bit system file folder, system 32 is 64bit if the os is, and system is 16bit ... and powershell v1 is the folder that hosts powershell v2 and everything's just simple ... just like intel's cpu model system .... absolutely intuitive ... long's your autistic edit: and nvidia's naming strategy where a higher number might be worse
|
|
|
|
Neiro
-
Total Posts
:
36
- Scores: 0
-
Reward points
:
11070
- Joined: 1/20/2011
- Location: Denmark
-
Status: offline
|
Re:32bit cmd able to run 64bit commands?
Wednesday, March 14, 2012 4:39 AM
( permalink)
That works. Thanks a bunch
|
|
|
|