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!

jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Newbie question

Hey guys,

I need to create a new Folder Dialog that contains a file I need to edit, but when I see the available dialogs Folder Dialog is not there, also, I have a file in the [APPDIR] that needs to be edited too after everything else is in place, I can't find a way to do that either.

Can somebody tell me how or where can I do these things in Advanced Installer?

Thanks,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Newbie question

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

I'm afraid I don't fully understand you scenario. Can you please give us more details about this (maybe exemplify)? If you need to edit a file you can use our "Text File Update" or "Import and Edit XML" support. Also, if you need to browse for a file at install time please take a look on our "Browse for file" how to.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Re: Newbie question

I think you understood just right, I'll take a look at text file update and browse for file.

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Newbie question

You're welcome.

If you have any question let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Re: Newbie question

I found almost everything I need, but I still have not figured out how to tell the text update dialog where the file is (the file I browsed for in the dialog I created)

Any ideas?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Newbie question

Hello,

In order to achieve this you can just add a reference to the installer property, associated with the edit control (e.g. MY_FILEPATH) from your browse for file dialog, in the "New Text File Update" dialog like this:
  • Append/Create: User selected path = [MY_FILEPATH]
Let us know if this helped, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Re: Newbie question

Thanks, that worked, but when I tested it, when it was time to Edit the txt file it said it could not create it because it was already one with the same name, how can I change that, it is not supposed to create a new file, but edit an existing one.

Thanks.

Jorge_.

PS: Advanced Installer rocks, I have tested the leading in the industry and so far the best I have tested.
jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Re: Newbie question

I see what's happening, the Brwose for file is not quite what I need, it would be a combination between Browse for Folder and Edit a file in that folder.

I'm trying browse for a folder, but I'm stuck at step 5, nothing happens when I drag and drop (with Shift pressed) to where the document says.

Any ideas.
jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Re: Newbie question

Can somebody tell me what's wrong with this picture?
Image of Dialog and the Browse button Published Events.
Image of Dialog and the Browse button Published Events.
Browse for folder.jpg (41.78 KiB) Viewed 6689 times
When I press Browse it doesn't show me anything.

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

Re: Newbie question

Hello,

Can you please try to remove the brackets from the [CONF_DIR] argument and see if the behavior still persist?

So, you should have something like that:
Event:[_BrowseProperty]
Argument: CONF_DIR
Condition: AI_INSTALL


If the behavior still persist, please attach the .AIP(project file) so we can investigate this.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jfha73
Posts: 14
Joined: Tue Jun 03, 2014 10:13 pm

Re: Newbie question

I could finally get it to work using a combination of Brow for file, Browse for folder and text file change.

Thanks for your help.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Newbie question

You're welcome,

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”