MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2025-08-02, 16:40

所有顯示的時間為 UTC + 8 小時





發表新文章 回覆主題  [ 21 篇文章 ]  前往頁數 上一頁  12
發表人 內容
 文章主題 :
文章發表於 : 2004-12-19, 12:12 
不要放在c:\Program profiles下,可能是nsis不支持目录中有空格?
关于:
Processed 1 file, writing output:
Processing pages... Done!
Removing unused resources... Done!
Generating language tables... Done!
'c:\Program' 不是內部或外部命令、
可執行的程式或批次檔。


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.7.5) Gecko/20041124 Firefox/1.0
  
引用回覆  
 文章主題 :
文章發表於 : 2005-01-04, 20:22 
離線
[MozTW 版主群]
頭像

註冊時間: 2002-12-03, 21:00
文章: 744
來自: 地球
應該加上紅色字部份就可以直接支援空格路徑了 ... 未經測試 ...

引言回覆:
!define NAME "PortableFirefox"
!define VER "0.0.3"

!packhdr "C:\tmp.dat" "'c:\Program Files\UPX\upx.exe' --best --crp-ms=999999 C:\tmp.dat"

;=== Out program information
Name "${NAME}"
OutFile "${NAME}.exe"
Caption "${NAME} - Making Firefox Portable"

CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True

;=== Set program icon
Icon "unofficial_firefox.ico"

Section "Main"

IfFileExists "$EXEDIR\profile\chrome\chrome.rdf" ChromeFound RunFirefox
ChromeFound:
FileOpen $0 "$EXEDIR\profile\chrome\chrome.rdf" r
FileOpen $R0 "$EXEDIR\profile\chrome\chrome.rdf.new" w
ClearErrors ; if there's an error, we're done with the file
NextLine:
FileWrite $R0 $4
FileRead $0 $4
IfErrors NoMoreLines
StrCpy $5 $4 39
;MessageBox MB_OK "$5"
StrCmp $5 ` c:baseURL="jar:file:` "" NextLine
StrCpy $R4 40
NotYet:
IntOp $R4 $R4 + 1
StrCpy $7 $4 10 $R4 ; looking for the point to strip the extension path
;MessageBox MB_OK "$7"
StrCmp $7 "extensions" PathFound NotYet
PathFound:
StrCpy $5 $4 "" $R4
;MessageBox MB_OK "The following extension has an absolute path.$\n$\n$5$\n$\nWe'll make it relative, because that's our purpose :)"
StrCpy $4 ` c:baseURL="jar:resource:/profile/$5` ; the path made relative
GoTo NextLine
NoMoreLines:
FileClose $0
FileClose $R0
CopyFiles "$EXEDIR\profile\chrome\chrome.rdf" "$EXEDIR\profile\chrome\chrome.rdf.old" ; rename it just in case
CopyFiles "$EXEDIR\profile\chrome\chrome.rdf.new" "$EXEDIR\profile\chrome\chrome.rdf" ; that was our purpose

RunFirefox:
Exec ' "$EXEDIR\firefox.exe" -profile "$EXEDIR\profile\" '

SectionEnd

_________________
想讓 Internet Explorer 當掉嗎?

「方法一」 - 被 google 檔掉的樣子,開不起來

「方法二」


回頂端
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a6) Gecko/20041228 Firefox/1.0+ (JTw -Bug 274712- )
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2005-01-04, 23:57 
楼上提供网页有病毒。


回頂端
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1; .NET CLR 1.1.4322)
  
引用回覆  
 文章主題 :
文章發表於 : 2005-01-05, 10:48 
離線

註冊時間: 2004-11-16, 10:06
文章: 16
Anonymous 寫:
楼上提供网页有病毒。


是指「想讓 Internet Explorer 當掉嗎? 」?
他明明寫了IE去開會當掉,就別用IE去開吧....
我用FF開一點事也沒有啊。


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.5) Gecko/20041119 Firefox/1.0
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2005-01-07, 01:02 
http://myweb.hinet.net/home3/testtest/firefoxMOVE2.zip

Error :(
還是錯誤,口鳥


回頂端
Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
  
引用回覆  
 文章主題 :
文章發表於 : 2005-01-08, 06:53 
Anonymous 寫:
http://myweb.hinet.net/home3/testtest/firefoxMOVE2.zip

Error :(
還是錯誤,口鳥
可用


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.7.5) Gecko/20041119 Firefox/1.0
  
引用回覆  
顯示文章 :  排序  
發表新文章 回覆主題  [ 21 篇文章 ]  前往頁數 上一頁  12

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 65 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群