aclay
Posts: 7
Joined: Mon Mar 22, 2010 5:49 pm

Install folder contents in different locations based on OS

I have a folder in my installation whose contents need to be in one location on Windows XP and another for Vista and 7. For example:

Windows Vista/7

Code: Select all

AppDir
  |----Folder 1
  |----Folder 2
           |-------SubFolder 1
           |-------SubFolder 2
           |-------SubFile 1
  |----Folder 3
Windows XP

Code: Select all

AppDir
  |----Folder 1
  |----SubFolder 1
  |----SubFolder 2
  |----SubFile 1
  |----Folder 3
What's the best way to set this up in Advanced Installer? I'm running version 7.3.1.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Install folder contents in different locations based on OS

Hello,

Code: Select all

Application Folder
|
|---XP
|   |
|   |----Folder 1
|   |----Folder 2
|   |        |-------SubFolder 1
|   |        |-------SubFolder 2
|   |        |-------SubFile 1
|   |
|   |----Folder 3
|
|
|
|---Vista
      |----Folder 1
      |----SubFolder 1
      |----SubFolder 2
      |----SubFile 1
      |----Folder 3

The XP and Vista folders have the "Install folder content into parent folder" option set. All the resources under the XP folder should have their components conditioned to install on XP using the VersionNT property, and all the resources under the Vista subfolder should also be conditioned to install on Vista also using the VersionNT property.

Use the following table to find out what values the VersionNT property has on each system:
VersionNT table

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”