Tried the simplest task, already got swamped with problems - Advanced Installer Community

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!

E500
Posts: 1
Joined: Tue Aug 11, 2009 7:44 pm

Tried the simplest task, already got swamped with problems

Hi,

All I wanted to test was this simple: create a new folder and copy some files into it. Surprisingly, I faced a myriad of different problems none of which seemed to be solvable.

Details: the new folder (actually two new folders, one a subfolder inside the other) must be created under C:\Program Files\FTID folder which already exists on each user machine. So the whole target path should be like, say, C:\Program Files\FTID\CommonFiles\PB.

In "Files and Folders" I successfully created the entire folder structure. Then I got into this never-ending fight with Application Folder settings under "Install Parameters". What should it be, really? I tried
[ProgramFilesFolder][FTID_DIR][CommonFiles_DIR][PB_DIR]
but when I ran the MSI it tried to copy the files into C:\Program Files.
I also tried to just leave [PB_DIR] in there but then was offered to copy the files to .... C:\APPDIR\ (??????)
Other attempts were even less successful and produced cryptic runtime errors (code 2727 etc) when I launched the installation.
I'm trying to avoid hard-coding of the target path but looks like this is my only option due to program inflexibility. Or am I missing something?

Any advise would be greatly appreciated, thank you!!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Tried the simplest task, already got swamped with problems

Hello,

The "Application Folder" is the folder in which your application will be installed. In your case you should set this to:
"[ProgramFilesFolder][ProductName]", providing FTID is your product name. Otherwise set it to "[ProgramFilesFolder]FTID".

Then you will have to:
- go to Files and Folders page
- if FTID is your application's name, then C:\Program Files\FTID will be equivalent with the "Application Folder" on the "Files and Folders" page
- create the rest of your directory structure under Application Folder, that is, create CommonFiles\PB under the "Application Folder"
- place your files in the PB folder

Please note that you can not use custom Properties like FTID_DIR or PB_DIR in the "Application Folder" field since they do not have any values at that time. You should leave this field with it's default value, since it will be overridden anyway when the user chooses the install folder.

For more information, please follow our Tutorials to get you started with using Advanced Installer. Also you can check our guide on installing files in a custom folder.

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

Return to “Common Problems”