File associations Start In folder - 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!

cojocb
Posts: 3
Joined: Tue Mar 06, 2007 10:49 am

File associations Start In folder

Hello,

Advance installer is a nice and easy to use tool, but I have a problem with setting the start in dir for file associations.

Is it a way to specify the working (star in dir) for file associations?

Thank you
Bogdan
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Bogdan,
Is it a way to specify the working (star in dir) for file associations?
I'm afraid that I don't fully understand what you mean with specify the star in dir for file associations. Could you please give me more details?

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
cojocb
Posts: 3
Joined: Tue Mar 06, 2007 10:49 am

Buna Gheorghe,

Engleza mea nu e prea stralucita, iti scriu in romaneste lundu-ma dupa numele tau.

Doresc sa asociez fisierele cu extensia ".extensie" (sa zicem) cu aplicatia .
In File Associations am adaugat extensia mea iar la verb properties:
Verb = open
Arguments = "%1"

In metoda main:
.....
if (args.length > 0) {
...( open file args[0] )...

Asa merge doar daca fisierul ce vreu sa-l deschid se afla in directorul unde e instalata aplicatia.
Daca fisierul se afla in alata locatie in error.log primesc exceptia FileNotFoundException, dar nu pt. fisierul deschis ci pentru niste resurse aflate relativ la directorul unde e instalata aplicatia:
....
load(new FileInputStream(new File(
"resources/applicationtexts_EN.properties")));

....

Ce vreau eu; e ca atunci cand deschid un fisier, applicatia sa aiba ca director curent directorul unde e instalata aplicatia nu directorul unde e localizat fisierul ce vreau sa-l deschid.

Cu multe multumiri
Bogdan
[/i][/b]
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Buna Bogdan,

I'll speak in English for other users who may browse this forum.

If you want to set the current directory to the application folder then you can try with "Set current directory to product folder" option from "Java Products->Settings" page. Or you can add the user.dir system property like JVM parameter ("Add->Current Directory") in "Virtual Machine" page.

Please let us know if you encounter any problems.

Regards,
Gigi,
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
cojocb
Posts: 3
Joined: Tue Mar 06, 2007 10:49 am

Thank you,

"Set current directory to product folder" solved my problem.

Greetings
Bogdan

Return to “Common Problems”