Jump to content

Recommended Posts

Posted

i'm currently writing a guide on how to install firefox unattended with extensions, themes and configs pre-stored. but i need an application to write in a file the path of the application.

for example

if %PROGRAMFILES% it's C:\Program Files\ then write into C:\apps.txt "C:\Program Files\"

if %PROGRAMFILES% it's D:\Program Files\ then write into D:\apps.txt "D:\Program Files\"

and so on...

it's this posible from a batch file?? do anyone know any application that can do this?


Posted (edited)

u could use batch

if exist "c:\program files"

copy apps.txt c:\progra....

or if not exist "c:\program files"

copy apps.sts d:\program files...

I think? :huh:

but how r u supposed to write the path? can firefox read it like this?

doesn't it have a predefined method of storing relative paths?

Edited by XtremeMaC
Posted

i'll try to explain it better, well firefox write a file called chrome.rdf and there stores path to themes and extensions for example jar:file:///C:/Documents%20and%20Settings/BARTON/Datos%20de%20programa/Mozilla/Firefox/Profiles/default.bio/extensions/%7B9f08cb5a-76b1-4bcf-aff9-90e1a5d60b1e%7D/chrome/Noia2_Full_2.73-1.jar!/browser/. problem goes when the installation it's in another user or in another drive. what i want it's "something" that can read the %APPDATA% path and store it in the .rdf (text) file.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...