Old 18th November 2011, 08:37   #1
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
js & nsis

nsis can run *.js file? if yes please say how, thanks
NOCaut is offline   Reply With Quote
Old 18th November 2011, 09:33   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
ExecShell. But why would you want to? You should convert the code to NSIS script.

Stu
Afrow UK is offline   Reply With Quote
Old 18th November 2011, 10:27   #3
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
i want change some file in Mozilla FireFox.
NOCaut is offline   Reply With Quote
Old 18th November 2011, 14:12   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,165
ExecShell is not a good way to run .js, it could open in Notepad etc. If you want to run a js file with Windows Scripting Host you need to call wscript.exe.

I'm guessing you want to edit the about:config file? (WHY? Don't mess with the users settings) Anyway, look for the profiles under $Appdata\Mozilla\Firefox with the NSIS find functions (And hope that the user is not using the -profile switch since then the profile could be anywhere )

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th November 2011, 14:26   #5
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
i write toolbar and want cnahge some option in this file.
..AppData\Roaming\Mozilla\Firefox\Profiles\7xokl1z9.default\prefs.js

now i use *.exe file and parser this file in application? but have some poblem when run my installation without admin rights.
NOCaut is offline   Reply With Quote
Old 22nd November 2011, 09:36   #6
NOCaut
Senior Member
 
Join Date: Sep 2011
Posts: 106
ok
NOCaut is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump