Random directories to install files - 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!

daleb
Posts: 1
Joined: Tue Nov 27, 2012 10:00 pm

Random directories to install files

I'll start out by saying I coded in various languages for 25 years stopping professionally 7 years ago. I took on writing an installer for a friend of mine. I have never used an installer before so my questions may be very basic. All I want to do is copy some files from a web server to a specific directory that is randomly generated. If I put the full directory name in it works fine (except for my xml file) but I need to capture that random part of the path. For example the default directory is %APPDATA%\Mozilla\Firefox\Profiles\Mozilla\Firefox\Profiles\nk01kvda.default\gm_scripts. Obviously, appdata is generated and with the full path the files end up in the correct directory. The other computer generated directory is the nk01kvda.default part. That directory always ends in ".default" and my directory under application directory in ai is indeed copied if hard coded. Is there anyway to locate the correct directory using the ai pro version?

The second part of my problem is that the xml file needs to go into the gm_scripts directory and that does not happen. Not sure what to do with this one either.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Random directories to install files

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand what you mean. Can you give us more details about your scenario (maybe exemplify)?

Also, in order to clearly report an issue you can take a look on our How to report a problem for a faster resolution article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”