We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mikemeer
Posts: 3
Joined: Tue Jan 28, 2014 7:44 am

Installer Question

Hi. I am a newbie to Advanced Installer ... and installers in general.

I am trying to put a file xyx.ini in a directory based upon if it is windows 7/8 or XP. How do I do that?
Here is where the file has to go:

Windows 7 / 6 --> C:\users\%username%\AppData\Roaming\RDP6\MyPDFprinting
Windows XP --> C:\Documents and Settings\%username%\AppData\Roaming\RDP6\MyPDFprinting

Now when I am installing my App the RDP6 directory does not exist yet, neither does the MyPDFprinting. I have to create the structure too.

Any help would be greatly appreciated.

Thank you,
MIke
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer Question

Hi Mike and welcome to Advanced Installer forums,

The folders from the Files and Folders page use predefined and custom installer properties which store their paths. Here the Folder path article with related information for hints and guidance.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mikemeer
Posts: 3
Joined: Tue Jan 28, 2014 7:44 am

Re: Installer Question

Ok... so how do i put a file/directory at the level of C:\users\<user directory>?

Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installer Question

Hello,

In order to achieve this, to install some files on the current location: "C:\users\<user directory>" where "C" is the windows volume you need to the the followings:
- Create a property in the Install parameters page.
  • Name: MY_PROP
    Value: C:\
-Then, you can go in the Files and Folders page and add a property based folder and select the previos defined property. Property based folders will be resolved at install time to the values from the respective property. Here you can add the files you need to deploy the related location: "C:\users\<user directory>".

-In order to assign the right value for this property, you can go in the Custom Actions page and add the predefined Set installer property custom action with sequence. Edit the custom action properties like that:
  • Property: MY_PROP
    Value: [WindowsVolume]\Users\[%username]
Please keep in mind that this scenario is working for the operating system above Vista because on a XP machine there isn't this structure, so you should condition the execution of this custom action through its Condition field. (e.g. VersionNT >= 600). Please take a look on the Operating System Property Values article which may be useful to you.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”