Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Using INI switch with installer is not adding bookmarks defined in the ini file

  • 4 trả lời
  • 2 gặp vấn đề này
  • 2 lượt xem
  • Trả lời mới nhất được viết bởi gravdiag

more options

So I'm stuck I've been trying to use the INI switch to save time by automatically adding bookmarks to the browser. I followed guides and created a basic ini file that has:


TEST

[BookmarksToolbar] item.1.title=Example item.1.link=http://example.com/ item.1.description=Example


And created a batch script to run the setup installer


cd /d %~dp0Firefox\setup setup.exe /INI=%~dp0Firefox\distribution.ini PAUSE


When I run the batch file it will execute the installer in silent mode so I know that it's recognizing the INI switch. If I copy the path that the INI switch is using into run it opens the file so I know that it's pointing to the correct path but then when I open firefox the bookmark is still missing. Anyone have any ideas?

So I'm stuck I've been trying to use the INI switch to save time by automatically adding bookmarks to the browser. I followed guides and created a basic ini file that has: ;TEST [BookmarksToolbar] item.1.title=Example item.1.link=http://example.com/ item.1.description=Example And created a batch script to run the setup installer cd /d %~dp0Firefox\setup setup.exe /INI=%~dp0Firefox\distribution.ini PAUSE When I run the batch file it will execute the installer in silent mode so I know that it's recognizing the INI switch. If I copy the path that the INI switch is using into run it opens the file so I know that it's pointing to the correct path but then when I open firefox the bookmark is still missing. Anyone have any ideas?

Giải pháp được chọn

Thanks for the replies I followed the policy idea. Essentially I took the installer extracted it and then in the core folder I added a distribution folder and inside of that added policies.json using https://addons.mozilla.org/en-US/firefox/addon/enterprise-policy-generator/ since I was running into issues with my JSON. So now if I call the setup executable inside in the extracted installer it also installs the distribution folder. I tried following the repack guide here https://support.mozilla.org/en-US/kb/repackaging-windows-installer but it was more than I needed. Thanks again!

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (4)

more options

It seems when I copied my ini and batch file over it lost the new line characters:

[BookmarksToolbar] item.1.title=Example item.1.link=http://example.com/ item.1.description=Example

and

cd /d %~dp0Firefox\setup setup.exe /INI=%~dp0Firefox\distribution.ini PAUSE

more options

Is there some documentation on this that you're following?

I saw a reference here:

https://brashear.me/blog/2017/12/07/how-to-deploy-firefox-with-bookmarks-and-addons/

But it mentioned creating new profiles rather than running the Setup program.

Is this for your own Firefox or are you trying to set up a large number of computers?

more options
more options

Giải pháp được chọn

Thanks for the replies I followed the policy idea. Essentially I took the installer extracted it and then in the core folder I added a distribution folder and inside of that added policies.json using https://addons.mozilla.org/en-US/firefox/addon/enterprise-policy-generator/ since I was running into issues with my JSON. So now if I call the setup executable inside in the extracted installer it also installs the distribution folder. I tried following the repack guide here https://support.mozilla.org/en-US/kb/repackaging-windows-installer but it was more than I needed. Thanks again!