Page 1 of 1

[SOLVED] Creating Firefox package 60 ESR + config ini

Published: September 14, 2018 - 11:01 AM
by Patrice_minagri
Good morning,

I am trying to create a package for Firefox 60 ESR along with an ini configuration file.

My installation command is as follows:

Code: Select all

install_exe_if_needed(exe64,'-ms /INI=config.ini',key=ukey64,min_version=versionff,killbefore='firefox.exe')
This runs without error but does not take the config.ini file into account

When I run the following command under MS-DOS

Code: Select all

Firefox.exe /INI=config.ini
Everything runs normally and even silently (no need for -ms). The various parameters included in the ini file are applied correctly.

It seems that /INI=config.ini is misplaced in the WAPT package code. What do you think? Could you help me with this?

THANKS.

Sincerely.

Re: Creating Firefox package 60 ESR + using ini file

Published: September 17, 2018 - 11:13 AM
by Patrice_minagri
Okay, I just found the solution.

It would appear that the ini configuration file cannot be taken into account without a path being entered in the execution command.

Instead of :

Code: Select all

install_exe_if_needed(exe64,'-ms /INI=config.ini',key=ukey64,min_version=versionff,killbefore='firefox.exe')
It should be written (without the -ms option):

Code: Select all

install_exe_if_needed(exe64,'/INI=c:\\Windows\\TEMP\\config.ini',key=ukey64,min_version=versionff,killbefore='firefox.exe')
The configuration file must be copied beforehand.

In any case, it works very well and the configuration file applies its options.

Re: [SOLVED] Creating Firefox 60 ESR package + config ini

Published: September 18, 2018 - 2:39 PM
by htouvet
Or without copying the ini file: ("basedir" represents the temporary directory where the package contents are unzipped during installation)

Code: Select all

install_exe_if_needed(exe64,'/INI="%s"' % makepath(basedir,'config.ini'),key=ukey64,min_version=versionff,killbefore='firefox.exe')

Re: [SOLVED] Creating Firefox 60 ESR package + config ini

Published: September 27, 2018 - 6:59 PM
by Patrice_minagri
Ah yes, seen from that angle. :lol:

Thank you Hubert!!