Copying files to System32 on x64 Windows 7

Antworten
mirkt
Beiträge: 95
Registriert: 05 Jun 2013, 09:39
Wohnort: Lithuania

Copying files to System32 on x64 Windows 7

Beitrag von mirkt »

Hello,

While making update to one package, I have noticed, that I am copying files to SysWOW64 instead of System32.. It's really strange, I believe my package used to work well..

Testing system: Windows 7 x64
opsi-winst: 4.11.6.2

I used to do:

Code: Alles auswählen

Files_install /32Bit

[Files_install]
copy "blahblah" "%System%"
but now, I find files in SysWOW64..

Even after:

Code: Alles auswählen

copy "blahblah" "%Systemroot%\System32
I find files in SysWOW64, although in install logs I see:
Source blahblah copied to C:\windows\System32\
1 File(s) treated

Would be thankful for any ideas..
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Copying files to System32 on x64 Windows 7

Beitrag von n.wenselowski »

Hi,

could the files you find be a leftover from previous installation attempts?
Or has the client been setup with a fresh Windows install before?

The documentation has an description of how things are working.
First paragraphs look to me exactly like the problem you are facing.
Does this chapter help you?


Kind regards

Niko

Code: Alles auswählen

import OPSI
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Copying files to System32 on x64 Windows 7

Beitrag von d.oertel »

Hi,

every thing is ok and works correctly.
Please read:
http://download.uib.de/opsi_stable/doc/ ... inst-64bit
why it not work like you expected.

regards
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
larsg
Beiträge: 283
Registriert: 16 Dez 2014, 18:06

Re: Copying files to System32 on x64 Windows 7

Beitrag von larsg »

On Windows x64, SysWOW64 is actually the path for 32-Bit system files, while System32 is the path for 64-Bit system files. WOW = windows on windows, means they emulate 32-Bit on a 64-Bit system for 32-Bit compatibility.
While the naming is definetly suboptimal, my guess is they did this to keep the native system files in place where everyone got used to after all these years.

This article might give some insight.
mirkt
Beiträge: 95
Registriert: 05 Jun 2013, 09:39
Wohnort: Lithuania

Re: Copying files to System32 on x64 Windows 7

Beitrag von mirkt »

Thank you for the explanations :)
Antworten