This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Installer is copying to a different folder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 12, 2013
10:21 AM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 25, 2013
03:39 AM
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.
C:\Program Files(x86) for 64-bit Operating systems and C:\Program Files for 32-bit Operating systems.