cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kareneL
Level 2

Installer is copying to a different folder

I have an installer set up as InstallScript MSI.
I need to install the files in an existing folder in Program Files.
I have the path and I set TARGETDIR to the path C:\Program Files\Dir\SubDir
However, the files are being copied to C:\Program Files (x86)\Dir\SubDir instead.

My installer needs to install the files on a Win XP or a Windows 7 OS. It reads the path from a registry entry (for software that is installed with a separate installer first).
I've printed via MessageBox both INSTALLDIR and TARGETDIR before the call to SdStartCopy2() function is called and they are as expected on my test system (Windows 7).

Why are the files being installed in the Program Files (x86) folder regardless of TARGETDIR and INSTALLDIR?

Thanks
Karene
Labels (1)
0 Kudos
(1) Reply
Janardhan_R
Level 2 Flexeran
Level 2 Flexeran

If the INSTALLDIR is set to something like [ProgramFilesFolder]Dir\SubDir, then depending of the Architecture of the target OS [ProgramFilesFolder] will be interpreted as below:
C:\Program Files(x86) for 64-bit Operating systems and C:\Program Files for 32-bit Operating systems.
0 Kudos